Structured response bodyBody structurat al răspunsului
application/json
Structured response bodyBody structurat al răspunsului
Complete response schemaSchema completă a răspunsului
{
"$ref": "#/components/schemas/Session",
"type": "object",
"additionalProperties": false,
"required": [
"user",
"must_change_password",
"expires_at",
"csrf_token"
],
"properties": {
"user": {
"$ref": "#/components/schemas/User",
"type": "object",
"additionalProperties": false,
"required": [
"id",
"username",
"roles"
],
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"username": {
"type": "string",
"minLength": 1
},
"roles": {
"type": "array",
"items": {
"type": "string",
"enum": [
"administrator",
"engineer",
"operator",
"auditor",
"business_viewer"
]
},
"uniqueItems": true
}
}
},
"must_change_password": {
"type": "boolean"
},
"expires_at": {
"type": "string",
"format": "date-time"
},
"csrf_token": {
"type": "string",
"minLength": 1
}
}
}{
"user": {
"id": "11111111-1111-4111-8111-000000000001",
"username": "synthetic-user",
"roles": [
"administrator"
]
},
"must_change_password": false,
"expires_at": "2026-08-01T10:00:00Z",
"csrf_token": "synthetic-csrf-token"
}