curl --request GET \
--url https://api.example.com/users/me \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>"
}
'{
"id": 123,
"username": "<string>",
"email": "<string>",
"password": "<string>",
"role": "<string>"
}curl --request GET \
--url https://api.example.com/users/me \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>"
}
'{
"id": 123,
"username": "<string>",
"email": "<string>",
"password": "<string>",
"role": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://mintlify.com/JuanSotoSegovia/apiREST-userManagementSystem/llms.txt
Use this file to discover all available pages before exploring further.
ROLE_USER authorityAuthorization: Bearer <jwt_token>
Content-Type: application/json
curl -X GET http://localhost:8080/users/me \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
-H "Content-Type: application/json" \
-d '{
"email": "usernormalsystem@ums.com",
"password": "NorUs1234"
}'
{
"id": 2,
"username": "normal-user",
"email": "usernormalsystem@ums.com",
"password": "$2a$10$zAjODzgBZhCuL80b1OT51.jpYuOB8WmwqZ/u9ls4Xf7r0.7Vh9.jy",
"role": "ROLE_USER"
}
{
"message": "Error de validacion",
"statusCode": 400,
"errors": [
"Email is required",
"Password is required"
]
}
{
"error": "Unauthorized",
"message": "Authentication failed"
}
ROLE_USER authority.
{
"error": "Forbidden",
"message": "Access denied"
}
curl -X POST http://localhost:8080/auth/login \
-H "Content-Type: application/json" \
-d '{
"email": "usernormalsystem@ums.com",
"password": "NorUs1234"
}'
token field that you can use in the Authorization header.