This API example demonstrates how to define a standalone endpoint with an identifier.
Now create a task that you need to do at a later date.
Headers | |
---|---|
Content-Type | application/json |
application/json
{
"name": "Exercise in gym",
"done": false,
"type": "task"
}
Headers | |
---|---|
Location | /tasks/1992 |
Start out by creating a message for the world to see.
Headers | |
---|---|
Content-Type | application/json |
application/json
{
"message": "Hello World!"
}
Headers | |
---|---|
Location | /messages/1337 |