Skip to content

Instantly share code, notes, and snippets.

@joubertnel
Created April 19, 2011 00:56
Show Gist options
  • Save joubertnel/926613 to your computer and use it in GitHub Desktop.
Save joubertnel/926613 to your computer and use it in GitHub Desktop.
API descriptor
{ baseUrl: 'http://www.myapi.com'
methods: [ { name: 'Get Users',
http: 'GET',
url: '/users',
result: { object: 'user'
array: 'true' }},
{ name: 'Create User',
http: 'POST',
url: '/users?name={name}&email={email}',
parameters: [ { name: 'name', optional: 'false' },
{ name: 'email', optional: 'false' } ]
result: { object: 'user' }}]
objects: [ { name:'user',
fields: [ 'id', 'email', 'name' ] }]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment