jsonapi-utils (jsonapi-resources) requires a serializer (resource) for each ResourceController
class FooController < JsonapiController
def create
# some code
end
end
class BarController < JsonapiController
def create
# some code
end
end
In this example BarController should use FooResource. Is it possible to define the serializer?
You can just specify the class manually by implementing the
resource_classmethod: