/login
PAss the username and password as params. It will give you the user token, An admin token is needed for most of the operations. must be pass as a header named "token" (provisional name ;) )
/users
DELETE all
GET all
POST add new user
{
"username":"luis",
"name":"luis",
"password":"luis",
"email":"luis@luis",
"role":"developer",
"status":"active"
}
/users/:username GET this user
/users/:username/status
GET status
POST change status
{"status":"cancelled"}
/users/:username/role
GET role
POST change role
{"role":"customer"}
/users/:username/password
GET password
POST change password
{"password":"11223344"}
ENDPOINTS
/endpoints
GET get all endpoints
POST add new endpoints
{
"role":"admin",
"endpoint":"packages",
"verbs":"get,post,put"
}
/endpoints/:username
GET get this user endpoints based on his role
/login PAss the username and password as params. It will give you the user token, An admin token is needed for most of the operations. must be pass as a header named "token" (provisional name ;) )
/users
DELETE all GET all POST add new user { "username":"luis", "name":"luis", "password":"luis", "email":"luis@luis", "role":"developer", "status":"active" }
/users/:username GET this user
/users/:username/status GET status POST change status {"status":"cancelled"}
/users/:username/role GET role POST change role {"role":"customer"}
/users/:username/password GET password POST change password {"password":"11223344"}
ENDPOINTS
/endpoints GET get all endpoints POST add new endpoints { "role":"admin", "endpoint":"packages", "verbs":"get,post,put" }
/endpoints/:username GET get this user endpoints based on his role