File tree 1 file changed +24
-5
lines changed
1 file changed +24
-5
lines changed Original file line number Diff line number Diff line change @@ -117,12 +117,12 @@ override ``settings.REST_FRAMEWORK``::
117
117
}
118
118
119
119
120
+
120
121
If ``PAGINATE_BY `` is set the renderer will return a ``meta `` object with
121
122
record count and the next and previous links. Django Rest Framework looks
122
123
for the ``page `` GET parameter by default allowing you to make requests for
123
124
subsets of the data with ``this.store.find('identity', {page: 2}); ``.
124
125
125
-
126
126
resource_name property
127
127
^^^^^^^^^^^^^^^^^^^^^^
128
128
@@ -216,16 +216,35 @@ To display a specific error inline use the following::
216
216
{{/each}}
217
217
{{input name="title" value=title}}
218
218
219
- ======
219
+
220
+ ---------------------
221
+ Sideloading Resources
222
+ ---------------------
223
+
224
+ If you are using the JSON Renderer globally, this can lead to issues
225
+ when hitting endpoints that are intended to sideload other objects.
226
+
227
+ For example::
228
+
229
+ {
230
+ "users": [],
231
+ "cars": []
232
+ }
233
+
234
+
235
+ Set the ``resource_name `` property on the object to ``False ``, and the data
236
+ will be returned as it is above.
237
+
238
+
239
+ ------
220
240
Mixins
221
- ======
241
+ ------
222
242
223
243
The following mixin classes are available to use with Rest Framework
224
244
resources.
225
245
226
- -------------------------------------------
227
246
rest_framework_ember.mixins.MultipleIDMixin
228
- -------------------------------------------
247
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
229
248
230
249
Overrides ``get_queryset `` to filter by ``ids[] `` in URL query params.
231
250
You can’t perform that action at this time.
0 commit comments