Skip to content

Commit 46597c1

Browse files
committed
docs: add pagination instructions
1 parent b88e4f2 commit 46597c1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,3 +151,13 @@ You can add a namespace to the URL by specifying it in `ConfigureServices`:
151151
services.AddJsonApi<AppDbContext>(
152152
opt => opt.Namespace = "api/v1");
153153
```
154+
155+
## Pagination
156+
157+
If you would like pagination implemented by default, you can specify the page size
158+
when setting up the services:
159+
160+
```
161+
services.AddJsonApi<AppDbContext>(
162+
opt => opt.DefaultPageSize = 10);
163+
```

0 commit comments

Comments
 (0)