[Java][WebClient] return ResponseSpec to manually control response handling (#12843)

This commit is contained in:
Oleh Kurpiak
2022-07-23 05:20:06 +03:00
committed by GitHub
parent c0ad6357df
commit 9f2f36c4fb
9 changed files with 970 additions and 0 deletions

View File

@@ -88,8 +88,26 @@ public class DefaultApi {
return nullableArrayTestGetRequestCreation().bodyToFlux(localVarReturnType);
}
/**
*
*
* <p><b>200</b> -
* @return ResponseEntity&lt;List&lt;ByteArrayObject&gt;&gt;
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono<ResponseEntity<List<ByteArrayObject>>> nullableArrayTestGetWithHttpInfo() throws WebClientResponseException {
ParameterizedTypeReference<ByteArrayObject> localVarReturnType = new ParameterizedTypeReference<ByteArrayObject>() {};
return nullableArrayTestGetRequestCreation().toEntityList(localVarReturnType);
}
/**
*
*
* <p><b>200</b> -
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec nullableArrayTestGetWithResponseSpec() throws WebClientResponseException {
return nullableArrayTestGetRequestCreation();
}
}