Revert "[Java][Retrofit2] Return ResponseBody if response is "file"" (#6421)

* Revert "Make the Rust codegen compile. (#6411)"

This reverts commit 60766c6210.

* Revert "[Kotlin] Fix model enum generation (#6383)"

This reverts commit adf5d643d5.

* Revert "Global namespaces for ruby basic types (#6418)"

This reverts commit 070894dc95.

* Revert "add ehyche to swift tech comm"

This reverts commit 5c62ba182e.

* Revert "[python-client] Thread pool fix (#6396)"

This reverts commit a28ce0b604.

* Revert "update retrofit2 petstore samples"

This reverts commit 0f1a61d9c2.

* Revert "Retrofit2: Return ResponseBody if response if file. (#6407)"

This reverts commit 481c040373.
This commit is contained in:
wing328
2017-09-02 01:26:42 +08:00
committed by GitHub
parent 60766c6210
commit a6561e7d21

View File

@@ -14,7 +14,6 @@ import retrofit2.Call;
import retrofit2.http.*;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
{{#imports}}import {{import}};
{{/imports}}
@@ -56,7 +55,7 @@ public interface {{classname}} {
{{/prioritizedContentTypes}}
{{/formParams}}
@{{httpMethod}}("{{{path}}}")
{{^doNotUseRx}}Observable{{/doNotUseRx}}{{#doNotUseRx}}Call{{/doNotUseRx}}<{{#isResponseFile}}ResponseBody{{/isResponseFile}}{{^isResponseFile}}{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}{{/isResponseFile}}> {{operationId}}({{^allParams}});{{/allParams}}
{{^doNotUseRx}}Observable{{/doNotUseRx}}{{#doNotUseRx}}Call{{/doNotUseRx}}<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}> {{operationId}}({{^allParams}});{{/allParams}}
{{#allParams}}{{>libraries/retrofit2/queryParams}}{{>libraries/retrofit2/pathParams}}{{>libraries/retrofit2/headerParams}}{{>libraries/retrofit2/bodyParams}}{{>libraries/retrofit2/formParams}}{{#hasMore}}, {{/hasMore}}{{^hasMore}}
);{{/hasMore}}{{/allParams}}