<aside> 💡
All authenticated requests should send an authorization header
.
{
“Authorization”: “jwt”
}
</aside>
Endpoint: /api/v1/signup
HTTP Method: POST
Request Body:
{
"username": "[email protected]",
"password": "123123"
}
Response:
200
: Authentication successful (return token){
"message": "signed up successfully"
}
401
: Invalid credentials500
: Internal server errorEndpoint: /api/v1/signin
HTTP Method: POST
Request Body:
{
"username": "[email protected]",
"password": "123123"
}
Response:
200
: Authentication successful (return token){
"token": "jwt_token"
}
401
: Invalid credentials500
: Internal server error