/cowweb

Primary LanguageJavaMIT LicenseMIT

COWWEB

Test and Build Push a Container

Cosay Web API.

$ curl "http://localhost:8080/say?m=hello%20cowweb"
 ______________
< Hello cowweb >
 --------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||--WWW |
                ||     ||

How to build and run

gradle

Build an executable jar with dependencies and run in local.

Clone this repository.

git clone https://github.com/hhiroshell/cowweb.git && cd cowweb

Build and run.

./gradlew build
java -jar build/libs/cowweb.jar

Call the API.

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"