Skip to content

Commit 0187ec0

Browse files
committed
Merge branch 'master' of github.com:mevdschee/php-crud-api
2 parents 0541367 + daccaed commit 0187ec0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ The following features are supported:
108108
- Multi-domain CORS support for cross-domain requests
109109
- Support for reading joined results from multiple tables
110110
- Search support on multiple criteria
111-
- Pagination, seeking, sorting and column selection
111+
- Pagination, sorting, top N and column selection
112112
- Relation detection with nested results (belongsTo, hasMany and HABTM)
113113
- Atomic increment support via PATCH (for counters)
114114
- Binary fields supported with base64 encoding
@@ -413,18 +413,14 @@ NB: You may sort on multiple fields by using multiple "order" parameters. You ca
413413
The "size" parameter limits the number of returned records. This can be used for top N lists together with the "order" parameter (use descending order).
414414

415415
```
416-
GET /records/categories?order=id&size=2
416+
GET /records/categories?order=id,desc&size=1
417417
```
418418

419419
Output:
420420

421421
```
422422
{
423423
"records":[
424-
{
425-
"id": 1
426-
"name": "Internet"
427-
},
428424
{
429425
"id": 3
430426
"name": "Web development"

0 commit comments

Comments
 (0)