Last active
August 29, 2015 14:15
-
-
Save aibou/49a8b42f2558bee20451 to your computer and use it in GitHub Desktop.
こういうの欲しい
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
hello: | |
method: GET | |
patterns: | |
- request: | |
params: | |
name: "Tom" | |
response: | |
body: "Hello, Tom!" | |
- request: | |
params: | |
name: "Bob" | |
response: | |
body: "Who are you? I don't know that name" |
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
$ curl http://localhost:7874/hello?name=Tom | |
Hello, Tom! | |
$ curl http://localhost:7874/hello?name=Bob | |
Who are you? I don\'t know that name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment