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

Does Restify support deeper API calls? #15

Open
bluepeter opened this issue Feb 22, 2014 · 1 comment
Open

Does Restify support deeper API calls? #15

bluepeter opened this issue Feb 22, 2014 · 1 comment

Comments

@bluepeter
Copy link

For example: GET /api/user/:id returns data about the user, and LIST /api/user/:id/tweets returns that user's tweets.

@maurerbot
Copy link

@bluepeter the way I've been doing it is is defining my deeper uri's like restify.any ('/api/user/:id/tweets', c.api.user.tweets, ['list']); and on the client with Restangular Restangular .one('user', $stateParams.id).all('tweets').getList();

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