openapi: 3.2.0 info: title: Fast Generate Download URL API version: 0.1.0 tags: - name: Generate Download Url paths: /generateDownloadUrl: post: summary: Generate Download Url Endpoint description: 'Generates a presigned URL for downloading images. If only one image is requested, returns a direct download URL for that image. If multiple images, creates a ZIP file. Request Body: imageIds: List of image IDs to include projectId: Project ID for the images Returns: JSON response with: - downloadUrl: The presigned URL - filename: The filename for download - isZip: Boolean indicating if it''s a ZIP file or single image Errors: - 500 if download generation fails' operationId: generate_download_url_endpoint_generateDownloadUrl_post requestBody: content: application/json: schema: $ref: '#/components/schemas/ZipDownloadRequest' required: true responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' tags: - Generate Download Url 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 type: object required: - loc - msg - type title: ValidationError ZipDownloadRequest: properties: imageIds: items: type: string type: array title: Imageids projectId: type: integer title: Projectid size: anyOf: - type: string - type: 'null' title: Size default: original type: object required: - imageIds - projectId title: ZipDownloadRequest