curl -X GET https://api.arca.example.com/users \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
[
{
"id_User": "123e4567-e89b-12d3-a456-426614174000",
"nome": "John Doe",
"email": "[email protected]",
"roleId": 2,
"role": {
"id_Role": 2,
"role": "Manager",
"descricao": "Can manage users and view reports"
}
},
{
"id_User": "987fcdeb-51a2-43f7-b456-123456789abc",
"nome": "Jane Smith",
"email": "[email protected]",
"roleId": 3,
"role": {
"id_Role": 3,
"role": "User",
"descricao": "Standard user access"
}
}
]
curl -X GET https://api.arca.example.com/users \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
[
{
"id_User": "123e4567-e89b-12d3-a456-426614174000",
"nome": "John Doe",
"email": "[email protected]",
"roleId": 2,
"role": {
"id_Role": 2,
"role": "Manager",
"descricao": "Can manage users and view reports"
}
},
{
"id_User": "987fcdeb-51a2-43f7-b456-123456789abc",
"nome": "Jane Smith",
"email": "[email protected]",
"roleId": 3,
"role": {
"id_Role": 3,
"role": "User",
"descricao": "Standard user access"
}
}
]
Authorization: Bearer {token}
curl -X GET https://api.arca.example.com/users \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
[
{
"id_User": "123e4567-e89b-12d3-a456-426614174000",
"nome": "John Doe",
"email": "[email protected]",
"roleId": 2,
"role": {
"id_Role": 2,
"role": "Manager",
"descricao": "Can manage users and view reports"
}
},
{
"id_User": "987fcdeb-51a2-43f7-b456-123456789abc",
"nome": "Jane Smith",
"email": "[email protected]",
"roleId": 3,
"role": {
"id_Role": 3,
"role": "User",
"descricao": "Standard user access"
}
}
]