...
1swagger: '2.0'
2info:
3 version: 0.1.1
4 title: test 1
5 description: recursively following JSON references
6 contact:
7 name: Fred
8
9schemes:
10 - http
11
12consumes:
13 - application/json
14produces:
15 - application/json
16
17paths:
18 /getAll:
19 get:
20 operationId: getAll
21 parameters:
22 - name: a
23 in: body
24 description: max number of results
25 schema:
26 $ref: '#/definitions/a'
27 responses:
28 '200':
29 description: Success
30 schema:
31 $ref: '#/definitions/b'
32 '201':
33 description: Success
34 schema:
35 $ref: '#/definitions/b'
36 '203':
37 description: Success
38 schema:
39 $ref: '#/definitions/c'
40
41definitions:
42 a:
43 type: string
44 b:
45 type: array
46 items:
47 type: string
48 c:
49 type: object
50 additionalProperties:
51 type: integer
View as plain text