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`.
1202
-
In order to provide a lighter weight controller option this strips the controller down to just the classes needed
1203
+
In order to provide a lighter weight controller option this strips the controller down to just the classes needed
1203
1204
to work with `JSONAPI::Resources`.
1204
1205
1205
1206
For example:
@@ -1211,7 +1212,7 @@ end
1211
1212
```
1212
1213
1213
1214
Note: This may not provide all of the expected controller capabilities if you are using additional gems such as DoorKeeper.
1214
-
1215
+
1215
1216
###### Serialization Options
1216
1217
1217
1218
Additional options can be passed to the serializer using the `serialization_options` method.
@@ -1887,6 +1888,15 @@ phone_number_contact GET /phone-numbers/:phone_number_id/contact(.:format) co
1887
1888
1888
1889
```
1889
1890
1891
+
### Authorization
1892
+
1893
+
To this day `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
1899
+
1890
1900
## Configuration
1891
1901
1892
1902
JR has a few configuration options. Some have already been mentioned above. To set configuration options create an
0 commit comments