forked from phiz71/vertx-swagger
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Konrad Durnoga
committed
Oct 20, 2018
1 parent
b5756a6
commit d25fad6
Showing
6 changed files
with
97 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 1 addition & 16 deletions
17
modules/vertx-swagger-codegen/src/main/resources/javaVertXServer/RxCall.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,4 @@ | ||
service.{{operationId}}WithHeader({{#hasParams}}{{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}{{/hasParams}}{{#hasAuthMethods}}{{#hasParams}}, {{/hasParams}}io.vertx.reactivex.ext.auth.User.newInstance(user){{/hasAuthMethods}}).subscribe( | ||
{{#returnType}} | ||
{{#isListContainer}} | ||
verticleHelper.getRxResultHandler(message, true, new TypeReference<{{{returnType}}}>(){}), | ||
{{/isListContainer}} | ||
{{^isListContainer}} | ||
{{#returnTypeIsPrimitive}} | ||
verticleHelper.getRxResultHandler(message, false, new TypeReference<{{{returnType}}}>(){}), | ||
{{/returnTypeIsPrimitive}} | ||
{{^returnTypeIsPrimitive}} | ||
verticleHelper.getRxResultHandler(message, true, new TypeReference<{{{returnType}}}>(){}), | ||
{{/returnTypeIsPrimitive}} | ||
{{/isListContainer}} | ||
{{/returnType}} | ||
{{^returnType}} | ||
verticleHelper.getRxResultHandler(message, false, new TypeReference<Void>(){}), | ||
{{/returnType}} | ||
verticleHelper.getRxResultHandler(message), | ||
verticleHelper.getErrorAction(message, {{#vendorExtensions}}{{x-serviceId-varName}}{{/vendorExtensions}}) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 1 addition & 11 deletions
12
modules/vertx-swagger-codegen/src/main/resources/javaVertXServer/json/RxCallJson.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,4 @@ | ||
service.{{operationId}}({{#hasParams}}{{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}{{/hasParams}}{{#hasAuthMethods}}{{#hasParams}}, {{/hasParams}}io.vertx.rxjava.ext.auth.User.newInstance(user){{/hasAuthMethods}}).subscribe( | ||
{{#returnType}} | ||
{{#returnTypeIsPrimitive}} | ||
verticleHelper.getRxResultHandler(message, false, new TypeReference<{{{returnType}}}>(){}), | ||
{{/returnTypeIsPrimitive}} | ||
{{^returnTypeIsPrimitive}} | ||
verticleHelper.getRxResultHandler(message, true, new TypeReference<{{{returnType}}}>(){}), | ||
{{/returnTypeIsPrimitive}} | ||
{{/returnType}} | ||
{{^returnType}} | ||
verticleHelper.getRxResultHandler(message, false, new TypeReference<Void>(){}), | ||
{{/returnType}} | ||
verticleHelper.getRxResultHandler(message), | ||
verticleHelper.getErrorAction(message, {{#vendorExtensions}}{{x-serviceId-varName}}{{/vendorExtensions}}) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters