Name: Login API
Description: This API endpoint allows users to log in by providing their credentials (username/email and password).
Method: POST
Endpoint URL: /v1/login
POST/v1/login| Header Name | Description | Required | Example |
|---|---|---|---|
Content-Type | The content type of the request | Yes | application/json |
Accept | Expected response format | No | application/json |
The request body should be sent in JSON format with the following parameters:
| Field Name | Data Type | Description | Required | Example |
|---|---|---|---|---|
email | string | The email of the user | Yes | "[email protected]" |
password | string | The password of the user | Yes | "yourpassword123" |
Status Code: 200 OK
Message: Success
Data: User object
The body is of type object.
Unauthorized
The response is of type object.