Commit 770b3b9
[quarkus2] Introduce support for truly non-blocking APIs with resteasy-reactive and mutiny (#398)
* Introduce support for truly non-blocking APIs with resteasy-reactive and mutiny (#387)
* feat(api): return response instead of void
Imagine POSTing to a resource that creates something and returns no
payload but a 201 with a Location header. Right now, there is no way to
get that url. After this commit, it
will be possible
* feat(api): support non-blocking apis
Introduce a ew config property `mutiny`, which will change the Api
classes to return `Uni<X>` instead of `X` for every method. This is
required to make truly non-blocking api calls with
quarkus-resteasy-reactive.
Of course, this requires `quarkus-resteasy-reactive` on the classpath.
* Update deployment/src/main/java/io/quarkiverse/openapi/generator/deployment/SpecItemConfig.java
Co-authored-by: Helber Belmiro <[email protected]>
* Apply suggestions from code review
Co-authored-by: Helber Belmiro <[email protected]>
* Update deployment/src/main/resources/templates/api.qute
Co-authored-by: Helber Belmiro <[email protected]>
---------
Co-authored-by: Helber Belmiro <[email protected]>
* Replaced jakarta with javax
---------
Co-authored-by: Waldemar Reusch <[email protected]>
Co-authored-by: Helber Belmiro <[email protected]>1 parent 3d95db4 commit 770b3b9
File tree
5 files changed
+51
-4
lines changed- deployment/src
- main
- java/io/quarkiverse/openapi/generator/deployment
- wrapper
- resources/templates
- test/java/io/quarkiverse/openapi/generator/deployment/wrapper
5 files changed
+51
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
149 | 154 | | |
150 | 155 | | |
151 | 156 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
78 | 84 | | |
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
116 | 123 | | |
117 | 124 | | |
118 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
83 | 82 | | |
84 | 83 | | |
85 | 84 | | |
86 | | - | |
87 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
88 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
89 | 95 | | |
| 96 | + | |
90 | 97 | | |
91 | 98 | | |
92 | 99 | | |
| |||
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
390 | 412 | | |
391 | 413 | | |
392 | 414 | | |
| |||
0 commit comments