ptdecker / dwhello

Dropwizard Basic Getting Started "Hello World" With Integrated Swagger Support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dwhello

Dropwizard Basic Getting Started "Hello World" With Integrated Swagger Support

This is a the basic "Hello World" application that utilizes the Dropwizard framework. It has been further augmented to include Swagger's Dropwizard Quickstart updated to support Dropwizard 0.7

To clone, complie from source, and run it:

$ git clone https://github.com/LigoSphere/dwhello.git
$ cd dwhello
$ mvn package
$ ./dwhello.sh

This all assumes you have Java 1.7, git 1.9, and Maven 3.0 all installed and working properly on Ubuntu 14.04. It has been tested with Dropwizard 0.7.0 and Swagger 1.3.6.

Once running, the following end-points will be available:

http://localhost:8080/api-docs
http://localhost:8080/api-docs/hello-world
http://localhost:8080/hello-world
http://localhost:8080/hello-world?name=Your+Name+Here

And, the admin system is available here:

http://localhost:8081

To render a UI for the Swagger docs, you'll need Swagger UI.

About

Dropwizard Basic Getting Started "Hello World" With Integrated Swagger Support


Languages

Language:Java 98.3%Language:Shell 1.7%