-
Notifications
You must be signed in to change notification settings - Fork 1
/
openapi-schema.yml
67 lines (54 loc) · 1.26 KB
/
openapi-schema.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
openapi: 3.0.3
info:
title: Resource Server API
description: API for retrieving resources
version: 1.0.0
servers:
- url: https://api.local.test
description: DEV server
security:
- oauth2AccessControl:
- openid
# - oidcAccessControl:
# - openid
paths:
/resources:
get:
summary: >
Gets all the resources
responses:
'200':
description: The details of all the resources
content:
application/json:
schema:
type: array
items:
type: object
/resources/{resource_id}:
parameters:
- name: resource_id
in: path
required: true
schema:
type: string
get:
summary: >
Gets the referenced resource
responses:
'200':
description: The referenced resource
content:
application/json:
schema:
type: object
components:
securitySchemes:
oauth2AccessControl:
type: oauth2
flows:
authorizationCode:
authorizationUrl: https://connect.local.test/auth
oidcAccessControl:
type: openIdConnect
openIdConnectUrl: https://connect.local.test/.well-known/openid-configuration