From 377a85128776870a83103ec409f99160d6f4e6a0 Mon Sep 17 00:00:00 2001 From: Fayder Florez Date: Sun, 5 Mar 2017 12:29:56 +0200 Subject: [PATCH] Update README --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 3ac16496..2f259422 100644 --- a/README.md +++ b/README.md @@ -208,6 +208,19 @@ https://restcountries.eu/rest/v2/name/afghanistan }] }] ``` + +Filter Response +======= + +You can filter the output of your request to include only the specified fields. + +``` javascript +https://restcountries.eu/rest/v2/{service}?fields={field};{field};{field} +``` +``` html +https://restcountries.eu/rest/v2/all?fields=name;capital;currencies +``` + Sources ======= * [@mledoze]