-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi_descr.py
39 lines (32 loc) · 1 KB
/
openapi_descr.py
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
description = """
## Sample App secured by Oauth2 with Keycloak
### Alpha Release Aug 30, 2023
---
_Repository_: [bvandewe/securedapi](https://github.com/bvandewe/securedapi)
This simple API includes endpoints that are secured with different levels:
- Public: No Authentication
- Restricted:
- Authenticated User
- Authenticated User + Role
- Authenticated User + Claim type
- Authenticated User + Claim type:value
- Authenticated User + Claims [{type:value}, {type:value}]
"""
tags_metadata = [
{
"name": "Unrestricted",
"description": "Routes that are available publicly",
"externalDocs": {
"description": "Public docs",
"url": "https://github.com/bvandewe/securedapi",
},
},
{
"name": "Restricted",
"description": "Routes that are restricted based on claims from JWT",
"externalDocs": {
"description": "Restricted docs",
"url": "https://github.com/bvandewe/securedapi",
},
}
]