Created
April 3, 2017 23:40
-
-
Save rsukale/69fd458f9a284fb0450daa85aa8d48eb to your computer and use it in GitHub Desktop.
Some discussion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nav: [ | |
{title: 'Account', href: '/guides/account'} | |
] | |
resources: { | |
'account': { | |
'x-sfdc-ia-resource': 'Account', | |
paths : { | |
'/AccountList': { | |
'get': { | |
'x-sfdc-ia-resource': 'Account' | |
summary: 'List all the accounts', | |
parameters: [ | |
{ | |
description: 'Id of AcceptedEventRelation that needs to be fetched' | |
in: 'path', | |
name: 'Id', | |
required: true, | |
type: string | |
} | |
], | |
responses: { | |
200: { | |
refs: 'Account' | |
} | |
} | |
} | |
}, | |
'/Account/{id}': { | |
get: { | |
summary: 'Get a single account', | |
parameters: {}, | |
} | |
}, | |
'/Account': { | |
post: { | |
'x-sfdc-ia-resource': 'Account', | |
summary: 'Create an account', | |
parameters: { | |
// Swagger doesnt have it like this | |
url_parameters: {}, | |
body_parameters: {}, | |
header_parameters: {} | |
}, | |
responses: { | |
200: { | |
refs: '/definitions/Customer' | |
} | |
} | |
}, | |
put: { | |
} | |
}, | |
} | |
.... all the paths whose resource = 'Account' | |
} | |
definition: { | |
Account: {}, | |
Customer: {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment