/*global angular*/
(function () {
    'use strict';

    //Slideshows service used to communicate Slideshows REST endpoints
    angular.module('slideshows').factory('Slideshows', ['$resource',
        function ($resource) {
            return $resource('slideshows/:slideshowId',
                             { slideshowId: '@_id' },
                             { update:
                              {method: 'PUT'}
                             });
        }]);
}());

@@ -272,16 +272,18 @@
 showId',
+ %7B
 %0A       
@@ -295,84 +295,325 @@
     
-             %7B slideshowId: '@_id' %7D,%0A                             %7B update:
+slideshowId: '@_id'%0A            %7D, %7B%0A                update: %7B%0A                    method: 'PUT'%0A                %7D,%0A                getDevices: %7B%0A                    method: 'GET',%0A                    url: 'slideshowDevices/:slideshowId',%0A                    isArray: true,%0A                    params: %7Bname: '@name'%7D
 %0A   
@@ -617,32 +617,35 @@
                 
+%7D,%0A
               %7Bm
@@ -642,17 +642,52 @@
         
-%7B
+  setDevices: %7B%0A                    
 method: 
@@ -691,18 +691,20 @@
 d: 'PUT'
-%7D%0A
+,%0A  
         
@@ -704,32 +704,88 @@
                 
+ url: 'slideshowDevices/:slideshowId'%0A                %7D%0A
             %7D);%0A

Add name as parameter when geting devices for a slideshow