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

Model Instance with Custom Header #40

Open
nardoguy14 opened this issue Mar 17, 2015 · 2 comments
Open

Model Instance with Custom Header #40

nardoguy14 opened this issue Mar 17, 2015 · 2 comments

Comments

@nardoguy14
Copy link

I'd like to be able to make model instances that use a sails-rest connection with headers custom to the model for the connection. Is there any way to do inheritance of some sort with sails-rest?

Thank you,

Bernardo Arevalo

@zohararad
Copy link
Owner

@nardoguy14 I'm not sure. Perhaps using the query function?

@zohararad
Copy link
Owner

@nardoguy14 Please check out v0.1.0-waterline-v0.10 - I decided to finally rewrite the entire adapter to be compatible with Waterline 0.10.

One feature that might be relevant here is the ability to set headers before issuing a request. Please let me know if this helps, or close the issue otherwise.

Thanks

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