mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 19:33:55 +00:00
ff1178ad7e
* Added genericModelSubstitutes if using Optional As per https://github.com/springfox/springfox/issues/1848 Doesn't seem to fix the problem, but is what springfox recommends so might be aprt of it. * Added config package to scans If you have defined apiPackage and basepackage (e.g. as com.example.api) but not defined configPackage then config is still in io.swagger.config and is not included in the component scan. This means the config is not used when generating the swagger definition from the code. Fixed by including configPackage also in the scan. * Ran spring-all-pestore.sh update script * Converted tabs to spaces * Ran spring-all-pestore.sh update script |
||
---|---|---|
.. | ||
.swagger-codegen | ||
src/main | ||
.swagger-codegen-ignore | ||
pom.xml | ||
README.md |
Swagger generated server
Spring Boot 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 SpringBoot framework.
The underlying library integrating swagger to SpringBoot is 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