Skip to content

koji117/cowweb-for-wercker-demo

 
 

Repository files navigation

COWWEB

Cosay Web API.

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

How to build and run

gradle

Build a executable jar with dependencies and run localy.

Inatall gradle.

See the official documentation.

Clone this repository.

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

Build and run.

gradle build
java -jar build_local/dist/libs/cowweb-1.0.jar

Call the API.

You can call the API via localhost:8080 .

curl "http://localhost:8080/cowsay/say"

And you can specify a message using "message" query (special characters have to be URL encorded).

curl "http://localhost:8080/cowsay/say?message=hello%20cowweb"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 93.0%
  • Dockerfile 7.0%