article

Attributes

# Name Type Format Description Example
createdAt string date-time datetime created data 2015-04-21T23:59:60Z
id integer resource id 1
name string user name Ken
updatedAt string date-time datetime updated data 2015-04-21T23:59:60Z

GET /articles - List

List existing articles.

Curl Example

curl http://localhost/articles -X GET \
       -H "Content-Type: application/json"

Response Example

HTTP/1.1 200 OK
{
  "createdAt": "2015-04-21T23:59:60Z",
  "id": 1,
  "name": "Ken",
  "updatedAt": "2015-04-21T23:59:60Z"
}

GET /articles/{id} - Info

Info for existing article.

Curl Example

curl http://localhost/articles/{id} -X GET \
       -H "Content-Type: application/json"

Response Example

HTTP/1.1 200 OK
{
  "createdAt": "2015-04-21T23:59:60Z",
  "id": 1,
  "name": "Ken",
  "updatedAt": "2015-04-21T23:59:60Z"
}

POST /articles - Create

Create a new article.

Curl Example

curl http://localhost/articles -X POST \
       -H "Content-Type: application/json" \
       -d '{
  "createdAt": "2015-04-21T23:59:60Z",
  "id": 1,
  "name": "Ken",
  "updatedAt": "2015-04-21T23:59:60Z"
}'

Response Example

HTTP/1.1 201 Created

PATCH /articles/{id} - Update

Update an existing article.

Curl Example

curl http://localhost/articles/{id} -X PATCH \
       -H "Content-Type: application/json" \
       -d '{
  "createdAt": "2015-04-21T23:59:60Z",
  "id": 1,
  "name": "Ken",
  "updatedAt": "2015-04-21T23:59:60Z"
}'

Response Example

HTTP/1.1 200 OK
{
  "createdAt": "2015-04-21T23:59:60Z",
  "id": 1,
  "name": "Ken",
  "updatedAt": "2015-04-21T23:59:60Z"
}

DELETE /article/{id} - Delete

Delete an existing article.

Curl Example

curl http://localhost/article/{id} -X DELETE \
       -H "Content-Type: application/json" \
       -d '{
  "createdAt": "2015-04-21T23:59:60Z",
  "id": 1,
  "name": "Ken",
  "updatedAt": "2015-04-21T23:59:60Z"
}'

Response Example

HTTP/1.1 204 No Content

user

Attributes

# Name Type Format Description Example
createdAt string date-time datetime created data 2015-04-21T23:59:60Z
id integer resource id 1
name string user name Ken
updatedAt string date-time datetime updated data 2015-04-21T23:59:60Z

GET /users - List

List existing users.

Curl Example

curl http://localhost/users -X GET \
       -H "Content-Type: application/json"

Response Example

HTTP/1.1 200 OK
{
  "createdAt": "2015-04-21T23:59:60Z",
  "id": 1,
  "name": "Ken",
  "updatedAt": "2015-04-21T23:59:60Z"
}

GET /users/{id} - Info

Info for existing user.

Curl Example

curl http://localhost/users/{id} -X GET \
       -H "Content-Type: application/json"

Response Example

HTTP/1.1 200 OK
{
  "createdAt": "2015-04-21T23:59:60Z",
  "id": 1,
  "name": "Ken",
  "updatedAt": "2015-04-21T23:59:60Z"
}

POST /users - Create

Create a new user.

Curl Example

curl http://localhost/users -X POST \
       -H "Content-Type: application/json" \
       -d '{
  "createdAt": "2015-04-21T23:59:60Z",
  "id": 1,
  "name": "Ken",
  "updatedAt": "2015-04-21T23:59:60Z"
}'

Response Example

HTTP/1.1 201 Created

PATCH /users/{id} - Update

Update an existing user.

Curl Example

curl http://localhost/users/{id} -X PATCH \
       -H "Content-Type: application/json" \
       -d '{
  "createdAt": "2015-04-21T23:59:60Z",
  "id": 1,
  "name": "Ken",
  "updatedAt": "2015-04-21T23:59:60Z"
}'

Response Example

HTTP/1.1 200 OK
{
  "createdAt": "2015-04-21T23:59:60Z",
  "id": 1,
  "name": "Ken",
  "updatedAt": "2015-04-21T23:59:60Z"
}

DELETE /user/{id} - Delete

Delete an existing user.

Curl Example

curl http://localhost/user/{id} -X DELETE \
       -H "Content-Type: application/json" \
       -d '{
  "createdAt": "2015-04-21T23:59:60Z",
  "id": 1,
  "name": "Ken",
  "updatedAt": "2015-04-21T23:59:60Z"
}'

Response Example

HTTP/1.1 204 No Content