Closed JonathanJumper closed 6 years ago
This gem follows the json api (http://jsonapi.org/) standard, whereas your desired output format doesn't. I'd recommend writing your own serializer or using AMS (https://github.com/rails-api/active_model_serializers/tree/v0.10.6/docs).
Hey, I'm new to serializers, I have some models and some relations within,
I'm trying to construct the json response but I don't know how to make it in the way I want (front end expects)
Here is what I've got so far in Offer json:
And this is what I want