docs: fix projection curl commands (#1298) #1312
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Descrition
curl
commands for the projection feature docs are incorrect, this merge request updates them.Closes #1298
Output
The output of both commands on the public demo api.
$ curl -i -G http://eve-demo.herokuapp.com/people --data-urlencode 'projection={"lastname": 1, "born": 1}' HTTP/1.1 200 OK Content-Type: application/json Content-Length: 2364 X-Total-Count: 7 Cache-Control: max-age=20 Expires: Mon, 16 Sep 2019 14:33:23 GMT Last-Modified: Fri, 13 Sep 2019 08:34:26 GMT Server: Eve/0.8 Werkzeug/0.14.1 Python/3.6.5 Date: Mon, 16 Sep 2019 14:33:03 GMT X-Cache: MISS from w4m-mmm-almada-1 X-Cache-Lookup: HIT from w4m-mmm-almada-1:0 Via: 1.1 vegur, 1.1 w4m-mmm-almada-1 (squid/3.5.12) Connection: keep-alive {"_items": [{"_id": "5d70994dec8f9500043e5fe3", "lastname": "Red", "born": "Sun, 20 Jul 1980 11:00:00 GMT", "_updated": "Thu, 05 Sep 2019 05:12:45 GMT", "_created": "Thu, 05 Sep 2019 05:12:45 GMT", "_etag": "4cf5236b47951a074d9d526ba216bb6cfc57bc32", "_links": {"self": {"title": "person", "href": "people/5d70994dec8f9500043e5fe3"}}}, {"_id": "5d70994dec8f9500043e5fe4", "lastname": "White", "born": "Fri, 25 Sep 1970 10:00:00 GMT", "_updated": "Thu, 05 Sep 2019 05:12:45 GMT", "_created": "Thu, 05 Sep 2019 05:12:45 GMT", "_etag": "9050d049a2d90c13f33516f47baae53d6c9f77be", "_links": {"self": {"title": "person", "href": "people/5d70994dec8f9500043e5fe4"}}}, {"_id": "5d7b5492fa78500004da6e92", "lastname": "clinton", "_updated": "Fri, 13 Sep 2019 08:34:26 GMT", "_created": "Fri, 13 Sep 2019 08:34:26 GMT", "_etag": "cbac8162f6843a450c6e9eefc378ba6a03594069", "_links": {"self": {"title": "person", "href": "people/5d7b5492fa78500004da6e92"}}}, {"_id": "5d7b5492fa78500004da6e93", "lastname": "romney", "_updated": "Fri, 13 Sep 2019 08:34:26 GMT", "_created": "Fri, 13 Sep 2019 08:34:26 GMT", "_etag": "f1c2baba8f0eec777384547d9113643117287c07", "_links": {"self": {"title": "person", "href": "people/5d7b5492fa78500004da6e93"}}}, {"_id": "5d70994dec8f9500043e5fe0", "lastname": "Doe", "born": "Thu, 27 Aug 1970 14:37:13 GMT", "_updated": "Thu, 05 Sep 2019 05:12:45 GMT", "_created": "Thu, 05 Sep 2019 05:12:45 GMT", "_etag": "dc5c0ba4282ce1406235f4bfb198e7f8c4b5a433", "_links": {"self": {"title": "person", "href": "people/5d70994dec8f9500043e5fe0"}}}, {"_id": "5d70994dec8f9500043e5fe1", "lastname": "Love", "born": "Wed, 25 Feb 1987 17:00:00 GMT", "_updated": "Thu, 05 Sep 2019 05:12:45 GMT", "_created": "Thu, 05 Sep 2019 05:12:45 GMT", "_etag": "8d7bcd0d69af16c499d6bcf7542efcc7f654aab8", "_links": {"self": {"title": "person", "href": "people/5d70994dec8f9500043e5fe1"}}}, {"_id": "5d70994dec8f9500043e5fe2", "lastname": "Green", "born": "Sat, 23 Feb 1985 12:00:00 GMT", "_updated": "Thu, 05 Sep 2019 05:12:45 GMT", "_created": "Thu, 05 Sep 2019 05:12:45 GMT", "_etag": "72e86f0b96ad492c49a8eef3dbb527aac3409e3f", "_links": {"self": {"title": "person", "href": "people/5d70994dec8f9500043e5fe2"}}}], "_links": {"parent": {"title": "home", "href": "/"}, "self": {"title": "people", "href": "people"}}, "_meta": {"page": 1, "max_results": 25, "total": 7}}