Last change
on this file since 460 was 460, checked in by alloc, 15 months ago |
More OpenAPI specs added
OpenAPI specs cleanup to have everything validate fine
Added CORS support to API endpoints
|
File size:
1.1 KB
|
Line | |
---|
1 | openapi: 3.1.0
|
---|
2 | info:
|
---|
3 | title: OpenAPI
|
---|
4 | version: '1'
|
---|
5 |
|
---|
6 |
|
---|
7 | paths:
|
---|
8 | /api/OpenAPI/openapi.yaml:
|
---|
9 | get:
|
---|
10 | tags:
|
---|
11 | - Meta
|
---|
12 | summary: OpenAPI master document
|
---|
13 | description: Fetch the OpenAPI master document, referencing all the individual WebAPI specs
|
---|
14 | operationId: OpenAPI.openapi
|
---|
15 | responses:
|
---|
16 | 200:
|
---|
17 | content:
|
---|
18 | application/json: {}
|
---|
19 | description: OpenAPI master document
|
---|
20 | /api/OpenAPI/{name}.openapi.yaml:
|
---|
21 | get:
|
---|
22 | tags:
|
---|
23 | - Meta
|
---|
24 | summary: OpenAPI spec for single API
|
---|
25 | description: Fetch the OpenAPI spec of a single WebAPI
|
---|
26 | operationId: OpenAPI.getAPI
|
---|
27 | parameters:
|
---|
28 | - in: path
|
---|
29 | name: name
|
---|
30 | required: true
|
---|
31 | schema:
|
---|
32 | pattern: '[^\/#\?]+?'
|
---|
33 | type: string
|
---|
34 | responses:
|
---|
35 | 200:
|
---|
36 | content:
|
---|
37 | application/json: {}
|
---|
38 | description: OpenAPI spec for API
|
---|
39 | 404:
|
---|
40 | content:
|
---|
41 | application/json: {}
|
---|
42 | description: No OpenAPI spec found for the API name
|
---|
Note:
See
TracBrowser
for help on using the repository browser.