Login
POST/user-svc/login
Authenticates a user and returns a token.
Request
- application/json
Body
required
Login Request
contact string
password string
slug string
Responses
- 200
- 400
- 500
Login successful
- application/json
- Schema
- Example (from schema)
Schema
token
object
createdAt string
deletedAt string
id string
token string
updatedAt string
userId string
{
"token": {
"createdAt": "string",
"deletedAt": "string",
"id": "string",
"token": "string",
"updatedAt": "string",
"userId": "string"
}
}
Invalid JSON
- application/json
- Schema
- Example (from schema)
Schema
error string
{
"error": "string"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
error string
{
"error": "string"
}
Loading...