Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add url option to assocation for jsonapi #840

Closed
wants to merge 2 commits into from

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