@@ -4,7 +4,7 @@ title: Home
44nav_order : 1
55description : " Home Description"
66permalink : /
7- date : 2020-02-16
7+ date : 2020-03-01
88---
99
1010<div style =" display : flex ; justify-content : flex-end ; position : relative ; top : 1.5em " >
@@ -27,8 +27,9 @@ It is useful in an API first approach where you API is explicitly defined and do
2727 before it gets implemented.
2828
2929The processor generates java interfaces based on the endpoint description of the API and simple POJO
30- classes for parameter or response objects defined in th API. It is ** your** task to create the controller
31- classes that implement the interfaces.
30+ classes for parameter or response objects defined in th API. The processor adds all the required
31+ spring & jackson annotations to the interface and all that is left to ** you** is the implementation
32+ of the generated interfaces.
3233
3334The interfaces will help to keep the implementation in sync with the API. If anything relevant changes
3435in the API the interface changes and the compiler will warn that the interface is not implemented
@@ -37,10 +38,6 @@ correctly.
3738See the [ processor intro] [ docs-processor ] {: target ="_ blank"} for a short example.
3839{: .mb-6 }
3940
40- February 2020: The processor is ready to try but note that the it is still in an early state of
41- development and may not generate the correct code yet in all cases. See [ feedback] ( #feedback ) .
42- {: .note .info .mb-6}
43-
4441
4542## table of contents
4643{: .no_toc .text-delta }
@@ -72,22 +69,22 @@ See the [release notes][oaps-releases]{:target="_blank"}.
7269- generates human readable code.
7370
7471- gradle support via [ openapi-processor-gradle] [ oap-gradle ] plugin (the plugin is currently the only option
75- to run the generatr ).
72+ to run the processor ).
7673
7774- add additional parameters to an endpoint which are not defined in the OpenAPI description. For example to pass
7875 a ` HttpServletRequest ` to the endpoint implementation. <span class =" label label-green " >since 1.0.0.M6</span >
7976
8077- supports bean validations. The constraints of the openapi description are mapped to java bean validation
8178 annotations. <span class =" label label-green " >since 1.0.0.M6</span >
8279
83- - allows to exclude endpoints from generation. This is useful if the generatr does not create the correct code for
84- an endpoint. That way the generatr can still be used for all the other endpoints.
80+ - allows to exclude endpoints from generation. This is useful if the processor does not create the correct code for
81+ an endpoint. That way the processor can still be used for all the other endpoints.
8582 <span class =" label label-green " >since 1.0.0.M6</span >
8683
8784- handle multiple responses by generating one endpoint method for each response content type.
88- <span class =" label label-green " >since 1.0.0.M8 </span >
85+ <span class =" label label-green " >since 1.0.0.M11 </span >
8986
90- - <span class =" label label-yellow " >planned</span > WebFlux support, may need its own generatr .
87+ - <span class =" label label-yellow " >planned</span > WebFlux support, may need its own processor .
9188
9289- the generated code does not use swagger annotations. There is no need to generate the documentation from the code
9390 when the code is generated from the documentation (i.e. an openapi.yaml).
@@ -99,10 +96,10 @@ with the [openapi-processor-gradle][oap-gradle] plugin. See [Using Gradle][docs-
9996
10097## Feedback
10198
102- In case some feature is missing or the generated code is not 100% what you would expect create an [ issue] [ oap-spring -issues]
99+ In case some feature is missing or the generated code is not 100% what you would expect create an [ issue] [ oaps -issues]
103100preferably with a test case. Providing a test case will help significantly :-)
104101
105- A test case is a single folder with an openapi.yaml file and the expected Java files the generatr should create.
102+ A test case is a single folder with an openapi.yaml file and the expected Java files the processor should create.
106103The structure looks like this:
107104
108105 my-new-test-case/
@@ -136,12 +133,12 @@ openapi-processor-spring is distributed by [Apache License 2.0][license].
136133</ul >
137134
138135[ badge-license ] : https://img.shields.io/badge/License-Apache%202.0-blue.svg?labelColor=313A42
139- [ badge-ci ] : https://github.com/hauner/openapi-generatr -spring/workflows/ci/badge.svg
136+ [ badge-ci ] : https://github.com/hauner/openapi-processor -spring/workflows/ci/badge.svg
140137
141- [ workflow-ci ] : https://github.com/hauner/openapi-generatr -spring/actions?query=workflow%3Aci
138+ [ workflow-ci ] : https://github.com/hauner/openapi-processor -spring/actions?query=workflow%3Aci
142139
143140[ docs-gradle ] : /openapi-processor-spring/gradle.html
144- [ docs-processor ] : /openapi-processor-spring/generatr /
141+ [ docs-processor ] : /openapi-processor-spring/processor /
145142[ docs-mapping ] : /openapi-gprocessor-spring/mapping/
146143
147144[ bintray ] : https://bintray.com/hauner/openapi-processor
0 commit comments