Fix the plurality header docs for v0.4 (#32)

This commit is contained in:
phil
2017-01-26 07:32:27 -08:00
committed by Joe Nelson
parent 3262607b5b
commit 404fcb6b27
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -218,12 +218,12 @@ By default PostgREST returns all JSON results in an array, even when there is on
{ "id": 1 }
]
This can be inconvenient for client code. To return the first result as an object unenclosed by an array, Include a Prefer request header
This can be inconvenient for client code. To return the first result as an object unenclosed by an array, specify :code:`vnd.pgrst.object` as part of the :code:`Accept` header
.. code:: http
GET /items?id=eq.1 HTTP/1.1
Prefer: plurality=singular
Accept: application/vnd.pgrst.object+json
This returns