github.com/apremalal/vamps-core@v1.0.1-0.20161221121535-d430b56ec174/server/webapps/apiexplorer/swagger.yaml (about)

     1  swagger: '2.0'
     2  info:
     3    version: '1.0.0'
     4    title: Consumer Mobility Platform API
     5    description: Complete API to explore the mobility platfrom.
     6    termsOfService: http://vedicsoft.com/mobility/terms/
     7    contact:
     8      name: Consumer & Mobility API team
     9      email: prasanna@vedicsoft.com
    10      url: http://vedicsoft.com
    11    license:
    12      name: Vedicsoft Propriotary Licence v1.1
    13      url: http://opensource.org/licenses/MIT
    14  host: localhost:8081
    15  basePath: /
    16  schemes:
    17    - https
    18  consumes:
    19    - application/json
    20  produces:
    21    - application/json
    22  paths:
    23    /wifi/usage/dailytotaldownloads:
    24      post:
    25        description: Creates a new pet in the store.  Duplicates are allowed
    26        operationId: addPet
    27        produces:
    28          - application/json
    29        parameters:
    30          - name: Authorization
    31            in: header
    32            type: string
    33          - name: constrains
    34            in: body
    35            description: Pet to add to the store
    36            required: true
    37            schema:
    38              $ref: '#/definitions/constrains'
    39        responses:
    40          '200':
    41            description: daily downloads  response
    42            schema:
    43             type: array
    44             items:
    45              $ref: '#/definitions/downloads'
    46          default:
    47            description: unexpected error
    48            schema:
    49              $ref: '#/definitions/errorModel'
    50  
    51  definitions:
    52    constrains:
    53      type: object
    54      required:
    55        - tenantid
    56        - from
    57        - to
    58        - groupnames
    59      properties:
    60        tenantid:
    61          type: integer
    62          format: int64
    63        from:
    64          type: string
    65        to:
    66          type: string
    67        groupnames:
    68           type: array
    69           items:
    70            type: string
    71    downloads:
    72      properties:
    73        name:
    74         type: string
    75        value:
    76         type: string
    77    errorModel:
    78      type: object
    79      required:
    80        - code
    81        - message
    82      properties:
    83        code:
    84          type: integer
    85          format: int32
    86        message:
    87          type: string