puppy-api-docs
Version:
Genernate material api docs from your comments.
63 lines (61 loc) • 1.32 kB
JavaScript
/*
{
"title": "Login",
"method": "POST",
"group": "Authentication",
"description": "Login with email and password for consumers and admins.",
"path": "/login",
"response": {
"status": 200,
"message": "Help message depending on success",
"success": false
},
"request": {
"data": {
"email": "User's email",
"password": "User's Password"
}
},
"requestHeaders": {
"Content-Type": "application/json"
},
"responseHeaders": {
"token": "session token"
}
}
{
"title": "Login 2nd",
"group": "Authentication",
"method": "POST",
"path": "/loginAlternate",
"description": "If /login doesn't work. Use this end point."
}
*/
/*
{
"title": "Get todo list",
"method": "GET",
"description": "Login with email and password for consumers and admins.",
"path": "/todolist",
"response": {
"status": 200,
"message": "Help message depending on success",
"success": true
},
"request": {
"data": {
"email": "User's email",
"password": "User's Password"
}
},
"requestHeaders": {
"token": "token provided in login response"
}
}
*/