swagger: '2.0' info: title: API for building docker images version: initial consumes: - application/json produces: - application/json - text/html definitions: Apigee: properties: images: description: 'The list of all images. New images are created by posting to this relationship. ' type: string format: uri x-interface: '#/x-interfaces/Apigee.images' namespaces: description: 'The list of all namspaces. New namespaces are created by posting an image that references them. ' type: string format: uri x-interface: '#/x-interfaces/Apigee.namespaces' builds: description: 'The list of all namspaces. New namespaces are created by posting an image that references them. ' type: string format: uri x-interface: '#/x-interfaces/Apigee.builds' x-interface: '#/x-interfaces/Apigee' Image: description: 'Images are stored in a registry. They are classified by the application (aka repo) of which they are a revision, and the namespace within which they reside. ' allOf: - $ref: '#/definitions/PersistentResource' properties: imageId: type: string size: type: integer file: type: string format: file namespace: type: string application: type: string revision: type: string x-interface: '#/x-interfaces/Image' Build: description: 'Builds are used to create images in the registry from source files. ' properties: image: type: string format: uri logs: type: array items: type: string file: type: string format: file namespace: type: string application: type: string revision: type: string x-interface: '#/x-interfaces/Build' Namespace: description: 'Namespaces are subdivisions of a larger Docker registry that are isolated and owned by an individual, group or institution Namespaces are created implicitly by POSTing an image that references the new namespace. ' allOf: - $ref: '#/definitions/Resource' properties: name: type: string applications: description: 'The list of applications in the namespace. Confusingly, in Docker terminology, applictions are called ''repos''. Applications are not created explicitly: they are created as a side-effect of creating an image for the application in a namespace. ' type: string format: uri x-interface: '#/x-interfaces/Namespace.applications' x-interface: '#/x-interfaces/Namespace' Application: description: 'Applications group together images that are related to the same piece of software. Applications are created implicitly by POSTing an image that references the new application. ' allOf: - $ref: '#/definitions/Resource' properties: name: type: string images: description: 'The list of images for this application. New images are created by POSTing to /images and referencing the appropriate application and namespace. ' type: string format: uri x-interface: '#/x-interfaces/Application.images' x-interface: '#/x-interfaces/Application' Error: readOnly: true properties: message: type: string logs: type: array items: type: string Page: allOf: - $ref: '#/definitions/Resource' properties: kind: type: string enum: - Page items: type: array items: type: object collection: type: string format: uri next_page: type: string format: uri x-interface: common.yaml#/x-interfaces/Page previous_page: type: string format: uri x-interface: common.yaml#/x-interfaces/Page readOnly: true x-interface: common.yaml#/x-interfaces/Page Collection: allOf: - $ref: '#/definitions/Resource' properties: kind: type: string enum: - Collection items: type: array items: type: object readOnly: true MultiValuedRelationship: readOnly: true x-oneOf: - $ref: '#/definitions/Collection' - $ref: '#/definitions/Page' Resource: type: object properties: self: type: string readOnly: true kind: type: string PersistentResource: allOf: - $ref: '#/definitions/Resource' properties: created: type: string format: date-time readOnly: true creator: type: string format: URL readOnly: true modified: type: string format: date-time readOnly: true modifier: type: string format: date-time readOnly: true x-interfaces: Apigee: get: description: Retrieve an Apigee parameters: - $ref: '#/parameters/Accept' responses: '200': description: successful headers: Content-Location: description: perma-link URL of resource type: string Content-Type: description: The media type of the returned body type: string ETag: description: this value must be echoed in the If-Match header of every PATCH or PUT type: string schema: $ref: '#/definitions/Apigee' '401': $ref: '#/responses/401' '403': $ref: '#/responses/403' '404': $ref: '#/responses/404' '406': $ref: '#/responses/406' default: $ref: '#/responses/default' head: description: retrieve HEAD responses: '200': $ref: '#/responses/standard_200' '401': $ref: '#/responses/401' '403': $ref: '#/responses/403' '404': $ref: '#/responses/404' default: $ref: '#/responses/default' options: description: Retrieve OPTIONS parameters: - $ref: '#/parameters/Access-Control-Request-Method' - $ref: '#/parameters/Access-Control-Request-Headers' responses: '200': $ref: '#/responses/options_200' '401': $ref: '#/responses/401' '403': $ref: '#/responses/403' '404': $ref: '#/responses/404' default: $ref: '#/responses/default' x-id: Apigee Apigee.builds: post: description: Create a new Build parameters: - description: The representation of the new Build being created in: body name: body schema: $ref: '#/definitions/Build' - description: The media type of the body in: header name: Content-Type required: true type: string responses: '201': description: Created new Build headers: Content-Type: description: The media type of the returned body type: string ETag: description: Value of ETag required for subsequent updates type: string Location: description: perma-link URL of newly-created Build type: string schema: $ref: '#/definitions/Build' '400': $ref: '#/responses/400' '401': $ref: '#/responses/401' '403': $ref: '#/responses/403' '404': $ref: '#/responses/404' '406': $ref: '#/responses/406' default: $ref: '#/responses/default' head: description: Retrieve HEAD responses: '200': $ref: '#/responses/standard_200' '401': $ref: '#/responses/401' '403': $ref: '#/responses/403' '404': $ref: '#/responses/404' default: $ref: '#/responses/default' options: description: Retrieve OPTIONS parameters: - $ref: '#/parameters/Access-Control-Request-Method' - $ref: '#/parameters/Access-Control-Request-Headers' responses: '200': $ref: '#/responses/options_200' '401': $ref: '#/responses/401' '403': $ref: '#/responses/403' '404': $ref: '#/responses/404' default: $ref: '#/responses/default' x-id: Apigee.builds Apigee.images: get: parameters: - in: query name: orderBy required: false type: string - enum: - ascending - descending in: query name: direction required: false type: string - in: query maximum: 1000 minimum: 1 name: limit required: false type: integer - in: query items: type: string name: properties required: false type: array responses: '200': description: description headers: Content-Location: description: perma-link URL of collection type: string Content-Type: description: The media type of the returned body type: string schema: $ref: '#/definitions/MultiValuedRelationship' '303': $ref: '#/responses/303' '401': $ref: '#/responses/401' '403': $ref: '#/responses/403' '404': $ref: '#/responses/404' '406': $ref: '#/responses/406' default: $ref: '#/responses/default' post: consumes: - multi-part/form-data description: Create a new Image parameters: - description: The representation of the new Image being created in: body name: body schema: $ref: '#/definitions/Image' - description: The media type of the body in: header name: Content-Type required: true type: string responses: '201': description: Created new Image headers: Content-Type: description: The media type of the returned body type: string ETag: description: Value of ETag required for subsequent updates type: string Location: description: perma-link URL of newly-created Image type: string schema: $ref: '#/definitions/Image' '400': $ref: '#/responses/400' '401': $ref: '#/responses/401' '403': $ref: '#/responses/403' '404': $ref: '#/responses/404' '406': $ref: '#/responses/406' default: $ref: '#/responses/default' head: description: Retrieve HEAD responses: '200': $ref: '#/responses/standard_200' '401': $ref: '#/responses/401' '403': $ref: '#/responses/403' '404': $ref: '#/responses/404' default: $ref: '#/responses/default' options: description: Retrieve OPTIONS parameters: - $ref: '#/parameters/Access-Control-Request-Method' - $ref: '#/parameters/Access-Control-Request-Headers' responses: '200': $ref: '#/responses/options_200' '401': $ref: '#/responses/401' '403': $ref: '#/responses/403' '404': $ref: '#/responses/404' default: $ref: '#/responses/default' x-id: Apigee.images Apigee.namespaces: get: parameters: - in: query name: orderBy required: false type: string - enum: - ascending - descending in: query name: direction required: false type: string - in: query maximum: 1000 minimum: 1 name: limit required: false type: integer - in: query items: type: string name: properties required: false type: array responses: '200': description: description headers: Content-Location: description: perma-link URL of collection type: string Content-Type: description: The media type of the returned body type: string schema: $ref: '#/definitions/MultiValuedRelationship' '303': $ref: '#/responses/303' '401': $ref: '#/responses/401' '403': $ref: '#/responses/403' '404': $ref: '#/responses/404' '406': $ref: '#/responses/406' default: $ref: '#/responses/default' head: description: Retrieve HEAD responses: '200': $ref: '#/responses/standard_200' '401': $ref: '#/responses/401' '403': $ref: '#/responses/403' '404': $ref: '#/responses/404' default: $ref: '#/responses/default' options: description: Retrieve OPTIONS parameters: - $ref: '#/parameters/Access-Control-Request-Method' - $ref: '#/parameters/Access-Control-Request-Headers' responses: '200': $ref: '#/responses/options_200' '401': $ref: '#/responses/401' '403': $ref: '#/responses/403' '404': $ref: '#/responses/404' default: $ref: '#/responses/default' x-id: Apigee.namespaces Application: &Application get: description: Retrieve an Application parameters: - $ref: '#/parameters/Accept' responses: '200': description: successful headers: Content-Location: description: perma-link URL of resource type: string Content-Type: description: The media type of the returned body type: string ETag: description: this value must be echoed in the If-Match header of every PATCH or PUT type: string schema: $ref: '#/definitions/Application' '401': $ref: '#/responses/401' '403': $ref: '#/responses/403' '404': $ref: '#/responses/404' '406': $ref: '#/responses/406' default: $ref: '#/responses/default' head: description: retrieve HEAD responses: '200': $ref: '#/responses/standard_200' '401': $ref: '#/responses/401' '403': $ref: '#/responses/403' '404': $ref: '#/responses/404' default: $ref: '#/responses/default' options: description: Retrieve OPTIONS parameters: - $ref: '#/parameters/Access-Control-Request-Method' - $ref: '#/parameters/Access-Control-Request-Headers' responses: '200': $ref: '#/responses/options_200' '401': $ref: '#/responses/401' '403': $ref: '#/responses/403' '404': $ref: '#/responses/404' default: $ref: '#/responses/default' x-id: Application Application.images: &Application-images get: parameters: - in: query name: orderBy required: false type: string - enum: - ascending - descending in: query name: direction required: false type: string - in: query maximum: 1000 minimum: 1 name: limit required: false type: integer - in: query items: type: string name: properties required: false type: array responses: '200': description: description headers: Content-Location: description: perma-link URL of collection type: string Content-Type: description: The media type of the returned body type: string schema: $ref: '#/definitions/MultiValuedRelationship' '303': $ref: '#/responses/303' '401': $ref: '#/responses/401' '403': $ref: '#/responses/403' '404': $ref: '#/responses/404' '406': $ref: '#/responses/406' default: $ref: '#/responses/default' head: description: Retrieve HEAD responses: '200': $ref: '#/responses/standard_200' '401': $ref: '#/responses/401' '403': $ref: '#/responses/403' '404': $ref: '#/responses/404' default: $ref: '#/responses/default' options: description: Retrieve OPTIONS parameters: - $ref: '#/parameters/Access-Control-Request-Method' - $ref: '#/parameters/Access-Control-Request-Headers' responses: '200': $ref: '#/responses/options_200' '401': $ref: '#/responses/401' '403': $ref: '#/responses/403' '404': $ref: '#/responses/404' default: $ref: '#/responses/default' x-id: Application.images Build: get: description: Retrieve a Build parameters: - $ref: '#/parameters/Accept' responses: '200': description: successful headers: Content-Location: description: perma-link URL of resource type: string Content-Type: description: The media type of the returned body type: string ETag: description: this value must be echoed in the If-Match header of every PATCH or PUT type: string schema: $ref: '#/definitions/Build' '401': $ref: '#/responses/401' '403': $ref: '#/responses/403' '404': $ref: '#/responses/404' '406': $ref: '#/responses/406' default: $ref: '#/responses/default' head: description: retrieve HEAD responses: '200': $ref: '#/responses/standard_200' '401': $ref: '#/responses/401' '403': $ref: '#/responses/403' '404': $ref: '#/responses/404' default: $ref: '#/responses/default' options: description: Retrieve OPTIONS parameters: - $ref: '#/parameters/Access-Control-Request-Method' - $ref: '#/parameters/Access-Control-Request-Headers' responses: '200': $ref: '#/responses/options_200' '401': $ref: '#/responses/401' '403': $ref: '#/responses/403' '404': $ref: '#/responses/404' default: $ref: '#/responses/default' x-id: Build Image: get: description: Retrieve an Image parameters: - $ref: '#/parameters/Accept' responses: '200': description: successful headers: Content-Location: description: perma-link URL of resource type: string Content-Type: description: The media type of the returned body type: string ETag: description: this value must be echoed in the If-Match header of every PATCH or PUT type: string schema: $ref: '#/definitions/Image' '401': $ref: '#/responses/401' '403': $ref: '#/responses/403' '404': $ref: '#/responses/404' '406': $ref: '#/responses/406' default: $ref: '#/responses/default' delete: description: Delete an Image responses: '200': description: successful headers: Content-Location: description: perma-link URL of resource type: string Content-Type: description: The media type of the returned body type: string ETag: description: this value must be echoed in the If-Match header of every PATCH or PUT type: string schema: $ref: '#/definitions/Image' '400': $ref: '#/responses/400' '401': $ref: '#/responses/401' '403': $ref: '#/responses/403' '404': $ref: '#/responses/404' '406': $ref: '#/responses/406' default: $ref: '#/responses/default' head: description: retrieve HEAD responses: '200': $ref: '#/responses/standard_200' '401': $ref: '#/responses/401' '403': $ref: '#/responses/403' '404': $ref: '#/responses/404' default: $ref: '#/responses/default' options: description: Retrieve OPTIONS parameters: - $ref: '#/parameters/Access-Control-Request-Method' - $ref: '#/parameters/Access-Control-Request-Headers' responses: '200': $ref: '#/responses/options_200' '401': $ref: '#/responses/401' '403': $ref: '#/responses/403' '404': $ref: '#/responses/404' default: $ref: '#/responses/default' x-id: Image Namespace: &Namespace get: description: Retrieve a Namespace parameters: - $ref: '#/parameters/Accept' responses: '200': description: successful headers: Content-Location: description: perma-link URL of resource type: string Content-Type: description: The media type of the returned body type: string ETag: description: this value must be echoed in the If-Match header of every PATCH or PUT type: string schema: $ref: '#/definitions/Namespace' '401': $ref: '#/responses/401' '403': $ref: '#/responses/403' '404': $ref: '#/responses/404' '406': $ref: '#/responses/406' default: $ref: '#/responses/default' head: description: retrieve HEAD responses: '200': $ref: '#/responses/standard_200' '401': $ref: '#/responses/401' '403': $ref: '#/responses/403' '404': $ref: '#/responses/404' default: $ref: '#/responses/default' options: description: Retrieve OPTIONS parameters: - $ref: '#/parameters/Access-Control-Request-Method' - $ref: '#/parameters/Access-Control-Request-Headers' responses: '200': $ref: '#/responses/options_200' '401': $ref: '#/responses/401' '403': $ref: '#/responses/403' '404': $ref: '#/responses/404' default: $ref: '#/responses/default' x-id: Namespace Namespace.applications: &Namespace-applications get: parameters: - in: query name: orderBy required: false type: string - enum: - ascending - descending in: query name: direction required: false type: string - in: query maximum: 1000 minimum: 1 name: limit required: false type: integer - in: query items: type: string name: properties required: false type: array responses: '200': description: description headers: Content-Location: description: perma-link URL of collection type: string Content-Type: description: The media type of the returned body type: string schema: $ref: '#/definitions/MultiValuedRelationship' '303': $ref: '#/responses/303' '401': $ref: '#/responses/401' '403': $ref: '#/responses/403' '404': $ref: '#/responses/404' '406': $ref: '#/responses/406' default: $ref: '#/responses/default' head: description: Retrieve HEAD responses: '200': $ref: '#/responses/standard_200' '401': $ref: '#/responses/401' '403': $ref: '#/responses/403' '404': $ref: '#/responses/404' default: $ref: '#/responses/default' options: description: Retrieve OPTIONS parameters: - $ref: '#/parameters/Access-Control-Request-Method' - $ref: '#/parameters/Access-Control-Request-Headers' responses: '200': $ref: '#/responses/options_200' '401': $ref: '#/responses/401' '403': $ref: '#/responses/403' '404': $ref: '#/responses/404' default: $ref: '#/responses/default' x-id: Namespace.applications x-templates: '{Apigee-URL}': $ref: '#/x-interfaces/Apigee' '{Apigee-URL}/images': $ref: '#/x-interfaces/Apigee.images' '{Apigee-URL}/namespaces': $ref: '#/x-interfaces/Apigee.namespaces' '{Apigee-URL}/namespaces;{name}': parameters: - in: path name: name required: true type: string <<: *Namespace '{Apigee-URL}/namespaces;{name}/applications': parameters: - in: path name: name required: true type: string <<: *Namespace-applications '{Apigee-URL}/namespaces;{name}/applications;{name_1}': parameters: - in: path name: name required: true type: string - in: path name: name_1 required: true type: string <<: *Application '{Apigee-URL}/namespaces;{name}/applications;{name_1}/images': parameters: - in: path name: name required: true type: string - in: path name: name_1 required: true type: string <<: *Application-images paths: /: $ref: '#/x-templates/{Apigee-URL}' /images: $ref: '#/x-templates/{Apigee-URL}~1images' /namespaces: $ref: '#/x-templates/{Apigee-URL}~1namespaces' /namespaces;{name}: $ref: '#/x-templates/{Apigee-URL}~1namespaces;{name}' /namespaces;{name}/applications: $ref: '#/x-templates/{Apigee-URL}~1namespaces;{name}~1applications' /namespaces;{name}/applications;{name_1}: $ref: '#/x-templates/{Apigee-URL}~1namespaces;{name}~1applications;{name_1}' /namespaces;{name}/applications;{name_1}/images: $ref: '#/x-templates/{Apigee-URL}~1namespaces;{name}~1applications;{name_1}~1images' parameters: Accept: description: specifies the requested media type - required in: header name: Accept required: true type: string Access-Control-Request-Headers: description: specifies the custom headers the client wishes to use in: header name: Access-Control-Request-Headers required: true type: string Access-Control-Request-Method: description: specifies the method the client wishes to use in: header name: Access-Control-Request-Method required: true type: string If-Match: description: specifies the last known ETag value of the resource being modified in: header name: If-Match required: true type: string responses: '303': description: See other. Server is redirecting client to a different resource headers: Location: description: URL of other resource type: string '400': description: Bad Request. Client request in error schema: $ref: '#/definitions/Error' '401': description: Unauthorized. Client authentication token missing from request schema: $ref: '#/definitions/Error' '403': description: Forbidden. Client authentication token does not permit this method on this resource schema: $ref: '#/definitions/Error' '404': description: Not Found. Resource not found schema: $ref: '#/definitions/Error' '406': description: Not Acceptable. Requested media type not available schema: $ref: '#/definitions/Error' '409': description: Conflict. Value provided in If-Match header does not match current ETag value of resource schema: $ref: '#/definitions/Error' default: description: 5xx errors and other stuff schema: $ref: '#/definitions/Error' options_200: description: successful headers: Access-Control-Allow-Headers: description: headers allowed type: string Access-Control-Allow-Methods: description: methods allowed type: string Access-Control-Allow-Origin: description: origins allowed type: string Access-Control-Max-Age: description: length of time response can be cached type: string standard_200: description: successful headers: Content-Location: description: perma-link URL of resource type: string Content-Type: description: The media type of the returned body type: string ETag: description: this value must be echoed in the If-Match header of every PATCH or PUT type: string