Authenticate an admin user.
Authenticate via admin user and generate a JWT token.
POST
/api/v1/authenticate
curl \
--request POST 'http://localhost:8080/api/v1/authenticate' \
--header "Content-Type: application/json" \
--data '{"username":"admin","password":"password"}'
Request examples
{
"username": "admin",
"password": "password"
}
Response examples (404)
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
]
}
}
Response examples (500)
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
]
}
}
Response examples (400)
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
]
}
}
Response examples (200)
{
"jwtToken": "string",
"refreshToken": "string"
}