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

Nested REST APIs #409

Closed
spfjr opened this issue Apr 27, 2015 · 6 comments
Closed

Nested REST APIs #409

spfjr opened this issue Apr 27, 2015 · 6 comments
Labels

Comments

@spfjr
Copy link

spfjr commented Apr 27, 2015

Hey guys,

I really like your project. I see from the documentation and from testing out the project that it works great for top-level entities. However, I haven't been able to figure out a way to get it working with nested entities. Is it possible to access a REST entity with a path of /firstEntity//secondEntity/?

Thanks!

@fzaninotto
Copy link
Member

Hi spfjr,

We're relying on Restangular for that, and I'm not sure it allows to modify the URLs as you wish. I've found a related issue (mgonto/restangular#310), let me know if it works for you.

@spfjr
Copy link
Author

spfjr commented Apr 29, 2015

Francois,

I actually saw that Restangular issue. Unfortunately, like the creator of that ticket, I don't think that would work for my needs. I already tried to modify the path in a fullRequestInterceptor() function, but I figured I would see if there was some other possible configuration before deciding whether or not I wanted to refactor my REST API.

Thank you for the quick response!

@sebest
Copy link

sebest commented Jun 1, 2015

You don't plan on adding this feature?

@fzaninotto
Copy link
Member

If we need it for our own projects, we will. In the meantime, you're welcome to try and implement it, and submit a PR for it.

@sebest
Copy link

sebest commented Jun 1, 2015

My angular/js skill is really low, that's also why this project was really appealing until i hit this wall.

@fzaninotto
Copy link
Member

The solution is described in #711

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

No branches or pull requests

3 participants