Skip to content

Instantly share code, notes, and snippets.

@kyranjamie
Created May 8, 2014 16:08
Show Gist options
  • Save kyranjamie/b0ac3dd518580b131d50 to your computer and use it in GitHub Desktop.
Save kyranjamie/b0ac3dd518580b131d50 to your computer and use it in GitHub Desktop.
- request:
url: /hello
response:
body: ':)'
- request:
url: /give/me/a/smile
response:
status: 200
body: >
{"status": "hello world with single quote"}
headers:
content-type: application/json
- request:
method: GET
url: /atomfeed/1
response:
headers:
content-type: application/xml
status: 200
body: <?xml version="1.0" encoding="UTF-8"?><payment><paymentDetail><invoiceTypeLookupCode/></paymentDetail></payment>
- request:
url: ^/give/me/some/json$
response:
headers:
content-type: application/json
body: >
[{
"name":"John",
"email":"[email protected]"
},{
"name":"Jane",
"email":"[email protected]"
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment