Auth
API for authentication
Login_ Auth
AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:18080/api/v1/auth/login" \ -H "Content-Type: application/json" \ -d '{ "password": "string", "username": "string" }'{
"accessExpiresUnix": 0,
"accessToken": "string",
"id": "string",
"refreshToken": "string",
"username": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Logout_ Auth
AuthorizationBearer <token>
In: header
Path Parameters
refreshToken*string
Response Body
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/auth/logout/string"Empty
{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Find all refresh tokens
AuthorizationBearer <token>
In: header
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/auth/refresh/find-all"[
{
"expires": "2019-08-24T14:15:22Z",
"id": "string",
"token": "string",
"username": "string"
}
]{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Refresh_ Auth
AuthorizationBearer <token>
In: header
Path Parameters
refreshToken*string
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/auth/refresh/string"{
"accessExpiresUnix": 0,
"accessToken": "string",
"id": "string",
"refreshToken": "string",
"username": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}