Skip to content

Conversation

@lsylvester
Copy link
Contributor

This adds the url option to associations to tell the jsonapi adapter to use a url instead of a link object.

The adapter assumes that the correct url can be generated using named_routes.

In order to generate the urls, the adapter is given the controller instance to use to generate the urls. Let me know if I should be exposing url generation abilities is some other way.

Fixes #834

@lsylvester
Copy link
Contributor Author

This may need to change depending on feedback for json-api/json-api#453

@joaomdmoura
Copy link
Member

FYI
The tests are not actually broken.
It's and inconsistence related to to cache feature at Travis. I've discussed it with @kurko and I am already looking into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JSONAPI resource relation urls

3 participants