github.com/apremalal/vamps-core@v1.0.1-0.20161221121535-d430b56ec174/server/webapps/apieditor/spec-files/heroku-pets.yaml (about) 1 swagger: '2.0' 2 info: 3 version: 1.0.0 4 title: PetStore on Heroku 5 description: | 6 **This example has a working backend hosted in Heroku** 7 8 You can try all HTTP operation described in this Swagger spec. 9 10 Find source code of this API [here](https://github.com/mohsen1/petstore-api) 11 host: petstore-api.herokuapp.com 12 basePath: /pet 13 schemes: 14 - http 15 - https 16 consumes: 17 - application/json 18 - text/xml 19 produces: 20 - application/json 21 - text/html 22 paths: 23 /: 24 get: 25 parameters: 26 - name: limit 27 in: query 28 description: number of pets to return 29 type: integer 30 default: 11 31 minimum: 11 32 maximum: 10000 33 responses: 34 200: 35 description: List all pets 36 schema: 37 title: Pets 38 type: array 39 items: 40 $ref: '#/definitions/Pet' 41 post: 42 parameters: 43 - name: pet 44 in: body 45 description: The pet JSON you want to post 46 schema: 47 $ref: '#/definitions/Pet' 48 required: true 49 responses: 50 200: 51 description: Make a new pet 52 put: 53 parameters: 54 - name: pet 55 in: body 56 description: The pet JSON you want to post 57 schema: 58 $ref: '#/definitions/Pet' 59 required: true 60 responses: 61 200: 62 description: Updates the pet 63 /{petId}: 64 get: 65 parameters: 66 - name: petId 67 in: path 68 type: string 69 description: ID of the pet 70 required: true 71 responses: 72 200: 73 description: Sends the pet with pet Id 74 75 definitions: 76 Pet: 77 type: object 78 properties: 79 name: 80 type: string 81 birthday: 82 type: integer 83 format: int32 84