openapi: 3.2.0 info: description: API to handle scorm resources version: 1.0.0 title: Signed S3 url BULK SCORM upload API servers: - url: https://api.coorpacademy.com/scorm description: production - url: https://api-staging.coorpacademy.com/scorm description: staging - url: http://localhost:7004 description: local tags: - name: Signed S3 url BULK SCORM upload paths: /presignedBulkUrl: post: tags: - Signed S3 url BULK SCORM upload summary: Get signed s3 url for bulk scorm upload. description: '' operationId: presignedBulkUrlPOST security: - Authorization: [] requestBody: description: Information to get s3 Url content: application/json: schema: $ref: '#/components/schemas/PresignedBulkUrlBody' examples: default: value: repository: content-repo@cockpit-repo responses: '200': description: Get signed s3 url for bulk scorm upload. headers: Access-Control-Allow-Origin: $ref: '#/components/headers/Access-Control-Allow-Origin' Cache-Control: $ref: '#/components/headers/Cache-Control' Content-Type: $ref: '#/components/headers/Content-Type' content: application/json: schema: $ref: '#/components/schemas/GetScormFileSuccess' '400': description: Undefined/ Internal errors. content: application/json: schema: anyOf: - $ref: '#/components/schemas/NotDefinedError' - $ref: '#/components/schemas/ScormFileError' components: schemas: GetScormFileSuccess: type: string description: file in scorm zip, base64 encoded ScormFileError: description: ScormFileError type: string example: Unable to get presigned upload URL from S3 NotDefinedError: description: NotDefinedError type: string example: The Host header is not defined PresignedBulkUrlBody: description: InvalidMimeTypeError type: object properties: repository: type: string description: repository associated to the bulk ref: type: string description: bulk ref name: type: string description: file name type: type: string description: file type headers: Cache-Control: schema: type: string example: no-cache, no-store, must-revalidate Access-Control-Allow-Origin: schema: type: string example: '*' Content-Type: schema: type: string example: application/json securitySchemes: Authorization: type: apiKey name: Authorization in: header