ApiResponseDTOUserCategoryDTO
Standard API response wrapper for all endpoints.
Indicates whether the operation was successful
truedata object
DTO that groups a user with their list of categorized budget entries.
userDTO object
DTO representing a user in the system.
Unique identifier of the user
USR12345Username used for login
john_doeUser's first name
JohnUser's last name
DoeUser's email address
john.doe@example.comUser's mobile phone number
+212612345678categoryHolderDTOS object[]
List of categories associated with the user
categoryDTO object
DTO representing a budget or transaction category assigned to a user.
Unique identifier of the category
1ID of the user who owns this category
USR123Code identifying the category (e.g., internal or functional code)
FOODDisplay name of the category
Food & DiningMaximum allowed amount for this category
1000Whether the user should be notified when approaching the limit
trueHuman-readable message describing the result
Operation completed successfully{
"success": true,
"data": {
"userDTO": {
"id": "USR12345",
"username": "john_doe",
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"gsm": "+212612345678"
},
"categoryHolderDTOS": [
{
"categoryDTO": {
"id": 1,
"userID": "USR123",
"code": "FOOD",
"name": "Food & Dining"
},
"maximum": 1000,
"isNotify": true
}
]
},
"message": "Operation completed successfully"
}