service.js
955 Bytes
angular.module('focaLogisticaPedidoRuta')
.service(
'focaLogisticaPedidoRutaService', ['$http', 'API_ENDPOINT', function($http, API_ENDPOINT
) {
return {
obtenerActividad: function(parametros) {
return $http.post(API_ENDPOINT.URL + '/seguimiento/filtros', parametros);
},
obtenerVehiculoById: function(idVehiculo) {
return $http.get(API_ENDPOINT.URL + '/vehiculo/' + idVehiculo);
},
obtenerRemitoById: function(idRemito) {
return $http.get(API_ENDPOINT.URL + '/remito/obtener/' + idRemito);
},
guardarCisternas: function(cisterna) {
return $http.post(API_ENDPOINT.URL + '/cisterna/guardar/cargar', cisterna);
},
numeroHojaRuta: function() {
return $http.get(API_ENDPOINT.URL + '/hoja-ruta/numero-siguiente');
}
};
}]);