forked from loafle/openapi-generator-original
* Adds Valid annotation for request body (#4847) If useBeanValidation is active, this change will add Valid annotation to ReqeustBody * Adds generated samples for bean vaildation in spring boot (#4847) * Adds Valid import to Controller * Adds generated code for bean validation change
18 lines
697 B
Markdown
18 lines
697 B
Markdown
# Swagger generated server
|
|
|
|
Spring Boot Server
|
|
|
|
|
|
## Overview
|
|
This server was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project.
|
|
By using the [OpenAPI-Spec](https://github.com/swagger-api/swagger-core), you can easily generate a server stub.
|
|
This is an example of building a swagger-enabled server in Java using the SpringBoot framework.
|
|
|
|
The underlying library integrating swagger to SpringBoot is [springfox](https://github.com/springfox/springfox)
|
|
|
|
Start your server as an simple java application
|
|
|
|
You can view the api documentation in swagger-ui by pointing to
|
|
http://localhost:8080/
|
|
|
|
Change default port value in application.properties |