Quantum Art Artifacts API

The Artifacts API from Quantum Art — 2 operation(s) for artifacts.

OpenAPI Specification

quantum-art-artifacts-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: QaaS Backend admin Artifacts API
  description: Quantum-as-a-Service Backend providing task management, metrics, and real-time communication
  version: 1.0.0
tags:
- name: Artifacts
paths:
  /api/artifacts/download:
    get:
      summary: Download Artifact
      description: "Download artifact by reference.\n\nArgs:\n    artifact_ref: URL-encoded artifact reference (S3 path or local file path)\n    current_user: Authenticated user from JWT token\n    \nReturns:\n    StreamingResponse with file content\n    \nSecurity:\n    - Validates user has access to the task that owns the artifact\n    - Extracts task_id from artifact_ref path\n    - Checks user is task owner or admin"
      operationId: download_artifact_api_artifacts_download_get
      security:
      - HTTPBearer: []
      parameters:
      - name: artifact_ref
        in: query
        required: true
        schema:
          type: string
          title: Artifact Ref
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Artifacts
  /api/artifacts/view:
    get:
      summary: View Artifact
      description: "View artifact content as text.\n\nArgs:\n    artifact_ref: URL-encoded artifact reference (S3 path or local file path)\n    current_user: Authenticated user from JWT token\n    \nReturns:\n    JSON response with filename and content as text\n    \nSecurity:\n    - Same authorization as download endpoint\n    - Content limited to text files"
      operationId: view_artifact_api_artifacts_view_get
      security:
      - HTTPBearer: []
      parameters:
      - name: artifact_ref
        in: query
        required: true
        schema:
          type: string
          title: Artifact Ref
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Artifacts
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer