openapi: 3.0.0
# Added by API Auto Mocking Plugin
servers:
  - url: https://atlas-api.vuframe.com
    description: Production server
info:
  description: Request files from the Vuframe® platform via the CDN API.
  version: "1.0.0"
  title: Atlas™ API
  contact:
    email: andreas.zeitler@vuframe.com
    name: Andreas Zeitler
  termsOfService: https://www.vuframe.com/terms-of-service/
tags:
  - name: distribution
    description: Secured calls for Vuframe® app clients.
paths:
  /distri/v1/products/{identifier}/builds:
    post:
      tags:
        - distribution
      summary: download an item
      operationId: downloadItem
      description: |
        Call **/distri/v1/products/{identifier}/builds** to build and download a distribution.
       
      parameters:
        - in: path
          name: identifier
          description: the identifier of the requested distibution.
          required: true
          schema:
            type: string
        - in: query
          name: filename
          description: filename of built artifact with file extension.
          required: true
          schema:
            type: string
      responses:
        '302':
          description: redirect for download
        '200':
          description: build
          content:
            application/json:
              schema:
                type: object
                properties:
                  callback_url:
                    type: string
                  key:
                    type: string
                  policy:
                    type: string
                  acl:
                    type: string
                  signature:
                    type: string
                  aws_access_key_id:
                    type: string
                  aws_secret_access_key:
                    type: string
                  aws_region:
                    type: string
                  aws_bucket_name:
                    type: string
                  build:
                    type: object
                    properties:
                      id:
                        type: string
                      product_name:
                        type: string
                      disabled:
                        type: boolean
                      enable_build_url:
                        type: string
externalDocs:
  description: Vuframe® Docs
  url: https://vuframe.com/docs/