-
Notifications
You must be signed in to change notification settings - Fork 1
Admin Login
Vaishakh GK edited this page Apr 24, 2023
·
4 revisions
Route to login as admin.
URL : /api/admin/login
Method : POST
Auth Required : No
Data constraints
{
"username": "[valid username]"
"password": "[password in plain text]"
}Data example
{
"username": "admin",
"password": "password"
}Code : 200 OK
Content example
"Login Successful"Note: A session will be created for the user upon successful login.
Code : 401 Unauthorized
Content :
"Wrong username or password"Code : 500 Internal Server Error
Content :
"Request failed"