3
0
corteza/api/system/spec/auth.json
Tit Petric 6ab0c9bf09 upd(system):
- update apis for login and logout,
- make OIDC routes and setup optional,
- refactor entrypoint to open up http testing
2018-11-26 17:01:39 +01:00

48 lines
954 B
JSON

{
"Title": "Authentication",
"Package": "auth",
"Interface": "Auth",
"Struct": null,
"Parameters": null,
"Protocol": "",
"Authentication": [],
"Path": "/auth",
"APIs": [
{
"Name": "check",
"Method": "GET",
"Title": "Check JWT token",
"Path": "/check",
"Parameters": {}
},
{
"Name": "login",
"Method": "POST",
"Title": "Login user",
"Path": "/login",
"Parameters": {
"post": [
{
"name": "username",
"required": true,
"title": "Username",
"type": "string"
},
{
"name": "password",
"required": true,
"title": "Password",
"type": "string"
}
]
}
},
{
"Name": "logout",
"Method": "GET",
"Title": "Delete JWT token (Sign Out)",
"Path": "/logout",
"Parameters": {}
}
]
}