Auth
Login a user
Changed onpost/auth/login
Request
- Base URL: http://localhost:7460/api/v1
- URL: http://localhost:7460/api/v1/auth/login
- Auth: none declared
Request body
Example request
{
"email": "user@example.com",
"password": "password"
}Response
Login successful
Example response
{
"user": {
"id": 1,
"name": "John Doe",
"email": "user@example.com"
},
"token": "1|abc123..."
}Changes
- breaking
the
response's property type changed fromobjectto no type for status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - info
added to the
response propertyallOflist for the response status
- breaking