pilwon / node-ultimate

Dependency library for `ultimate-seed`
https://github.com/pilwon/ultimate-seed
19 stars 11 forks source link

Does Restify support deeper API calls? #15

Open bluepeter opened 10 years ago

bluepeter commented 10 years ago

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

maurerbot commented 10 years ago

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