|
6 | 6 | "name": "Team developer.overheid.nl", |
7 | 7 | "url": "https://github.com/developer-overheid-nl/don-tools-api/issues" |
8 | 8 | }, |
9 | | - "description": "API van het Tools (apis.developer.overheid.nl)", |
| 9 | + "description": "API to access the tools endpoints of developer.overheid.nl.\n\n## Auth\n\nThis API provides tools endpoints that can be accessed with either an API key or a client credentials token.\n\n### API key\n\nUsing an API key, you can access the tools endpoints.\nThese requests can also be made from the browser.\nRequest a read-only API key at https://apis.developer.overheid.nl/apis/key-aanvragen.\nSimply pass the obtained API key with each request using the `X-Api-Key` header.\n\n### Client credentials token\n\nUsing a client credentials token, you can access the tools endpoints.\nTo obtain the token, perform a `POST` request to `https://auth.developer.overheid.nl/realms/don/protocol/openid-connect/token` with the following Form URL Encoded body:\n- `grant_type`: `client_credentials`\n- `scope`: `tools`\n- `client_id`: the client id you received from us\n- `client_secret`: the client secret you received from us\n\nPass the obtained token with each request using the `Authorization` header. Example:\n\n`Authorization`: `Bearer {ACCESS_TOKEN}` (replace `{ACCESS_TOKEN}` with the obtained `access_token`)", |
10 | 10 | "title": "Tools API v1", |
11 | 11 | "version": "1.0.0" |
12 | 12 | }, |
|
39 | 39 | "content": { |
40 | 40 | "application/json": { |
41 | 41 | "schema": { |
42 | | - "$ref": "#/components/schemas/OASInput" |
| 42 | + "$ref": "#/components/schemas/OasInput" |
43 | 43 | } |
44 | 44 | } |
45 | 45 | } |
|
66 | 66 | } |
67 | 67 | }, |
68 | 68 | "404": { |
69 | | - "description": "Not Found" |
| 69 | + "$ref": "#/components/responses/404" |
70 | 70 | } |
71 | 71 | }, |
72 | 72 | "security": [ |
73 | 73 | { |
74 | 74 | "apiKey": [], |
75 | | - "clientCredentials": ["tools"] |
| 75 | + "clientCredentials": [] |
76 | 76 | } |
77 | 77 | ], |
78 | 78 | "summary": "Arazzo Markdown (POST)", |
79 | | - "tags": ["Tools"], |
| 79 | + "tags": [ |
| 80 | + "Tools" |
| 81 | + ], |
80 | 82 | "x-eov-operation-handler": "controllers/ToolsController" |
81 | 83 | } |
82 | 84 | }, |
|
88 | 90 | "content": { |
89 | 91 | "application/json": { |
90 | 92 | "schema": { |
91 | | - "$ref": "#/components/schemas/OASInput" |
| 93 | + "$ref": "#/components/schemas/OasInput" |
92 | 94 | } |
93 | 95 | } |
94 | 96 | } |
|
115 | 117 | } |
116 | 118 | }, |
117 | 119 | "404": { |
118 | | - "description": "Not Found" |
| 120 | + "$ref": "#/components/responses/404" |
119 | 121 | } |
120 | 122 | }, |
121 | 123 | "security": [ |
122 | 124 | { |
123 | 125 | "apiKey": [], |
124 | | - "clientCredentials": ["tools"] |
| 126 | + "clientCredentials": [] |
125 | 127 | } |
126 | 128 | ], |
127 | 129 | "summary": "Arazzo Mermaid (POST)", |
128 | | - "tags": ["Tools"], |
| 130 | + "tags": [ |
| 131 | + "Tools" |
| 132 | + ], |
129 | 133 | "x-eov-operation-handler": "controllers/ToolsController" |
130 | 134 | } |
131 | 135 | }, |
|
164 | 168 | } |
165 | 169 | }, |
166 | 170 | "404": { |
167 | | - "description": "Not Found" |
| 171 | + "$ref": "#/components/responses/404" |
168 | 172 | } |
169 | 173 | }, |
170 | 174 | "security": [ |
171 | 175 | { |
172 | 176 | "apiKey": [], |
173 | | - "clientCredentials": ["tools"] |
| 177 | + "clientCredentials": [] |
174 | 178 | } |
175 | 179 | ], |
176 | 180 | "summary": "Maak client (POST)", |
177 | | - "tags": ["Tools"], |
| 181 | + "tags": [ |
| 182 | + "Tools" |
| 183 | + ], |
178 | 184 | "x-eov-operation-handler": "controllers/ToolsController" |
179 | 185 | } |
180 | 186 | }, |
|
186 | 192 | "content": { |
187 | 193 | "application/json": { |
188 | 194 | "schema": { |
189 | | - "$ref": "#/components/schemas/OASInput" |
| 195 | + "$ref": "#/components/schemas/OasInput" |
190 | 196 | } |
191 | 197 | } |
192 | 198 | } |
|
206 | 212 | } |
207 | 213 | }, |
208 | 214 | "404": { |
209 | | - "description": "Not Found" |
| 215 | + "$ref": "#/components/responses/404" |
210 | 216 | } |
211 | 217 | }, |
212 | 218 | "security": [ |
213 | 219 | { |
214 | 220 | "apiKey": [], |
215 | | - "clientCredentials": ["tools"] |
| 221 | + "clientCredentials": [] |
216 | 222 | } |
217 | 223 | ], |
218 | 224 | "summary": "Converteer OpenAPI 3.0/3.1", |
219 | | - "tags": ["Tools"], |
| 225 | + "tags": [ |
| 226 | + "Tools" |
| 227 | + ], |
220 | 228 | "x-eov-operation-handler": "controllers/ToolsController" |
221 | 229 | } |
222 | 230 | }, |
|
228 | 236 | "content": { |
229 | 237 | "application/json": { |
230 | 238 | "schema": { |
231 | | - "$ref": "#/components/schemas/OASInput" |
| 239 | + "$ref": "#/components/schemas/OasInput" |
232 | 240 | } |
233 | 241 | } |
234 | 242 | } |
|
248 | 256 | } |
249 | 257 | }, |
250 | 258 | "404": { |
251 | | - "description": "Not Found" |
| 259 | + "$ref": "#/components/responses/404" |
252 | 260 | } |
253 | 261 | }, |
254 | 262 | "security": [ |
255 | 263 | { |
256 | 264 | "apiKey": [], |
257 | | - "clientCredentials": ["tools"] |
| 265 | + "clientCredentials": [] |
258 | 266 | } |
259 | 267 | ], |
260 | 268 | "summary": "Bundle OpenAPI", |
261 | | - "tags": ["Tools"], |
| 269 | + "tags": [ |
| 270 | + "Tools" |
| 271 | + ], |
262 | 272 | "x-eov-operation-handler": "controllers/ToolsController" |
263 | 273 | } |
264 | 274 | }, |
|
270 | 280 | "content": { |
271 | 281 | "application/json": { |
272 | 282 | "schema": { |
273 | | - "$ref": "#/components/schemas/OASInput" |
| 283 | + "$ref": "#/components/schemas/OasInput" |
274 | 284 | } |
275 | 285 | } |
276 | 286 | } |
|
297 | 307 | } |
298 | 308 | }, |
299 | 309 | "404": { |
300 | | - "description": "Not Found" |
| 310 | + "$ref": "#/components/responses/404" |
301 | 311 | } |
302 | 312 | }, |
303 | 313 | "security": [ |
304 | 314 | { |
305 | 315 | "apiKey": [], |
306 | | - "clientCredentials": ["tools"] |
| 316 | + "clientCredentials": [] |
307 | 317 | } |
308 | 318 | ], |
309 | 319 | "summary": "Generate OpenAPI", |
310 | | - "tags": ["Tools"], |
| 320 | + "tags": [ |
| 321 | + "Tools" |
| 322 | + ], |
311 | 323 | "x-eov-operation-handler": "controllers/ToolsController" |
312 | 324 | } |
313 | 325 | }, |
|
319 | 331 | "content": { |
320 | 332 | "application/json": { |
321 | 333 | "schema": { |
322 | | - "$ref": "#/components/schemas/OASInput" |
| 334 | + "$ref": "#/components/schemas/OasInput" |
323 | 335 | } |
324 | 336 | } |
325 | 337 | } |
|
346 | 358 | } |
347 | 359 | }, |
348 | 360 | "404": { |
349 | | - "description": "Not Found" |
| 361 | + "$ref": "#/components/responses/404" |
350 | 362 | } |
351 | 363 | }, |
352 | 364 | "security": [ |
353 | 365 | { |
354 | 366 | "apiKey": [], |
355 | | - "clientCredentials": ["tools"] |
| 367 | + "clientCredentials": [] |
356 | 368 | } |
357 | 369 | ], |
358 | 370 | "summary": "Validate OpenAPI (POST)", |
359 | | - "tags": ["Tools"], |
| 371 | + "tags": [ |
| 372 | + "Tools" |
| 373 | + ], |
360 | 374 | "x-eov-operation-handler": "controllers/ToolsController" |
361 | 375 | } |
362 | 376 | }, |
|
368 | 382 | "content": { |
369 | 383 | "application/json": { |
370 | 384 | "schema": { |
371 | | - "$ref": "#/components/schemas/OASInput" |
| 385 | + "$ref": "#/components/schemas/OasInput" |
372 | 386 | } |
373 | 387 | } |
374 | 388 | } |
|
388 | 402 | } |
389 | 403 | }, |
390 | 404 | "404": { |
391 | | - "description": "Not Found" |
| 405 | + "$ref": "#/components/responses/404" |
392 | 406 | } |
393 | 407 | }, |
394 | 408 | "security": [ |
395 | 409 | { |
396 | 410 | "apiKey": [], |
397 | | - "clientCredentials": ["tools"] |
| 411 | + "clientCredentials": [] |
398 | 412 | } |
399 | 413 | ], |
400 | 414 | "summary": "Maak Postman-collectie (POST)", |
401 | | - "tags": ["Tools"], |
| 415 | + "tags": [ |
| 416 | + "Tools" |
| 417 | + ], |
402 | 418 | "x-eov-operation-handler": "controllers/ToolsController" |
403 | 419 | } |
404 | 420 | } |
|
420 | 436 | "description": "Resource does not exist", |
421 | 437 | "headers": { |
422 | 438 | "API-Version": { |
423 | | - "$ref": "#/headers/API-Version" |
| 439 | + "$ref": "#/components/headers/API-Version" |
424 | 440 | } |
425 | 441 | } |
426 | 442 | } |
427 | 443 | }, |
428 | 444 | "schemas": { |
429 | | - "OASInput": { |
| 445 | + "OasInput": { |
430 | 446 | "example": { |
431 | 447 | "oasUrl": "oasUrl", |
432 | 448 | "oasBody": "oasBody", |
|
626 | 642 | "securitySchemes": { |
627 | 643 | "apiKey": { |
628 | 644 | "in": "header", |
629 | | - "name": "X-API-Key", |
630 | | - "type": "apiKey" |
| 645 | + "name": "X-Api-Key", |
| 646 | + "type": "apiKey", |
| 647 | + "description": "Read-only API keys for tools endpoints can be requested at https://apis.developer.overheid.nl/apis/key-aanvragen." |
631 | 648 | }, |
632 | 649 | "clientCredentials": { |
633 | 650 | "flows": { |
634 | 651 | "clientCredentials": { |
635 | 652 | "scopes": { |
636 | | - "tools:read": "Toegang tot de tools endpoints" |
| 653 | + "tools": "Access to tools endpoints" |
637 | 654 | }, |
638 | | - "tokenUrl": "https://auth.don.apps.digilab.network/realms/don/protocol/openid-connect/token" |
| 655 | + "tokenUrl": "https://auth.developer.overheid.nl/realms/don/protocol/openid-connect/token" |
639 | 656 | } |
640 | 657 | }, |
641 | 658 | "type": "oauth2" |
|
0 commit comments