--- swagger: "2.0" info: description: "Cargo swagger" version: "0.1.1" title: "Cargo Swagger" contact: url: "https://metacom.metaswitch.com/" email: "api-support@metaswitch.com" license: name: "Proprietary" url: "https://www.metaswitch.com" schemes: - "http" paths: /api: post: summary: "Upload an API" operationId: "UploadApi" parameters: - in: "body" name: "api_and_token" description: "The yaml file containing the API description." required: true schema: $ref: "#/definitions/api_and_token" uppercase_data_type: "APIANDTOKEN" refName: "api_and_token" formatString: "{:?}" example: "???" model_key: "api_and_token" uppercase_operation_id: "UPLOAD_API" consumesJson: true responses: 200: description: "Success" uppercase_operation_id: "UPLOAD_API" uppercase_message: "SUCCESS" operation_id: "upload_api" uppercase_operation_id: "UPLOAD_API" path: "/api" HttpMethod: "Post" httpmethod: "post" noClientExample: true definitions: api_and_token: type: "object" required: - "api_contents" - "token" properties: token: type: "string" api_contents: type: "string" upperCaseName: "API_AND_TOKEN"