Skip to content
New issue

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

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

Already on GitHub? # to your account

Get single entity #571

Closed
lakshmiaswath opened this issue Jul 24, 2015 · 3 comments
Closed

Get single entity #571

lakshmiaswath opened this issue Jul 24, 2015 · 3 comments

Comments

@lakshmiaswath
Copy link

The call for fetching a single entity is - baseApiUrl/entityname/id .
Where as my requirement is - baseApiUrl/entityname?id . Id should be passed as params .Is there way as how we could/change this ?

@jpetitcolas
Copy link
Contributor

You can try using a full request interceptor (documentation and use sample), but I'm not sure you can override the called URL. That's more a Restangular issue than a ng-admin one thus. :)

@lakshmiaswath
Copy link
Author

@jpetitcolas : Thank you .Will look into restangular :)

@fzaninotto
Copy link
Member

Note that Restangular doesn't allow to modify the URL (cf mgonto/restangular#603). The solution is to use a interceptor on Angular's $http service, as described in #711.

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

No branches or pull requests

3 participants