node-ultimate icon indicating copy to clipboard operation
node-ultimate copied to clipboard

Does Restify support deeper API calls?

Open bluepeter opened this issue 11 years ago • 1 comments

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

bluepeter avatar Feb 22 '14 02:02 bluepeter

@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();

4x4notfound avatar May 26 '14 14:05 4x4notfound