3
0
corteza/api/system/spec/auth.json

48 lines
957 B
JSON

{
"Title": "Authentication",
"Interface": "Auth",
"Struct": null,
"Parameters": null,
"Protocol": "",
"Authentication": [],
"Path": "/auth",
"APIs": [
{
"Name": "settings",
"Method": "GET",
"Title": "Returns auth settings",
"Path": "/",
"Parameters": {}
},
{
"Name": "check",
"Method": "GET",
"Title": "Check JWT token",
"Path": "/check",
"Parameters": {}
},
{
"Name": "exchangeAuthToken",
"Method": "POST",
"Title": "Exchange auth token for JWT",
"Path": "/exchange",
"Parameters": {
"post": [
{
"name": "token",
"required": true,
"title": "Token to be exchanged for JWT",
"type": "string"
}
]
}
},
{
"Name": "logout",
"Method": "GET",
"Title": "Logout",
"Path": "/logout",
"Parameters": {}
}
]
}