Skip to content

Instantly share code, notes, and snippets.

@cmoore4
Last active December 17, 2015 17:39
Show Gist options
  • Save cmoore4/5647728 to your computer and use it in GitHub Desktop.
Save cmoore4/5647728 to your computer and use it in GitHub Desktop.
A definition of a REST test.
{
"name": "Example: GET users search",
"documentation": "*Markdown*?",
"createDate": "2013-05-24 10:40:15-6",
"request": {
"method": "GET",
"url": "https://api.example.com/v1/users",
"parameters": "q=(name:Tester McT)&oauth=X123V456",
"body": null,
"headers": [
{"X-My-Header": 123},
{"X-Your-Header": "Potato"}],
"preflight": true,
"ajax": true,
"accept": ["json","xml","string"]
},
"response": {
"status_codes": [200, 201],
"headers": [{"Etags": "$numeric"}],
"body": {"username": "Sean Moore", "cats": ["Abita", "Hubig"]},
"cors": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment