-
Notifications
You must be signed in to change notification settings - Fork 5
Login
Görkem Mülayim edited this page Jul 20, 2017
·
4 revisions
/login
POST
{
"username" : "x", // String
"password" : "x" // String
}
- Code: 200 OK
- Content:
{
"status": "success",
"user":
{
"name": "x",
"surname": "x",
"username": "x",
"email": "x@x"
}
}
- Code: 401 Unauthorized
- Content:
{
"status": "error",
"message": "Invalid username or password!"
}
curl -H "Content-Type: application/json" -H "Accept: application/json" -X POST -d '{"username":"x","password":"x"}' https://not2do.herokuapp.com/login