User login
POST
/login
const url = 'http://localhost:8000/api/v1/login';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"email":"hello@example.com","phone":"example","username":"example","password":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8000/api/v1/login \ --header 'Content-Type: application/json' \ --data '{ "email": "hello@example.com", "phone": "example", "username": "example", "password": "example" }'Request Body required
Section titled “Request Body required ” Media type application/json
object
email
string format: email
phone
string
username
string
password
required
string format: password
Example generated
{ "email": "hello@example.com", "phone": "example", "username": "example", "password": "example"}Responses
Section titled “ Responses ”User successfully logged in
Invalid credentials
Server error