[JAXRS-CXF-CDI] Add a new JAX-RS server generator - jaxrs-cxf-cdi#3940
[JAXRS-CXF-CDI] Add a new JAX-RS server generator - jaxrs-cxf-cdi#3940wing328 merged 4 commits intoswagger-api:masterfrom
Conversation
…va EE server supporting CDI
|
... this one should do the "right thing" with the PR template. |
|
Happy to update the wiki (if possible) once merged. |
|
@nickcmaynard thanks for the PR. I'll review this weekend and let you know if I've any question. |
|
@nickcmaynard it looks good. Later I'll file a PR to change the indentation from tab to 4-space for JavaJAXRSCXFCDIServerCodegen as well as JavaJAXRSSpecServerCodegen. |
|
@nickcmaynard I've updated the documentation here: https://github.com/swagger-api/swagger-codegen/wiki/Server-stub-generator-HOWTO#java-jax-rs-apache-cxf-framework-on-java-ee-server-supporting-cdi It would be nice if the generator can create a pom.xml and README.md explaining a bit about the auto-generated code. |
|
Great news thank you. I'll look into a pom.xml and README in a separate PR. |
* upstream/master: [html]Group api index by operations.baseName (swagger-api#3953) Revert "[WIP] Improve PHP client emitted code quality" update retrofit1,2 samples jaxrs-cxf-cdi POM template (swagger-api#3958) [Swift] Add / as enum separator issue-890 correct fix for deprecated Jersey method 2208 fix Objc Mapping Generation (swagger-api#3894) [Spring] Format datetime in rfc3339 (swagger-api#3777) [Java/Jackson] use a jdk6 compatible DateFormat for java.util.Date (swagger-api#3768) add template owner jax-rs cxf cdi remove newline char in *.mustache; added generated code Add a new JAX-RS server generator - jaxrs-cxf-cdi (swagger-api#3940) added package paths for retrofit class names feature(PHP QA) add initial PHP client template tweaks to improve emitted code quality [resteasy] configure jackson to use rfc3339 dates [jersey] configure jackson to use rfc3339 dates
|
To all, please help retweet to promote the new generator. Thank you. |
PR checklist
./bin/to update Petstore sample so that CIs can verify the change. (For instance, only need to run./bin/{LANG}-petstore.shand./bin/security/{LANG}-petstore.shif updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates)2.3.0branch for breaking (non-backward compatible) changes.Description of the PR
Generate a JAX-RS server that assumes an Apache CXF framework on a Java EE server supporting CDI.
Similar to the original JAXRS generator, this creates API and Service classes in /src/gen/java and a sample ServiceImpl in /src/main/java. The API uses CDI to get an instance of ServiceImpl that implements the Service interface.