rest-documentation-with-swagger-spring-mvc

Stars
12

REST documentation with Swagger and Spring MVC

You can import the project into any IDE with Maven support and launch the com.zenika.ZenContactServer class.

You can also launch the server from the command line with Maven:

mvn compile exec:java -Dexec.mainClass="com.zenika.ZenContactServer"

Once launched, the server outputs 2 links in the console:

  • the first one redirects to the REST documentation
  • the second one redirects to Swagger UI

Once in Swagger UI, enter the REST documentation URL in the appropriate field at the top of the page and have fun browsing the UI!