{"size": 498, "ext": "js", "max_stars_repo_path": "Role/RoleFactory.js", "max_stars_repo_name": "RanJi0128/Angular-and-ASP.Net-Project-1", "max_stars_repo_stars_event_min_datetime": "2019-09-25T18:08:29.000Z", "max_stars_repo_stars_event_max_datetime": "2019-09-25T18:09:57.000Z", "max_issues_repo_path": "Role/RoleFactory.js", "max_issues_repo_name": "RanJi0128/Angular-and-ASP.Net-Project-1", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Role/RoleFactory.js", "max_forks_repo_name": "RanJi0128/Angular-and-ASP.Net-Project-1", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 17.1724137931, "max_line_length": 59, "alphanum_fraction": 0.6305220884}
var service = angular.module('services');

var urlBase = "http://localhost::port/api/";



service.factory('RolesFactory', function($resource){

	return $resource(urlBase + '/Role',{port:'58839'},{
		query: {method: 'GET', isArray: true},
		create: {method: 'POST'}
	})

});

service.factory('RoleFactory',function($resource){


	return $resource(urlBase + '/Role?id=@Id',{port:'58839'},{

		show: {method: 'GET'},
		update: { method: 'PUT', isArray: true},
		delete: {method: 'DELETE'}

	})

});

