|
14 | 14 | }
|
15 | 15 | ],
|
16 | 16 | "paths": {
|
17 |
| - "/breeds": { |
18 |
| - "get": { |
19 |
| - "tags": [ |
20 |
| - "Breeds" |
21 |
| - ], |
22 |
| - "summary": "Get a list of breeds", |
23 |
| - "description": "Returns a a list of breeds", |
24 |
| - "operationId": "getBreeds", |
25 |
| - "parameters": [ |
26 |
| - { |
27 |
| - "name": "limit", |
28 |
| - "in": "query", |
29 |
| - "description": "limit the amount of results returned", |
30 |
| - "required": false, |
31 |
| - "schema": { |
32 |
| - "type": "integer", |
33 |
| - "format": "int64" |
34 |
| - } |
35 |
| - } |
36 |
| - ], |
37 |
| - "responses": { |
38 |
| - "200": { |
39 |
| - "description": "successful operation", |
40 |
| - "content": { |
41 |
| - "application/json": { |
42 |
| - "schema": { |
43 |
| - "type": "array", |
44 |
| - "items": { |
45 |
| - "$ref": "#/components/schemas/Breed" |
46 |
| - } |
47 |
| - } |
48 |
| - } |
49 |
| - } |
50 |
| - } |
51 |
| - } |
52 |
| - } |
53 |
| - }, |
54 | 17 | "/fact": {
|
55 | 18 | "get": {
|
56 | 19 | "tags": [
|
|
87 | 50 | }
|
88 | 51 | }
|
89 | 52 | }
|
90 |
| - }, |
91 |
| - "/facts": { |
92 |
| - "get": { |
93 |
| - "tags": [ |
94 |
| - "Facts" |
95 |
| - ], |
96 |
| - "summary": "Get a list of facts", |
97 |
| - "description": "Returns a a list of facts", |
98 |
| - "operationId": "getFacts", |
99 |
| - "parameters": [ |
100 |
| - { |
101 |
| - "name": "max_length", |
102 |
| - "in": "query", |
103 |
| - "description": "maximum length of returned fact", |
104 |
| - "required": false, |
105 |
| - "schema": { |
106 |
| - "type": "integer", |
107 |
| - "format": "int64" |
108 |
| - } |
109 |
| - }, |
110 |
| - { |
111 |
| - "name": "limit", |
112 |
| - "in": "query", |
113 |
| - "description": "limit the amount of results returned", |
114 |
| - "required": false, |
115 |
| - "schema": { |
116 |
| - "type": "integer", |
117 |
| - "format": "int64" |
118 |
| - } |
119 |
| - } |
120 |
| - ], |
121 |
| - "responses": { |
122 |
| - "200": { |
123 |
| - "description": "successful operation", |
124 |
| - "content": { |
125 |
| - "application/json": { |
126 |
| - "schema": { |
127 |
| - "type": "array", |
128 |
| - "items": { |
129 |
| - "$ref": "#/components/schemas/CatFact" |
130 |
| - } |
131 |
| - } |
132 |
| - } |
133 |
| - } |
134 |
| - } |
135 |
| - } |
136 |
| - } |
137 | 53 | }
|
138 | 54 | },
|
139 | 55 | "components": {
|
140 | 56 | "schemas": {
|
141 |
| - "Breed": { |
142 |
| - "title": "Breed model", |
143 |
| - "description": "Breed", |
144 |
| - "properties": { |
145 |
| - "breed": { |
146 |
| - "title": "Breed", |
147 |
| - "description": "Breed", |
148 |
| - "type": "string", |
149 |
| - "format": "string" |
150 |
| - }, |
151 |
| - "country": { |
152 |
| - "title": "Country", |
153 |
| - "description": "Country", |
154 |
| - "type": "string", |
155 |
| - "format": "string" |
156 |
| - }, |
157 |
| - "origin": { |
158 |
| - "title": "Origin", |
159 |
| - "description": "Origin", |
160 |
| - "type": "string", |
161 |
| - "format": "string" |
162 |
| - }, |
163 |
| - "coat": { |
164 |
| - "title": "Coat", |
165 |
| - "description": "Coat", |
166 |
| - "type": "string", |
167 |
| - "format": "string" |
168 |
| - }, |
169 |
| - "pattern": { |
170 |
| - "title": "Pattern", |
171 |
| - "description": "Pattern", |
172 |
| - "type": "string", |
173 |
| - "format": "string" |
174 |
| - } |
175 |
| - }, |
176 |
| - "type": "object" |
177 |
| - }, |
178 | 57 | "CatFact": {
|
179 | 58 | "title": "CatFact model",
|
180 | 59 | "description": "CatFact",
|
|
201 | 80 | "name": "Facts",
|
202 | 81 | "description": "Cat Facts"
|
203 | 82 | },
|
204 |
| - { |
205 |
| - "name": "Breeds", |
206 |
| - "description": "Breeds" |
207 |
| - } |
208 | 83 | ],
|
209 | 84 | "security": [
|
210 | 85 | []
|
|
0 commit comments