How to Generate a REST CXF3 Application from a Swagger-Contract
Johannes Fiala, Developer
CXF3 Application from a Swagger-Contract Johannes Fiala, Developer - - PowerPoint PPT Presentation
How to Generate a REST CXF3 Application from a Swagger-Contract Johannes Fiala, Developer Agenda Generate based on contract Extend using code first Freeze the contract Use the REST API Generate client code (Java/Javascript)
Johannes Fiala, Developer
initiative
https://github.com/OAI/OpenAPI-Specification
https://github.com/swagger-api/swagger-editor
JaxRS, NodeJS, Objective-C, Perl, PHP, Python, Ruby, Scala, …
https://github.com/swagger-api/swagger-codegen
noverify
config-help -l jaxrs-cxf
codegen-cli.jar config-help –l jaxrs-cxf
Contract Generate Code Add/Modify Code
codegen/tree/master/modules/swagger-codegen-maven-plugin
(+ BeanValidation)
models in the IDE
versions!
with your code
https://github.com/swagger-api/swagger-ui
https://github.com/Swagger2Markup/swagger2markup
interfaces
your REST-API using Swagger & Spring"
{{#useBeanValidation}}…{{/useBeanValidation}}
{{^useBeanValidation}}…{{#useBeanValidation}}
{{#repo}} <b>{{name}}</b> {{/repo}}
{{>beanValidation}}
{{! My comment }}
{{#required}}
INF\services\io.swagger.codegen.CodegenConfig
Templates
http://github.com/jfiala/swagger-cxf-demo