Source: services/Grupo.js

    /**
     * @ngdoc service
     * @name Grupo
     * @module s4c.services.Grupo
     * 
     * @description  Componente para acesso a api do backend e/ou comunicação entre controllers
     * 
     *
     */
     
(function () {
    'use strict';

   /**	
	* @method Grupo
	* @param {*} $resource
	* @param {*} API_ENDPOINT
	*/
    function Grupo($resource, API_ENDPOINT) {
        return $resource(API_ENDPOINT + 'grupos/:id', { id: '@id' }, {
            save: {
                method: 'PUT'
            },
            delete: {
                method: 'DELETE'
            }
        });
    }

    angular.module('s4c.services.Grupo', ['ngResource'])
        .factory('Grupo', Grupo);

    Grupo.$inject = ['$resource', 'API_ENDPOINT'];
}());