github.com/emreu/go-swagger@v0.22.1/fixtures/bugs/155/swagger.yml (about) 1 swagger: '2.0' 2 info: 3 version: '2.0' 4 title: Test API 5 6 basePath: /api/2.0/ 7 schemes: 8 - https 9 consumes: 10 - application/json 11 produces: 12 - application/json 13 paths: 14 '/sample/action/do-something': 15 post: 16 operationId: sampleDoSomethingAction 17 parameters: 18 - name: json body 19 in: body 20 required: true 21 schema: 22 $ref: "#/definitions/Actions_DoSomethingRequest" 23 24 responses: 25 '200': 26 description: Success 27 schema: 28 $ref: '#/definitions/Actions_DoSomethingResponse' 29 '401': 30 description: Unauthorized 31 '404': 32 description: Not Found 33 34 definitions: 35 Actions_DoSomethingRequest: 36 type: object 37 properties: 38 client_id: 39 type: string 40 41 Actions_DoSomethingResponse: 42 type: object 43 properties: 44 result: 45 type: string