Cosay Web API.
$ curl "http://localhost:8080/say?m=hello%20cowweb"
______________
< Hello cowweb >
--------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||--WWW |
|| ||
Build an executable jar with dependencies and run in local.
git clone https://github.com/hhiroshell/cowweb.git && cd cowweb
./gradlew build
java -jar build/libs/cowweb.jar
You can call the API via localhost:8080 .
curl "http://localhost:8080/say"
And you can specify a message using "message" query (special characters have to be URL encorded).
curl "http://localhost:8080/say?m=hello%20cowweb"