-
Notifications
You must be signed in to change notification settings - Fork 77
Get URL for method #249
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
Comments
The API does not provide an easy way to do this. |
Would it be a great deal of effort to do this? |
Could we not expose |
Or, rather than expose DSUtils, expose a function that does what that line does: DSUtils.makePath(options.baseUrl || resourceConfig.baseUrl, resourceConfig.getEndpoint(null, options)), |
I'll think about it. |
I would love an api like this: var foo = DS.defineResource('foo');
var fooUrl = foo.findAll.getUrl(params, options); So we'd just add a This is incidentally what I'm doing for the instance and class methods that I was telling you about yesterday. So far, it's working really well. |
Added Example: var User = DS.defineResource('user');
DSHttpAdapter.getPath('find', User, 1); |
Huzzah! Thanks! |
It hasn't made it into js-data yet... |
I have a use case where I need to get the
findAll
URL for a resource. Is there an easy way to do this?The text was updated successfully, but these errors were encountered: