Get All Users
users:*users:get
namestring (except:[bob, john]) - user name
statusnumric (default:10, only:[10, 20, 30]) - user status
- Here is note1
- Here is note2
GET /users
Content-Type: application/json
{
"status": 10,
"name": "tarou"
}
200
Content-Type: application/json; charset=utf-8
{
"id": 1,
"name": "tarou",
"status": 10,
"created_at": "2015-04-21T14:55:09.351Z",
"updated_at": "2015-04-21T14:55:09.351Z"
}
GET /users
Content-Type: application/json
{
"status": 20,
"name": "tarou"
}
404
Content-Type: application/json; charset=utf-8
{
"message": "not found"
}
Post New User
users:*users:store
namestring (except:[bob, john]) - user name
statusnumric (default:10, only:[10, 20, 30]) - user status
- Here is note1
- Here is note2
POST /users/new
Content-Type: application/json
{
"status": 10,
"name": "ichiro"
}
200
Content-Type: application/json; charset=utf-8
{
"id": 1,
"created_at": "2015-04-21T14:55:09.351Z"
}