Setting up
Get the written rows back
Send this header with a write to receive the rows as they were stored.
Prefer: return=representationA write answers with no body by default. With this header it answers the rows it wrote, read back with the request's select, so you can embed relations in the answer of a write.
Writes are off until the server turns them on for a resource. In this page, tags can be created, and a todo's name, status and owner can be changed.
Examples
POST /tags?select=id,name
Prefer: return=representation
{ "id": 4, "name": "later" }Asking the database...
PATCH /todos/2?select=name,owner(name)
Prefer: return=representation
{ "owner_id": 1 }Asking the database...
The database in this page is yours: writes stay until you load the page again.
See alsoOne row by its key