From 68ee9017db17f946a56929c48dd47b2319a78d3e Mon Sep 17 00:00:00 2001 From: Typicode Date: Mon, 4 May 2015 19:51:07 +0200 Subject: [PATCH] Update README.md --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2d05944..53d7f64 100644 --- a/README.md +++ b/README.md @@ -50,11 +50,12 @@ PATCH /posts/1 DEL /posts/1 ``` -To slice resources, add `_start` and `_end`. An `X-Total-Count` header is included in the response. +To slice resources, add `_start` and `_end` or `_limit`. An `X-Total-Count` header is included in the response. ``` -GET /posts?_start=0&_end=10 -GET /posts/1/comments?_start=0&_end=10 +GET /posts?_start=20&_end=30 +GET /posts?_start=20&_limit=10 +GET /posts/1/comments?_start=20&_end=30 ``` To sort resources, add `_sort` and `_order` (ascending order by default).