Skip to content

Side Loading Without Include Parameter #254

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

Closed
lllama opened this issue Jun 16, 2016 · 2 comments
Closed

Side Loading Without Include Parameter #254

lllama opened this issue Jun 16, 2016 · 2 comments

Comments

@lllama
Copy link

lllama commented Jun 16, 2016

Is it possible to have an example of how to sideload data without relying on the client to supply the include parameter? I have a ModelViewSet where I want to push some related data to the client but I can't find an easy way to do this.

@jerel
Copy link
Member

jerel commented Jun 16, 2016

Are you asking about a way to add data to included even if the query param include is not present or a way to add arbitrary data to the payload (this isn't allowed by the spec). If it's the former check out #250

@jerel jerel closed this as completed Jun 16, 2016
@lllama
Copy link
Author

lllama commented Jun 16, 2016

Yep - it's the former. I'd like to get things into the included part of the response. Apologies for the issue noise - I didn't think to look in the pull requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants