Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "MyService": {
- "name": "The external service",
- "description": "A great API with an external service",
- "dashboardUrl": "https://parse.com",
- "auth": "key",
- "signature": "apiSecret"
- }
- }
- (function (credentials) {
- var exports = {};
- exports.ServiceObject = function(params) {
- var url = 'https://api.parse.com/1/classes/ServiceObject';
- params['apiKey'] = credentials.apiKey;
- url = url + '?' + $.param(params);
- return $.ajax({url: url, type: 'GET'});
- };
- return exports;
- })
- {
- "endpoints": [
- {
- "name": "classes",
- "dashboardUrl": "https://parse.com/docs/rest",
- "methods": [
- {
- "MethodName": "ServiceObject",
- "Synopsis": "Show the entries",
- "parameters": [
- {
- "Name": "objectId",
- "Required": "N",
- "Default": "",
- "Type": "string",
- "Description": "The object ID"
- },
- {
- "Name": "text",
- "Required": "N",
- "Default": "",
- "Type": "string",
- "Description": "The text"
- }
- ]
- }
- ]
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement