FIXME
Name | Type | Description | Example |
---|---|---|---|
created_at | date-time | when app was created | "2012-01-01T12:00:00Z" |
id | uuid | unique identifier of app | "01234567-89ab-cdef-0123-456789abcdef" |
updated_at | date-time | when app was updated | "2012-01-01T12:00:00Z" |
Create a new app.
POST /apps
$ curl -n -X POST https://api.hello.com/apps \
-H "Content-Type: application/json" \
HTTP/1.1 201 Created
{
"created_at": "2012-01-01T12:00:00Z",
"id": "01234567-89ab-cdef-0123-456789abcdef",
"updated_at": "2012-01-01T12:00:00Z"
}
Delete an existing app.
DELETE /apps/{app_id}
$ curl -n -X DELETE https://api.hello.com/apps/$APP_ID \
-H "Content-Type: application/json" \
HTTP/1.1 200 OK
{
"created_at": "2012-01-01T12:00:00Z",
"id": "01234567-89ab-cdef-0123-456789abcdef",
"updated_at": "2012-01-01T12:00:00Z"
}
Info for existing app.
GET /apps/{app_id}
$ curl -n -X GET https://api.hello.com/apps/$APP_ID
HTTP/1.1 200 OK
{
"created_at": "2012-01-01T12:00:00Z",
"id": "01234567-89ab-cdef-0123-456789abcdef",
"updated_at": "2012-01-01T12:00:00Z"
}
List existing apps.
GET /apps
$ curl -n -X GET https://api.hello.com/apps
HTTP/1.1 200 OK
[
{
"created_at": "2012-01-01T12:00:00Z",
"id": "01234567-89ab-cdef-0123-456789abcdef",
"updated_at": "2012-01-01T12:00:00Z"
}
]
Update an existing app.
PATCH /apps/{app_id}
$ curl -n -X PATCH https://api.hello.com/apps/$APP_ID \
-H "Content-Type: application/json" \
HTTP/1.1 200 OK
{
"created_at": "2012-01-01T12:00:00Z",
"id": "01234567-89ab-cdef-0123-456789abcdef",
"updated_at": "2012-01-01T12:00:00Z"
}
FIXME
Name | Type | Description | Example |
---|---|---|---|
created_at | date-time | when post was created | "2012-01-01T12:00:00Z" |
id | uuid | unique identifier of post | "01234567-89ab-cdef-0123-456789abcdef" |
updated_at | date-time | when post was updated | "2012-01-01T12:00:00Z" |
Create a new post.
POST /posts
$ curl -n -X POST https://api.hello.com/posts \
-H "Content-Type: application/json" \
HTTP/1.1 201 Created
{
"created_at": "2012-01-01T12:00:00Z",
"id": "01234567-89ab-cdef-0123-456789abcdef",
"updated_at": "2012-01-01T12:00:00Z"
}
Delete an existing post.
DELETE /posts/{post_id}
$ curl -n -X DELETE https://api.hello.com/posts/$POST_ID \
-H "Content-Type: application/json" \
HTTP/1.1 200 OK
{
"created_at": "2012-01-01T12:00:00Z",
"id": "01234567-89ab-cdef-0123-456789abcdef",
"updated_at": "2012-01-01T12:00:00Z"
}
Info for existing post.
GET /posts/{post_id}
$ curl -n -X GET https://api.hello.com/posts/$POST_ID
HTTP/1.1 200 OK
{
"created_at": "2012-01-01T12:00:00Z",
"id": "01234567-89ab-cdef-0123-456789abcdef",
"updated_at": "2012-01-01T12:00:00Z"
}
List existing posts.
GET /posts
$ curl -n -X GET https://api.hello.com/posts
HTTP/1.1 200 OK
[
{
"created_at": "2012-01-01T12:00:00Z",
"id": "01234567-89ab-cdef-0123-456789abcdef",
"updated_at": "2012-01-01T12:00:00Z"
}
]
Update an existing post.
PATCH /posts/{post_id}
$ curl -n -X PATCH https://api.hello.com/posts/$POST_ID \
-H "Content-Type: application/json" \
HTTP/1.1 200 OK
{
"created_at": "2012-01-01T12:00:00Z",
"id": "01234567-89ab-cdef-0123-456789abcdef",
"updated_at": "2012-01-01T12:00:00Z"
}