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

Support params in resource #113

Closed
mstmustisnt opened this issue Oct 28, 2016 · 2 comments
Closed

Support params in resource #113

mstmustisnt opened this issue Oct 28, 2016 · 2 comments

Comments

@mstmustisnt
Copy link
Contributor

mstmustisnt commented Oct 28, 2016

Currently resource is taken from path passed to <CrudRoute/>
For example endpoint to resource is users/:id/messages.
I create crudRoute

<CrudRoute path="users/:id/messages"  list={MessagestList}/>

In this case resource will be the same as path.
Is there any way to pass resource separately with proper value instead of route param? Without making changes in rest-client to avoid wrong requests.

Will appreciate any help. Thank you!

@fzaninotto
Copy link
Member

Hi mstmustisnt ,

No, currently if you want to make a mapping between the resource and a custom path, you have to do it in the restClient.

@mstmustisnt
Copy link
Contributor Author

@fzaninotto thank you!

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