Advertisement
Guest User

Untitled

a guest
Jul 25th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. var app = angular.module('salonesbelleza', []);
  2. app.service("CentroBorrar_srv", function ($resource, UrlBaseApi_srv) {
  3. return{
  4.  
  5. return $resource('wa-centros/:id',
  6. {id:'@id', access_token:'@access_token'},
  7. { "post": { method: "DELETE",
  8. isArray: false,
  9. headers: {
  10. 'Accept': 'application/json; q=1.0, */*; q=0.1',
  11. 'Content-Type':'application/json'
  12. }
  13. }}
  14. );
  15.  
  16. }
  17.  
  18. var CentroBorrar_data = CentroBorrar_srv.post({
  19. id:10,
  20. othervar1:'VALUE_1',
  21. othervar1:'VALUE_2',
  22. access_token:'MY TOKEN'
  23. });
  24.  
  25. wa-centros/10?access_token=MY_TOKEN&othervar1=VALUE_1&othervar2=VALUE_2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement