"paths": {
"/api/login": {
"post": {
"operationId": "login",
"parameters": [
{
"in": "body",
"name": "LoginParameters",
"schema": {
"properties": {
"username": {
"type": "string"
},
"password": {
"type": "string"
}
},
"type": "object"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"properties": {
"session_id": {
"type": "string"
},
"username": {
"type": "string"
}
},
"type": "object"
}
},
"400": {
"description": "Bad request",
"schema": {
"properties": {
"error": {
"type": "string"
}
},
"type": "object"
}
},
"401": {
"description": "Unauthorized"
}
}
}
},