Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Here we define our book model and REST api.*/
- var books = $resource('api/books/:id', {
- id: '@id'
- }, {
- query: {
- method: 'GET',
- isArray: false,
- params : {
- filter : 'all'
- }
- },
- //I wanted one for search to take in above /search... path
- search : {
- //not sure how i can define path `/myapp/search/book?key=jerry&value=1`
- // is it even possible
- method: 'GET',
- ...
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement