You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`JSONAPI::Resources` also provides an alternative class to `ResourceController` called `ResourceControllerMetal`.
1203
-
In order to provide a lighter weight controller option this strips the controller down to just the classes needed
1204
+
In order to provide a lighter weight controller option this strips the controller down to just the classes needed
1204
1205
to work with `JSONAPI::Resources`.
1205
1206
1206
1207
For example:
@@ -1212,7 +1213,7 @@ end
1212
1213
```
1213
1214
1214
1215
Note: This may not provide all of the expected controller capabilities if you are using additional gems such as DoorKeeper.
1215
-
1216
+
1216
1217
###### Serialization Options
1217
1218
1218
1219
Additional options can be passed to the serializer using the `serialization_options` method.
@@ -1888,6 +1889,15 @@ phone_number_contact GET /phone-numbers/:phone_number_id/contact(.:format) co
1888
1889
1889
1890
```
1890
1891
1892
+
### Authorization
1893
+
1894
+
Currently `json-api-resources` doesn't come with built-in primitives for authorization. However multiple users of the framework have come up with different approaches, check out:
Refer to the comments/discussion [here](https://github.com/cerebris/jsonapi-resources/issues/16#issuecomment-222438975) for the differences between approaches
1900
+
1891
1901
## Configuration
1892
1902
1893
1903
JR has a few configuration options. Some have already been mentioned above. To set configuration options create an
0 commit comments