Skip to content

janusdn/swagger-jersey2-grizzly2

Repository files navigation

Swagger Jersey example using Grizzly Example

This example demonstrates how to integrate Swagger with Jersey 2 running on Grizzly 2.

Contents

The mapping of the URI path space is presented in the following table:

URI path Resource class HTTP methods Notes
/base/helloworld HelloWorldResource GET Returns Hello World!
/base/swagger.json _ GET Returns Swagger JSON

Running the Example

Run the example as follows:

mvn clean compile exec:java

This deploys the example using Grizzly container.

Notice

The example does not integrate the Swagger UI.

The example uses the library 'jersey-container-grizzly2-servlet' instead of the 'jersey-container-grizzly2-http' to get the ServletConfig class required by Swagger.

About

Swagger Jersey example using Grizzly Example

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages