Skip to content

Commit

Permalink
Per page docs json:api
Browse files Browse the repository at this point in the history
  • Loading branch information
binaryk committed Nov 12, 2021
1 parent f80cdec commit 8fc6916
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs-v2/content/en/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8fc6916

Please sign in to comment.