"/admin/rdc":
    get:
        tags: [RDC]
        operationId: getRDCList
        summary: List RDC builds
        description: Returns the catalog of available RDC (Rendering Data Container) builds.
        responses:
            "200":
                description: Build list.
                content:
                    application/json:
                        schema:
                            type: object
                            properties:
                                builds:
                                    type: array
                                    items:
                                        type: object
                                        properties:
                                            build: { type: string, description: Build identifier. }
                                            createdAt: { type: string, format: date-time }
                                            url: { type: string, format: uri }
                                            isActive: { type: boolean }
                                count: { type: integer }
            "401": { $ref: "../admin-api.yaml#/components/responses/Unauthorized" }
            "403": { $ref: "../admin-api.yaml#/components/responses/Forbidden" }
        x-access-policies: [Admin]
        x-scopes: ["admin:all"]

"/admin/rdc/active":
    get:
        tags: [RDC]
        operationId: getActiveRDC
        summary: Currently active RDC build
        description: Returns the build that is currently flagged as the active production RDC.
        responses:
            "200":
                description: Active build identifier and metadata.
                content:
                    application/json:
                        schema:
                            type: object
                            properties:
                                build: { type: string }
                                createdAt: { type: string, format: date-time }
                                url: { type: string, format: uri }
                                activatedAt: { type: string, format: date-time }
                                activatedByBigscreenAccountId: { type: string }
            "401": { $ref: "../admin-api.yaml#/components/responses/Unauthorized" }
            "403": { $ref: "../admin-api.yaml#/components/responses/Forbidden" }
        x-access-policies: [Admin]
        x-scopes: ["admin:all"]

"/admin/rdc/active/{build}":
    parameters:
        - in: path
          name: build
          required: true
          schema: { type: string }
          description: Build identifier to mark active.
    put:
        tags: [RDC]
        operationId: setActiveRDC
        summary: Set the active RDC build
        description: Promotes the supplied build identifier to be the active production RDC build.
        responses:
            "200":
                description: Active build updated.
            "401": { $ref: "../admin-api.yaml#/components/responses/Unauthorized" }
            "403": { $ref: "../admin-api.yaml#/components/responses/Forbidden" }
        x-access-policies: [Admin]
        x-scopes: ["admin:all"]
