| { |
| "title": "Body", |
| "body": { |
| "content": { |
| "application/json": { |
| "schema": { |
| "properties": { |
| "password": { |
| "description": "The password for authentication", |
| "example": "complex-password", |
| "type": "string" |
| }, |
| "provider": { |
| "description": "Choose an authentication provider", |
| "enum": ["db", "ldap"], |
| "example": "db", |
| "type": "string" |
| }, |
| "refresh": { |
| "description": "If true a refresh token is provided also", |
| "example": true, |
| "type": "boolean" |
| }, |
| "username": { |
| "description": "The username for authentication", |
| "example": "admin", |
| "type": "string" |
| } |
| }, |
| "type": "object" |
| }, |
| "example": { |
| "password": "complex-password", |
| "provider": "db", |
| "refresh": true, |
| "username": "admin" |
| } |
| } |
| }, |
| "required": true |
| } |
| } |