forked from loafle/openapi-generator-original
Fix JaxRS-Jersey template for files upload (#2570)
* Fix JaxRS-Jersey template for files For #2474 * Samples * PR Review * Samples * Add openapi3 to sample script jaxrs server all * Sample
This commit is contained in:
parent
1436ee1da6
commit
42a9368d91
@ -18,4 +18,6 @@
|
||||
./bin/jaxrs-spec-petstore-server.sh
|
||||
./bin/jaxrs-usetags-petstore-server.sh
|
||||
|
||||
./bin/openapi3/jaxrs-jersey-petstore.sh
|
||||
|
||||
echo " Please run ./bin/jaxrs-cxf-petstore-server-test-data.sh manually instead"
|
||||
|
@ -76,7 +76,7 @@ public class {{classname}} {
|
||||
{{/hasMore}}{{/responses}} })
|
||||
public Response {{nickname}}({{#allParams}}{{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}},{{/allParams}}@Context SecurityContext securityContext)
|
||||
throws NotFoundException {
|
||||
return delegate.{{nickname}}({{#allParams}}{{#isFile}}{{paramName}}InputStream, {{paramName}}Detail{{/isFile}}{{^isFile}}{{paramName}}{{/isFile}},{{/allParams}}securityContext);
|
||||
return delegate.{{nickname}}({{#allParams}}{{#isFormParam}}{{#isFile}}{{paramName}}InputStream, {{paramName}}Detail{{/isFile}}{{/isFormParam}}{{^isFile}}{{paramName}}{{/isFile}}{{^isFormParam}}{{#isFile}}{{paramName}}{{/isFile}}{{/isFormParam}}, {{/allParams}}securityContext);
|
||||
}
|
||||
{{/operation}}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user