JavaScript Restangular Multiple IDs in GET restangular multiple base url,restangular multiple requests,multiple restangular,restangular

I'm looking at switching from resource to restangular in my AngularJS app. I like the new model, but I have one problem. I can't figure out how to make this API call:

http://localhost:8000/api/entity/groups/1,2,3,4/events

I have code like this:

var GroupService = ['Restangular', function (Restangular) {
    var restAngular = Restangular.withConfig(function (Configurer) {
        Configurer.setBaseUrl('/api/entity');
    });

    return {
        getEvents: function (groupIds) {
            return restAngular.all('groups', groupsIds).getList('events');
        }
    }
}];

Is there a way to ask for a set of groups (more than one and not all of them) and then get all events for any of those groups?

Answer:1

I'm creating an 'advanced' Tic Tac Toe game in which each turn disappears after 10 seconds (ie: each X or O placed reverts to a blank square after 10 seconds). This all works fine, but the issue ...

I'm creating an 'advanced' Tic Tac Toe game in which each turn disappears after 10 seconds (ie: each X or O placed reverts to a blank square after 10 seconds). This all works fine, but the issue ...

Ok, i spent all day to trying "connect" css styles with svg files created in inkscape. I've got svg file with map and couple of path, and i want to change fill color when i mouseover on that path. ...

Ok, i spent all day to trying "connect" css styles with svg files created in inkscape. I've got svg file with map and couple of path, and i want to change fill color when i mouseover on that path. ...

  1. change path fill color css
  2. change path fill css
  3. change fill path
  4. change svg path fill color
  5. wpf change path fill color
  6. change svg path fill css
  7. javascript change path fill color
  8. jquery change path fill

I am using an awesome html2canvas function but I have a noob question. How do I change the field it is capturing from document.body to a specific panel? In short i need to change document.body to the ...

I am using an awesome html2canvas function but I have a noob question. How do I change the field it is capturing from document.body to a specific panel? In short i need to change document.body to the ...

I cant find why my code isn't working. When I click on the generated element the alert is not firing. Here is a fiddle : http://jsfiddle.net/pZAdP/ And the code <button id="addMenuItem">Add ...

I cant find why my code isn't working. When I click on the generated element the alert is not firing. Here is a fiddle : http://jsfiddle.net/pZAdP/ And the code <button id="addMenuItem">Add ...

  1. jquery click event not firing
  2. jquery click event listener
  3. jquery click event target
  4. jquery click event firing twice
  5. jquery click event not working on mobile
  6. jquery click event get element
  7. jquery click event on class
  8. jquery click event function
  9. jquery click event stop propagation
  10. jquery click event parameters
  11. jquery click event only works once
  12. jquery click event get element id
  13. jquery click event for dynamic elements
  14. jquery click event on anchor tag
  15. jquery click event pass parameter
  16. jquery click event on pseudo element
  17. jquery click event on element
  18. jquery click event on disabled input
  19. jquery click event order
  20. jquery click event get href