A resource action is – in fact – a state transition. This API example demonstrates an action - state transition - to another resource.
Parameters | |||
---|---|---|---|
status |
status
|
- | |
priority |
priority
|
- |
Headers | |
---|---|
Content-Type | application/json |
application/json
[
{
"id": 123,
"name": "Exercise in gym",
"done": false,
"type": "task"
},
{
"id": 124,
"name": "Shop for groceries",
"done": true,
"type": "task"
}
]
This is a state transition to another resource.
Parameters | |||
---|---|---|---|
status |
status
|
- | |
priority |
priority
|
- | |
id |
id
|
- |
Headers | |
---|---|
Content-Type | application/json |
application/json
{
"id": 123,
"name": "Go to gym",
"done": false,
"type": "task"
}