From 8fc69163d0cc8e82d48ef06f9ecb396e8d4fc22b Mon Sep 17 00:00:00 2001 From: Eduard Lupacescu Date: Fri, 12 Nov 2021 11:35:37 +0200 Subject: [PATCH] Per page docs json:api --- docs-v2/content/en/quickstart.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs-v2/content/en/quickstart.md b/docs-v2/content/en/quickstart.md index 73c3415c..26d74d03 100644 --- a/docs-v2/content/en/quickstart.md +++ b/docs-v2/content/en/quickstart.md @@ -47,7 +47,13 @@ install Laravel Restify while still preferring stable package releases for your Having the package setup and users table migrated, you should be good to perform the first API request: ```http request -GET: /api/restify/users?perPage=10 +GET: /api/restify/users?perPage=10&page=2 +``` + +or using [json api](https://jsonapi.org/profiles/ethanresnick/cursor-pagination/#auto-id-pagesize) format: + +```http request +GET: /api/restify/users?page[size]=10&page[number]=2 ``` This should return the users list paginated and formatted according to [JSON:API](https://jsonapi.org/format/) standard.