{
"username": "najat-mansour",
"password": "Najat#Mansour28",
"firstName": "Najat",
"lastName": "Mansour",
"email": "[email protected]",
"birthdate": "2003-01-28",
"gender": "FEMALE",
"address": {
"country": "Palestine",
"city": "Nablus",
"town": "",
"street": ""
}
}
{
"message": "User registered successfully."
}
{
"error": "Weak Password."
}
{
"error": "Username or email already exists."
}
PATCH /task-go/v1/users/{id}
Headers
Header |
Value |
Authorization |
Bearer {JWT}
|
Parameter |
Type |
Description |
id |
string |
UUID of the user to be updated. |
{
"password": "Najat#Mansour28",
"firstName": "Najat",
"lastName": "Mansour",
"birthdate": "2003-01-28",
"gender": "FEMALE",
"address": {
"country": "Palestine",
"city": "Nablus",
"town": "",
"street": ""
},
"app_rate": 5
}
All fields are optional.
{
"message": "User information updated successfully."
}
{
"error": "Invalid input format."
}
{
"error": "Weak Password."
}
{
"error": "Unauthorized. Token missing or invalid."
}
{
"error": "User not found."
}
Headers
Header |
Value |
Authorization |
Bearer <JWT>
|
[
{
"id": "user-uuid",
"username": "najat-mansour",
"firstName": "Najat",
"lastName": "Mansour",
"email": "[email protected]",
"birthdate": "2003-01-28",
"gender": "FEMALE",
"address": {
"country": "Palestine",
"city": "Nablus",
"town": "",
"street": ""
},
"createdAt": "2025-05-02T18:00:00",
"app_rate": 5
}
]
{
"error": "Unauthorized. Token missing or invalid."
}
{
"error": "No users found."
}
GET /task-go/v1/users/id/{id}
Headers
Header |
Value |
Authorization |
Bearer <JWT>
|
Parameter |
Type |
Description |
id |
string |
UUID of the user. |
{
"id": "user-uuid",
"username": "najat-mansour",
"firstName": "Najat",
"lastName": "Mansour",
"email": "[email protected]",
"birthdate": "2003-01-28",
"gender": "FEMALE",
"address": {
"country": "Palestine",
"city": "Nablus",
"town": "",
"street": ""
},
"createdAt": "2025-05-02T18:00:00",
"app_rate": 5
}
{
"error": "Unauthorized. Token missing or invalid."
}
{
"error": "User not found."
}
GET /task-go/v1/users/username/{username}
Headers
Header |
Value |
Authorization |
Bearer <JWT>
|
Parameter |
Type |
Description |
username |
string |
Username of the user to find. |
{
"id": "user-uuid",
"username": "najat-mansour",
"firstName": "Najat",
"lastName": "Mansour",
"email": "[email protected]",
"birthdate": "2003-01-28",
"gender": "FEMALE",
"address": {
"country": "Palestine",
"city": "Nablus",
"town": "",
"street": ""
},
"createdAt": "2025-05-02T18:00:00",
"app_rate": 5
}
{
"error": "Unauthorized. Token missing or invalid."
}
{
"error": "User not found with this username."
}
GET /task-go/v1/users/email/{email}
Headers
Header |
Value |
Authorization |
Bearer <JWT>
|
Parameter |
Type |
Description |
email |
string |
Email of the user. |
{
"id": "user-uuid",
"username": "najat-mansour",
"firstName": "Najat",
"lastName": "Mansour",
"email": "[email protected]",
"birthdate": "2003-01-28",
"gender": "FEMALE",
"address": {
"country": "Palestine",
"city": "Nablus",
"town": "",
"street": ""
},
"createdAt": "2025-05-02T18:00:00",
"app_rate": 5
}
{
"error": "Unauthorized. Token missing or invalid."
}
{
"error": "User not found with this email."
}