Skip to content

Commit 6b3216b

Browse files
committed
improved docs
1 parent 2ad9d0e commit 6b3216b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/modules/ROOT/pages/processor/endpoint-content.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ If an endpoint returns multiple types, a success response (typically 200 ok) and
9797

9898
With versions *before 2021.5* the processor generates (by default) endpoint methods with an `Object` return value (or if generic something like `ResponseType<?>`) to handle the unrelated success and error response types.
9999

100-
This has the drawback that an important piece of information is missing: the success response type.With `Object` as return type it not clear what the success response type is.
100+
This has the drawback that an important piece of information is missing: the success response type. With `Object` as return type it not clear what the success response type is.
101101

102-
With version *2021.5* it is possible to generate the endpoints with the success response type even with error responses.It is _ignoring_ the error result types.
102+
With version *2021.5* it is possible to generate the endpoints with the success response type even with error responses. It is _ignoring_ the error result types.
103103

104104
Since it is common practice to handle errors by throwing exceptions (e.g. in combination with the Spring `@ResponseStatus` annotation) the endpoint methods don't need to handle different return types, and it is possible to simply use the type of the success response.
105105

@@ -147,7 +147,7 @@ public interface Api {
147147

148148
**previous behavior, before 2021.5**
149149

150-
Example of the previous code, using `result-style: all`.The setting is required to generate the previous code.
150+
Example of the previous code, using `result-style: all`. The setting is required to generate the previous code.
151151

152152
[source,java]
153153
----

0 commit comments

Comments
 (0)