Skip to content

API RF: Improve the way nested relationships are stored  #202

@ecoslado

Description

@ecoslado

I've changed the API to implement JSON API Standard. I used ActiveModel Serializers to do that, but I didn't find the way to make the serializer to store nested relationships in objects. So, in commons_controller.rb, I add every relationship explicitly:
https://github.com/siwapp/siwapp/blob/master/app/controllers/api/v1/commons_controller.rb#L49

Look for a cleaner solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions