Skip to main content

ApiResponseDTOUserDTO

Standard API response wrapper for all endpoints.

successboolean

Indicates whether the operation was successful

Example: true
data object

DTO representing a user in the system.

idstring

Unique identifier of the user

Example: USR12345
usernamestring

Username used for login

Example: john_doe
firstNamestring

User's first name

Example: John
lastNamestring

User's last name

Example: Doe
emailstring

User's email address

Example: john.doe@example.com
gsmstring

User's mobile phone number

Example: +212612345678
messagestring

Human-readable message describing the result

Example: Operation completed successfully
ApiResponseDTOUserDTO
{
"success": true,
"data": {
"id": "USR12345",
"username": "john_doe",
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"gsm": "+212612345678"
},
"message": "Operation completed successfully"
}