...
1swagger: '2.0'
2info:
3 title: Responses
4 version: 0.1.0
5definitions:
6 Error:
7 type: object
8 description: |
9 Contains all the properties any error response from the API will contain.
10 Some properties are optional so might be empty most of the time
11 required:
12 - code
13 - message
14 properties:
15 code:
16 description: the error code, this is not necessarily the http status code
17 type: integer
18 format: int32
19 message:
20 description: a human readable version of the error
21 type: string
22 helpUrl:
23 description: an optional url for getting more help about this error
24 type: string
25 format: uri
26
27responses:
28 BadRequest:
29 description: Bad request
30 schema:
31 $ref: '#/definitions/Error'
32
33paths:
34 /:
35 get:
36 summary: GET
37 operationId: getAll
38 responses:
39 200:
40 description: Ok
View as plain text