Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. {
  2. "MyService": {
  3. "name": "The external service",
  4. "description": "A great API with an external service",
  5. "dashboardUrl": "https://parse.com",
  6. "auth": "key",
  7. "signature": "apiSecret"
  8. }
  9. }
  10.  
  11. (function (credentials) {
  12. var exports = {};
  13.  
  14. exports.ServiceObject = function(params) {
  15. var url = 'https://api.parse.com/1/classes/ServiceObject';
  16. params['apiKey'] = credentials.apiKey;
  17. url = url + '?' + $.param(params);
  18. return $.ajax({url: url, type: 'GET'});
  19. };
  20.  
  21. return exports;
  22. })
  23.  
  24. {
  25. "endpoints": [
  26. {
  27. "name": "classes",
  28. "dashboardUrl": "https://parse.com/docs/rest",
  29. "methods": [
  30. {
  31. "MethodName": "ServiceObject",
  32. "Synopsis": "Show the entries",
  33. "parameters": [
  34. {
  35. "Name": "objectId",
  36. "Required": "N",
  37. "Default": "",
  38. "Type": "string",
  39. "Description": "The object ID"
  40. },
  41. {
  42. "Name": "text",
  43. "Required": "N",
  44. "Default": "",
  45. "Type": "string",
  46. "Description": "The text"
  47. }
  48. ]
  49. }
  50. ]
  51. }
  52. ]
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement