forked from peterkajan/django-rest-framework-json-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit bcf09c4
Add option to specify default included resources (django-json-api#250)
* Add option to specify default included resources
Let's provide an extra JSONAPIMeta configuration option that specifies
resources to be listed in the 'included' section of the response.
These resources shall be included even if they're not explicitly mentioned
in the 'include' request parameter.
* Re-trigger Travis Build script
The previous build failure was caused by some
random environment issue.
* Ignore default 'included' resources if specified in request
Conform to the specs and ensure that no other resources are included
in the response other than those explicitely requested inside the
'include' parameter in request.
* Add tests for default included_resources feature1 parent 043eeb5 commit bcf09c4
File tree
3 files changed
+22
-0
lines changed- example/tests/integration
- rest_framework_json_api
3 files changed
+22
-0
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 | + | ||
4 | 5 |
| |
5 | 6 |
| |
6 | 7 |
| |
| |||
10 | 11 |
| |
11 | 12 |
| |
12 | 13 |
| |
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
13 | 18 |
| |
14 | 19 |
| |
15 | 20 |
| |
| |||
26 | 31 |
| |
27 | 32 |
| |
28 | 33 |
| |
34 | + | ||
29 | 35 |
| |
30 | 36 |
| |
31 | 37 |
| |
32 | 38 |
| |
39 | + | ||
40 | + | ||
33 | 41 |
| |
34 | 42 |
| |
35 | 43 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
578 | 578 |
| |
579 | 579 |
| |
580 | 580 |
| |
581 | + | ||
582 | + | ||
583 | + | ||
584 | + | ||
585 | + | ||
586 | + | ||
587 | + | ||
581 | 588 |
| |
582 | 589 |
| |
583 | 590 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
340 | 340 |
| |
341 | 341 |
| |
342 | 342 |
| |
343 | + | ||
344 | + | ||
345 | + | ||
346 | + | ||
347 | + | ||
348 | + | ||
349 | + | ||
343 | 350 |
| |
344 | 351 |
| |
345 | 352 |
| |
|
0 commit comments