[JAVA][Client] New object instead of null for empty POST request (#98)

new Object() for empty request body
This commit is contained in:
Ben Mordue
2018-06-07 05:37:37 +01:00
committed by Jérémie Bresson
parent 69a3852ef7
commit 0fb1ffa88b
36 changed files with 132 additions and 132 deletions

View File

@@ -801,7 +801,7 @@ public class FakeApi {
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call testEndpointParametersCall(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null;
Object localVarPostBody = new Object();
// create path and map variables
String localVarPath = "/fake";
@@ -1008,7 +1008,7 @@ public class FakeApi {
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call testEnumParametersCall(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<String> enumFormStringArray, String enumFormString, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null;
Object localVarPostBody = new Object();
// create path and map variables
String localVarPath = "/fake";
@@ -1277,7 +1277,7 @@ public class FakeApi {
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call testJsonFormDataCall(String param, String param2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null;
Object localVarPostBody = new Object();
// create path and map variables
String localVarPath = "/fake/jsonFormData";

View File

@@ -184,7 +184,7 @@ public class PetApi {
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call deletePetCall(Long petId, String apiKey, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null;
Object localVarPostBody = new Object();
// create path and map variables
String localVarPath = "/pet/{petId}"
@@ -308,7 +308,7 @@ public class PetApi {
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call findPetsByStatusCall(List<String> status, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null;
Object localVarPostBody = new Object();
// create path and map variables
String localVarPath = "/pet/findByStatus";
@@ -434,7 +434,7 @@ public class PetApi {
*/
@Deprecated
public com.squareup.okhttp.Call findPetsByTagsCall(List<String> tags, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null;
Object localVarPostBody = new Object();
// create path and map variables
String localVarPath = "/pet/findByTags";
@@ -565,7 +565,7 @@ public class PetApi {
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call getPetByIdCall(Long petId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null;
Object localVarPostBody = new Object();
// create path and map variables
String localVarPath = "/pet/{petId}"
@@ -808,7 +808,7 @@ public class PetApi {
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call updatePetWithFormCall(Long petId, String name, String status, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null;
Object localVarPostBody = new Object();
// create path and map variables
String localVarPath = "/pet/{petId}"
@@ -939,7 +939,7 @@ public class PetApi {
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call uploadFileCall(Long petId, String additionalMetadata, File file, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null;
Object localVarPostBody = new Object();
// create path and map variables
String localVarPath = "/pet/{petId}/uploadImage"

View File

@@ -63,7 +63,7 @@ public class StoreApi {
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call deleteOrderCall(String orderId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null;
Object localVarPostBody = new Object();
// create path and map variables
String localVarPath = "/store/order/{order_id}"
@@ -181,7 +181,7 @@ public class StoreApi {
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call getInventoryCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null;
Object localVarPostBody = new Object();
// create path and map variables
String localVarPath = "/store/inventory";
@@ -295,7 +295,7 @@ public class StoreApi {
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call getOrderByIdCall(Long orderId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null;
Object localVarPostBody = new Object();
// create path and map variables
String localVarPath = "/store/order/{order_id}"

View File

@@ -417,7 +417,7 @@ public class UserApi {
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call deleteUserCall(String username, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null;
Object localVarPostBody = new Object();
// create path and map variables
String localVarPath = "/user/{username}"
@@ -536,7 +536,7 @@ public class UserApi {
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call getUserByNameCall(String username, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null;
Object localVarPostBody = new Object();
// create path and map variables
String localVarPath = "/user/{username}"
@@ -660,7 +660,7 @@ public class UserApi {
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call loginUserCall(String username, String password, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null;
Object localVarPostBody = new Object();
// create path and map variables
String localVarPath = "/user/login";
@@ -793,7 +793,7 @@ public class UserApi {
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call logoutUserCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null;
Object localVarPostBody = new Object();
// create path and map variables
String localVarPath = "/user/logout";