From d7fec25d85e67f7eb4822a0fa7e1574eec27f51c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Forr=C3=B3?= Date: Wed, 25 Apr 2018 21:06:52 +0200 Subject: [PATCH] Add note about X-Total-Count --- api/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/README.md b/api/README.md index 7eb8dc5..0d5d754 100644 --- a/api/README.md +++ b/api/README.md @@ -34,6 +34,8 @@ GET /quotes curl --request GET --data 'https://tld.example/api/quotes?filter=cheese&sort_by=date&sort_order=asc' ``` +*Note: `X-Total-Count` header is set to a total number of quotes after filtering (useful for pagination)* + Example response: ```JSON