openapi-generator/samples/server/petstore/spring-mvc
Benjamin Douglas ab69ce5dc3 Add null pointer check to add/put methods (#5385) (#5386)
Commit e3d04ee01 (issue #5240) introduced unsafe add/put methods for optional
list/map parameters. This change maintains the spirit of issue #5240 (optional
containers are null by default) while still making add/put calls safe. It does
this by checking for null first and, if so, initializing it with an empty
container.

Also updated the affected samples using the various scripts in bin/.
2017-04-13 17:37:49 +08:00
..
src/main Add null pointer check to add/put methods (#5385) (#5386) 2017-04-13 17:37:49 +08:00
.swagger-codegen-ignore Spelling fixes 2016-08-27 02:34:33 +03:00
pom.xml update java server stub samples with new uuid mapping 2017-02-08 16:39:02 +08:00
README.md fix import for java server templates 2016-01-05 15:02:18 +08:00

Swagger generated server

Spring MVC Server

Overview

This server was generated by the swagger-codegen project. By using the OpenAPI-Spec, you can easily generate a server stub. This is an example of building a swagger-enabled server in Java using the Spring MVC framework.

The underlying library integrating swagger to Spring-MVC is springfox

You can view the server in swagger-ui by pointing to http://localhost:8002/v2/swagger-ui.html