[python-nextgen] Fix binary response (#15076)

* fix binary response in python nextgen client

* update samples
This commit is contained in:
William Cheng
2023-03-31 16:16:58 +08:00
committed by GitHub
parent 05fa5601dd
commit b59d535176
36 changed files with 906 additions and 75 deletions

View File

@@ -4,6 +4,7 @@ import org.openapitools.client.ApiClient;
import org.openapitools.client.EncodingUtils;
import org.openapitools.client.model.ApiResponse;
import java.io.File;
import org.openapitools.client.model.Pet;
import java.util.ArrayList;
@@ -16,6 +17,31 @@ import feign.*;
public interface BodyApi extends ApiClient.Api {
/**
* Test binary (gif) response body
* Test binary (gif) response body
* @return File
*/
@RequestLine("POST /binary/gif")
@Headers({
"Accept: image/gif",
})
File testBinaryGif();
/**
* Test binary (gif) response body
* Similar to <code>testBinaryGif</code> but it also returns the http response headers .
* Test binary (gif) response body
* @return A ApiResponse that wraps the response boyd and the http headers.
*/
@RequestLine("POST /binary/gif")
@Headers({
"Accept: image/gif",
})
ApiResponse<File> testBinaryGifWithHttpInfo();
/**
* Test body parameter(s)
* Test body parameter(s)