You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaJAXRSSpecServerCodegen.java
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -343,6 +343,18 @@ public ModelsMap postProcessModels(ModelsMap objs) {
public {{#supportAsync}}{{#useMutiny}}Uni{{/useMutiny}}{{^useMutiny}}CompletionStage{{/useMutiny}}<{{/supportAsync}}{{#returnJBossResponse}}{{>returnResponseTypeInterface}}{{/returnJBossResponse}}{{^returnJBossResponse}}Response{{/returnJBossResponse}}{{#supportAsync}}>{{/supportAsync}} {{nickname}}({{#allParams}}{{>queryParams}}{{>pathParams}}{{>cookieParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}}{{^-last}},{{/-last}}{{/allParams}}) {
Copy file name to clipboardExpand all lines: modules/openapi-generator/src/test/java/org/openapitools/codegen/java/jaxrs/JavaJAXRSSpecServerCodegenTest.java
+141-9Lines changed: 141 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1236,7 +1236,7 @@ public void disableGenerateJsonCreator() throws Exception {
Copy file name to clipboardExpand all lines: samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/api/PetApi.java
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@
11
11
12
12
13
13
14
+
14
15
importjava.io.InputStream;
15
16
importjava.util.Map;
16
17
importjava.util.List;
@@ -72,6 +73,7 @@ public Response addPet(@Valid @NotNull Pet pet) {
@@ -205,6 +212,7 @@ public Response updatePetWithForm(@PathParam("petId") @org.eclipse.microprofile.
205
212
returnResponse.ok().entity("magic!").build();
206
213
}
207
214
215
+
208
216
@POST
209
217
@Path("/{petId}/uploadImage")
210
218
@Consumes({ "multipart/form-data" })
@@ -222,4 +230,5 @@ public Response updatePetWithForm(@PathParam("petId") @org.eclipse.microprofile.
222
230
publicResponseuploadFile(@PathParam("petId") @org.eclipse.microprofile.openapi.annotations.parameters.Parameter(description="ID of pet to update") LongpetId,@FormParam(value = "additionalMetadata") StringadditionalMetadata, @FormParam(value = "file") InputStream_fileInputStream) {
Copy file name to clipboardExpand all lines: samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/api/StoreApi.java
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@
10
10
11
11
12
12
13
+
13
14
importjava.io.InputStream;
14
15
importjava.util.Map;
15
16
importjava.util.List;
@@ -66,6 +67,7 @@ public Response deleteOrder(@PathParam("orderId") @org.eclipse.microprofile.open
66
67
returnResponse.ok().entity("magic!").build();
67
68
}
68
69
70
+
69
71
@GET
70
72
@Path("/inventory")
71
73
@Produces({ "application/json" })
@@ -83,6 +85,7 @@ public Response getInventory() {
0 commit comments