swagger: '2.0'
info:
title: Cargo Swagger
description: Cargo swagger
version: 0.1.1
license:
name: Proprietary
url: https://www.metaswitch.com
contact:
email: api-support@metaswitch.com
url: https://metacom.metaswitch.com/
schemes:
- http
paths:
'/api':
post:
summary: Upload an API
operationId: UploadApi
parameters:
- in: body
name: api_and_token
required: true
schema:
$ref: '#/definitions/api_and_token'
description: The yaml file containing the API description.
responses:
200:
description: Success
definitions:
api_and_token:
type: object
required:
- token
- api_contents
properties:
token:
type: string
api_contents:
type: string