@@ -109,10 +109,10 @@ These features match features in v1 (see branch "v1"):
109
109
- [ ] Permission system for databases, tables, columns and records
110
110
- [ ] Multi-tenant database layouts are supported
111
111
- [x] Multi-domain CORS support for cross-domain requests
112
- - [x] Combined requests with support for multiple table names
112
+ - [x] Support for reading joined results from multiple tables
113
113
- [x] Search support on multiple criteria
114
114
- [x] Pagination, seeking, sorting and column selection
115
- - [x] Relation detection nested results (belongsTo, hasMany and HABTM)
115
+ - [x] Relation detection with nested results (belongsTo, hasMany and HABTM)
116
116
- [ ] ~~ Relation "transforms" (of condensed JSON) for PHP and JavaScript~~
117
117
- [x] Atomic increment support via PATCH (for counters)
118
118
- [x] Binary fields supported with base64 encoding
@@ -215,7 +215,7 @@ Where "1" is the value of the primary key of the record that you want to read. I
215
215
"created": "2018-03-05T20:12:56Z"
216
216
}
217
217
218
- On read operations you may apply includes .
218
+ On read operations you may apply joins .
219
219
220
220
#### Update
221
221
@@ -262,7 +262,7 @@ It will return:
262
262
]
263
263
}
264
264
265
- On list operations you may apply filters and includes .
265
+ On list operations you may apply filters and joins .
266
266
267
267
### Filters
268
268
@@ -319,7 +319,7 @@ by adding a letter (a-f) you can create almost any reasonably complex condition
319
319
320
320
NB: You can only filter on the requested table (not on it's included) and filters are only applied on list calls.
321
321
322
- ### Includes
322
+ ### Joins
323
323
324
324
Let's say that you have a posts table that has comments (made by users) and the posts can have tags.
325
325
@@ -337,7 +337,7 @@ When you want to list posts with their comments users and tags you can ask for t
337
337
338
338
These paths have the same root and this request can be written in URL format as:
339
339
340
- GET /records/posts?include =comments,users&include =tags
340
+ GET /records/posts?join =comments,users&join =tags
341
341
342
342
Here you are allowed to leave out the intermediate table that binds posts to tags. In this example
343
343
you see all three table relation types (hasMany, belongsTo and hasAndBelongsToMany) in effect:
0 commit comments