Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var app = angular.module('salonesbelleza', []);
- app.service("CentroBorrar_srv", function ($resource, UrlBaseApi_srv) {
- return{
- return $resource('wa-centros/:id',
- {id:'@id', access_token:'@access_token'},
- { "post": { method: "DELETE",
- isArray: false,
- headers: {
- 'Accept': 'application/json; q=1.0, */*; q=0.1',
- 'Content-Type':'application/json'
- }
- }}
- );
- }
- var CentroBorrar_data = CentroBorrar_srv.post({
- id:10,
- othervar1:'VALUE_1',
- othervar1:'VALUE_2',
- access_token:'MY TOKEN'
- });
- wa-centros/10?access_token=MY_TOKEN&othervar1=VALUE_1&othervar2=VALUE_2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement