Skip to content

Commit

Permalink
fix projection curl commands (#1298)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro2555 committed Sep 16, 2019
1 parent ce0a0ea commit 0a2bdab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/features.rst
Expand Up @@ -980,15 +980,15 @@ where the client dictates which fields should be returned by the API.
.. code-block:: console
$ curl -i http://eve-demo.herokuapp.com/people?projection={"lastname": 1, "born": 1}
$ curl -i -G http://eve-demo.herokuapp.com/people --data-urlencode 'projection={"lastname": 1, "born": 1}'
HTTP/1.1 200 OK
The query above will only return *lastname* and *born* out of all the fields
available in the 'people' resource. You can also exclude fields:
.. code-block:: console
$ curl -i http://eve-demo.herokuapp.com/people?projection={"born": 0}
$ curl -i -G http://eve-demo.herokuapp.com/people --data-urlencode 'projection={"born": 0}'
HTTP/1.1 200 OK
The above will return all fields but *born*. Please note that key fields such
Expand Down

0 comments on commit 0a2bdab

Please sign in to comment.