Request
Send your HTTP requests with an Authorization
header that contains the word Basic followed by a space and a base64-encoded string username:password Example:Authorization: Basic *****************
Body Params application/json
{
"user": {
"username": "string",
"password": "string",
"email": "string",
"fullName": "string",
"phoneNumber": "string",
"profilePicture": "string"
}
}
Request Code Samples
curl --location --request POST 'http://localhost:8080/auth/register' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data-raw '{
"user": {
"username": "string",
"password": "string",
"email": "string",
"fullName": "string",
"phoneNumber": "string",
"profilePicture": "string"
}
}'
Responses
{
"code": 0,
"result": {
"accessToken": "string",
"refreshToken": "string",
"expiresAt": "string"
},
"error": "string"
}
Modified at 2026-01-25 17:36:30