Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Last active September 18, 2017 07:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinyoo/e7659d82d05fbb26c6c288df5fc4881b to your computer and use it in GitHub Desktop.
Save justinyoo/e7659d82d05fbb26c6c288df5fc4881b to your computer and use it in GitHub Desktop.
Azure Function Proxies for Mocking
{
"$schema": "http://json.schemastore.org/proxies",
"proxies": {
// Mocked API name
"Mock Hello World": {
"matchCondition": {
// Mocked API URL
"route": "mock/hello-world",
// Mocked API methods allowed
"methods": [
"GET"
]
},
// Mockekd response
"responseOverrides": {
// Status code
"response.statusCode": "200",
// Mocked response body
"response.body": "{ \"message\": \"Hello World\" }"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment