Was this helpful?
Updates the user details for the specified ID
/users/{id}
curl -L \ --request PUT \ --url 'https://lamapi3.azurewebsites.net/users/{id}' \ --header 'Authorization: Bearer JWT' \ --header 'Content-Type: application/json' \ --data '{"firstName":"text","lastName":"text","email":"text"}'
{ "id": 1, "firstName": "text", "lastName": "text", "email": "text" }
Deletes the user with the specified ID
curl -L \ --request DELETE \ --url 'https://lamapi3.azurewebsites.net/users/{id}' \ --header 'Authorization: Bearer JWT'
No body
Retrieves the current authenticated user's details
/users
curl -L \ --url 'https://lamapi3.azurewebsites.net/users' \ --header 'Authorization: Bearer JWT'
Creates a new user with the provided details
curl -L \ --request POST \ --url 'https://lamapi3.azurewebsites.net/users' \ --header 'Authorization: Bearer JWT' \ --header 'Content-Type: application/json' \ --data '{"firstName":"text","lastName":"text","email":"text"}'