- Table of Contents
GET /api/users HTTP/1.1
200
Content-Type: application/json; charset=utf-8
{
"users" : [ {
"name" : "Bob",
"height" : 172
}, {
"name" : "Alice",
"height" : 155
} ]
}
find user
GET /api/users/yuno HTTP/1.1
200
Content-Type: application/json; charset=utf-8
{
"user" : {
"name" : "yuno",
"height" : 163
}
}
POST /api/users HTTP/1.1
X-API-Token: YOUR_API_TOKEN
X-Public-Token: non-secret
{
"name" : "yuno",
"height" : 144
}
201
Content-Type: application/json; charset=utf-8
{
"user" : {
"name" : "yuno",
"height" : 144
}
}
get all users
GET /api/users HTTP/1.1
200
Content-Type: application/json; charset=utf-8
{
"users" : [ {
"name" : "Bob",
"height" : 172
}, {
"name" : "Alice",
"height" : 155
} ]
}
find user
GET /api/users/yuno HTTP/1.1
200
Content-Type: application/json; charset=utf-8
{
"user" : {
"name" : "yuno",
"height" : 163
}
}
POST /api/users HTTP/1.1
X-API-Token: YOUR_API_TOKEN
X-Public-Token: non-secret
{
"name" : "yuno",
"height" : 144
}
201
Content-Type: application/json; charset=utf-8
{
"user" : {
"name" : "yuno",
"height" : 144
}
}