-
-
Save justinyoo/e7659d82d05fbb26c6c288df5fc4881b to your computer and use it in GitHub Desktop.
Azure Function Proxies for Mocking
This file contains 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
{ | |
"$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