Skip to content

Shallow routing and Restangular. #1137

@hickscorp

Description

@hickscorp

Considering Rails documentation under Shallow Nesting section, i would like to know if such scheme can be extended to Restangular.

Basically, this would mean:

  • To be able to list / create resources under another one (Index, New, Create).
  • But for any resource to be PUT when already having an ID, use another API endpoint. This also applies to DELETE and GET (Basically whenever the ID is known).

How would one accomplish this using Restangular?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions