Move the singleRequestParameter template into a separate file (#21489)

* Move the singleRequestParameter template into a separate file

* Update formatting of non-singleRequestParameter webclient and restclient samples
This commit is contained in:
Mattias Sehlstedt
2025-07-02 09:18:52 +02:00
committed by GitHub
parent e948355127
commit 050dcae3ab
54 changed files with 812 additions and 690 deletions

View File

@@ -122,6 +122,7 @@ public class FakeApi {
public ResponseSpec fakeBigDecimalMapWithResponseSpec() throws RestClientResponseException {
return fakeBigDecimalMapRequestCreation();
}
/**
* Health check endpoint
*
@@ -245,37 +246,37 @@ public class FakeApi {
}
/**
* test http signature authentication
*
* test http signature authentication
*
* <p><b>200</b> - The instance started successfully
* @param requestParameters The fakeHttpSignatureTest request parameters as object
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
*/
public void fakeHttpSignatureTest(FakeHttpSignatureTestRequest requestParameters) throws RestClientResponseException {
this.fakeHttpSignatureTest(requestParameters.pet(), requestParameters.query1(), requestParameters.header1());
this.fakeHttpSignatureTest(requestParameters.pet(), requestParameters.query1(), requestParameters.header1());
}
/**
* test http signature authentication
*
/**
* test http signature authentication
*
* <p><b>200</b> - The instance started successfully
* @param requestParameters The fakeHttpSignatureTest request parameters as object
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
*/
public ResponseEntity<Void> fakeHttpSignatureTestWithHttpInfo(FakeHttpSignatureTestRequest requestParameters) throws RestClientResponseException {
return this.fakeHttpSignatureTestWithHttpInfo(requestParameters.pet(), requestParameters.query1(), requestParameters.header1());
return this.fakeHttpSignatureTestWithHttpInfo(requestParameters.pet(), requestParameters.query1(), requestParameters.header1());
}
/**
* test http signature authentication
*
/**
* test http signature authentication
*
* <p><b>200</b> - The instance started successfully
* @param requestParameters The fakeHttpSignatureTest request parameters as object
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec fakeHttpSignatureTestWithResponseSpec(FakeHttpSignatureTestRequest requestParameters) throws RestClientResponseException {
return this.fakeHttpSignatureTestWithResponseSpec(requestParameters.pet(), requestParameters.query1(), requestParameters.header1());
return this.fakeHttpSignatureTestWithResponseSpec(requestParameters.pet(), requestParameters.query1(), requestParameters.header1());
}
/**
@@ -360,6 +361,7 @@ public class FakeApi {
public ResponseSpec fakeHttpSignatureTestWithResponseSpec(@jakarta.annotation.Nonnull Pet pet, @jakarta.annotation.Nullable String query1, @jakarta.annotation.Nullable String header1) throws RestClientResponseException {
return fakeHttpSignatureTestRequestCreation(pet, query1, header1);
}
/**
*
* Test serialization of outer boolean types
@@ -430,6 +432,7 @@ public class FakeApi {
public ResponseSpec fakeOuterBooleanSerializeWithResponseSpec(@jakarta.annotation.Nullable Boolean body) throws RestClientResponseException {
return fakeOuterBooleanSerializeRequestCreation(body);
}
/**
*
* Test serialization of object with outer number type
@@ -500,6 +503,7 @@ public class FakeApi {
public ResponseSpec fakeOuterCompositeSerializeWithResponseSpec(@jakarta.annotation.Nullable OuterComposite outerComposite) throws RestClientResponseException {
return fakeOuterCompositeSerializeRequestCreation(outerComposite);
}
/**
*
* Test serialization of outer number types
@@ -570,6 +574,7 @@ public class FakeApi {
public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(@jakarta.annotation.Nullable BigDecimal body) throws RestClientResponseException {
return fakeOuterNumberSerializeRequestCreation(body);
}
/**
*
* Test serialization of outer string types
@@ -640,6 +645,7 @@ public class FakeApi {
public ResponseSpec fakeOuterStringSerializeWithResponseSpec(@jakarta.annotation.Nullable String body) throws RestClientResponseException {
return fakeOuterStringSerializeRequestCreation(body);
}
/**
*
* Test serialization of enum (int) properties with examples
@@ -714,6 +720,7 @@ public class FakeApi {
public ResponseSpec fakePropertyEnumIntegerSerializeWithResponseSpec(@jakarta.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException {
return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty);
}
/**
* test referenced additionalProperties
*
@@ -783,6 +790,7 @@ public class FakeApi {
public ResponseSpec testAdditionalPropertiesReferenceWithResponseSpec(@jakarta.annotation.Nonnull Map<String, Object> requestBody) throws RestClientResponseException {
return testAdditionalPropertiesReferenceRequestCreation(requestBody);
}
/**
*
* For this test, the body has to be a binary file.
@@ -852,6 +860,7 @@ public class FakeApi {
public ResponseSpec testBodyWithBinaryWithResponseSpec(@jakarta.annotation.Nullable File body) throws RestClientResponseException {
return testBodyWithBinaryRequestCreation(body);
}
/**
*
* For this test, the body for this request must reference a schema named &#x60;File&#x60;.
@@ -969,37 +978,37 @@ public class FakeApi {
}
/**
*
*
*
*
* <p><b>200</b> - Success
* @param requestParameters The testBodyWithQueryParams request parameters as object
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
*/
public void testBodyWithQueryParams(TestBodyWithQueryParamsRequest requestParameters) throws RestClientResponseException {
this.testBodyWithQueryParams(requestParameters.query(), requestParameters.user());
this.testBodyWithQueryParams(requestParameters.query(), requestParameters.user());
}
/**
*
*
/**
*
*
* <p><b>200</b> - Success
* @param requestParameters The testBodyWithQueryParams request parameters as object
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
*/
public ResponseEntity<Void> testBodyWithQueryParamsWithHttpInfo(TestBodyWithQueryParamsRequest requestParameters) throws RestClientResponseException {
return this.testBodyWithQueryParamsWithHttpInfo(requestParameters.query(), requestParameters.user());
return this.testBodyWithQueryParamsWithHttpInfo(requestParameters.query(), requestParameters.user());
}
/**
*
*
/**
*
*
* <p><b>200</b> - Success
* @param requestParameters The testBodyWithQueryParams request parameters as object
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec testBodyWithQueryParamsWithResponseSpec(TestBodyWithQueryParamsRequest requestParameters) throws RestClientResponseException {
return this.testBodyWithQueryParamsWithResponseSpec(requestParameters.query(), requestParameters.user());
return this.testBodyWithQueryParamsWithResponseSpec(requestParameters.query(), requestParameters.user());
}
/**
@@ -1081,6 +1090,7 @@ public class FakeApi {
public ResponseSpec testBodyWithQueryParamsWithResponseSpec(@jakarta.annotation.Nonnull String query, @jakarta.annotation.Nonnull User user) throws RestClientResponseException {
return testBodyWithQueryParamsRequestCreation(query, user);
}
/**
* To test \&quot;client\&quot; model
* To test \&quot;client\&quot; model
@@ -1335,40 +1345,40 @@ public class FakeApi {
}
/**
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* <p><b>400</b> - Invalid username supplied
* <p><b>404</b> - User not found
* @param requestParameters The testEndpointParameters request parameters as object
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
*/
public void testEndpointParameters(TestEndpointParametersRequest requestParameters) throws RestClientResponseException {
this.testEndpointParameters(requestParameters.number(), requestParameters._double(), requestParameters.patternWithoutDelimiter(), requestParameters._byte(), requestParameters.integer(), requestParameters.int32(), requestParameters.int64(), requestParameters._float(), requestParameters.string(), requestParameters.binary(), requestParameters.date(), requestParameters.dateTime(), requestParameters.password(), requestParameters.paramCallback());
this.testEndpointParameters(requestParameters.number(), requestParameters._double(), requestParameters.patternWithoutDelimiter(), requestParameters._byte(), requestParameters.integer(), requestParameters.int32(), requestParameters.int64(), requestParameters._float(), requestParameters.string(), requestParameters.binary(), requestParameters.date(), requestParameters.dateTime(), requestParameters.password(), requestParameters.paramCallback());
}
/**
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
/**
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* <p><b>400</b> - Invalid username supplied
* <p><b>404</b> - User not found
* @param requestParameters The testEndpointParameters request parameters as object
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
*/
public ResponseEntity<Void> testEndpointParametersWithHttpInfo(TestEndpointParametersRequest requestParameters) throws RestClientResponseException {
return this.testEndpointParametersWithHttpInfo(requestParameters.number(), requestParameters._double(), requestParameters.patternWithoutDelimiter(), requestParameters._byte(), requestParameters.integer(), requestParameters.int32(), requestParameters.int64(), requestParameters._float(), requestParameters.string(), requestParameters.binary(), requestParameters.date(), requestParameters.dateTime(), requestParameters.password(), requestParameters.paramCallback());
return this.testEndpointParametersWithHttpInfo(requestParameters.number(), requestParameters._double(), requestParameters.patternWithoutDelimiter(), requestParameters._byte(), requestParameters.integer(), requestParameters.int32(), requestParameters.int64(), requestParameters._float(), requestParameters.string(), requestParameters.binary(), requestParameters.date(), requestParameters.dateTime(), requestParameters.password(), requestParameters.paramCallback());
}
/**
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
/**
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* <p><b>400</b> - Invalid username supplied
* <p><b>404</b> - User not found
* @param requestParameters The testEndpointParameters request parameters as object
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec testEndpointParametersWithResponseSpec(TestEndpointParametersRequest requestParameters) throws RestClientResponseException {
return this.testEndpointParametersWithResponseSpec(requestParameters.number(), requestParameters._double(), requestParameters.patternWithoutDelimiter(), requestParameters._byte(), requestParameters.integer(), requestParameters.int32(), requestParameters.int64(), requestParameters._float(), requestParameters.string(), requestParameters.binary(), requestParameters.date(), requestParameters.dateTime(), requestParameters.password(), requestParameters.paramCallback());
return this.testEndpointParametersWithResponseSpec(requestParameters.number(), requestParameters._double(), requestParameters.patternWithoutDelimiter(), requestParameters._byte(), requestParameters.integer(), requestParameters.int32(), requestParameters.int64(), requestParameters._float(), requestParameters.string(), requestParameters.binary(), requestParameters.date(), requestParameters.dateTime(), requestParameters.password(), requestParameters.paramCallback());
}
/**
@@ -1662,40 +1672,40 @@ public class FakeApi {
}
/**
* To test enum parameters
* To test enum parameters
* To test enum parameters
* To test enum parameters
* <p><b>400</b> - Invalid request
* <p><b>404</b> - Not found
* @param requestParameters The testEnumParameters request parameters as object
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
*/
public void testEnumParameters(TestEnumParametersRequest requestParameters) throws RestClientResponseException {
this.testEnumParameters(requestParameters.enumHeaderStringArray(), requestParameters.enumHeaderString(), requestParameters.enumQueryStringArray(), requestParameters.enumQueryString(), requestParameters.enumQueryInteger(), requestParameters.enumQueryDouble(), requestParameters.enumQueryModelArray(), requestParameters.enumFormStringArray(), requestParameters.enumFormString());
this.testEnumParameters(requestParameters.enumHeaderStringArray(), requestParameters.enumHeaderString(), requestParameters.enumQueryStringArray(), requestParameters.enumQueryString(), requestParameters.enumQueryInteger(), requestParameters.enumQueryDouble(), requestParameters.enumQueryModelArray(), requestParameters.enumFormStringArray(), requestParameters.enumFormString());
}
/**
* To test enum parameters
* To test enum parameters
/**
* To test enum parameters
* To test enum parameters
* <p><b>400</b> - Invalid request
* <p><b>404</b> - Not found
* @param requestParameters The testEnumParameters request parameters as object
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
*/
public ResponseEntity<Void> testEnumParametersWithHttpInfo(TestEnumParametersRequest requestParameters) throws RestClientResponseException {
return this.testEnumParametersWithHttpInfo(requestParameters.enumHeaderStringArray(), requestParameters.enumHeaderString(), requestParameters.enumQueryStringArray(), requestParameters.enumQueryString(), requestParameters.enumQueryInteger(), requestParameters.enumQueryDouble(), requestParameters.enumQueryModelArray(), requestParameters.enumFormStringArray(), requestParameters.enumFormString());
return this.testEnumParametersWithHttpInfo(requestParameters.enumHeaderStringArray(), requestParameters.enumHeaderString(), requestParameters.enumQueryStringArray(), requestParameters.enumQueryString(), requestParameters.enumQueryInteger(), requestParameters.enumQueryDouble(), requestParameters.enumQueryModelArray(), requestParameters.enumFormStringArray(), requestParameters.enumFormString());
}
/**
* To test enum parameters
* To test enum parameters
/**
* To test enum parameters
* To test enum parameters
* <p><b>400</b> - Invalid request
* <p><b>404</b> - Not found
* @param requestParameters The testEnumParameters request parameters as object
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec testEnumParametersWithResponseSpec(TestEnumParametersRequest requestParameters) throws RestClientResponseException {
return this.testEnumParametersWithResponseSpec(requestParameters.enumHeaderStringArray(), requestParameters.enumHeaderString(), requestParameters.enumQueryStringArray(), requestParameters.enumQueryString(), requestParameters.enumQueryInteger(), requestParameters.enumQueryDouble(), requestParameters.enumQueryModelArray(), requestParameters.enumFormStringArray(), requestParameters.enumFormString());
return this.testEnumParametersWithResponseSpec(requestParameters.enumHeaderStringArray(), requestParameters.enumHeaderString(), requestParameters.enumQueryStringArray(), requestParameters.enumQueryString(), requestParameters.enumQueryInteger(), requestParameters.enumQueryDouble(), requestParameters.enumQueryModelArray(), requestParameters.enumFormStringArray(), requestParameters.enumFormString());
}
/**
@@ -1907,37 +1917,37 @@ public class FakeApi {
}
/**
* Fake endpoint to test group parameters (optional)
* Fake endpoint to test group parameters (optional)
* Fake endpoint to test group parameters (optional)
* Fake endpoint to test group parameters (optional)
* <p><b>400</b> - Something wrong
* @param requestParameters The testGroupParameters request parameters as object
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
*/
public void testGroupParameters(TestGroupParametersRequest requestParameters) throws RestClientResponseException {
this.testGroupParameters(requestParameters.requiredStringGroup(), requestParameters.requiredBooleanGroup(), requestParameters.requiredInt64Group(), requestParameters.stringGroup(), requestParameters.booleanGroup(), requestParameters.int64Group());
this.testGroupParameters(requestParameters.requiredStringGroup(), requestParameters.requiredBooleanGroup(), requestParameters.requiredInt64Group(), requestParameters.stringGroup(), requestParameters.booleanGroup(), requestParameters.int64Group());
}
/**
* Fake endpoint to test group parameters (optional)
* Fake endpoint to test group parameters (optional)
/**
* Fake endpoint to test group parameters (optional)
* Fake endpoint to test group parameters (optional)
* <p><b>400</b> - Something wrong
* @param requestParameters The testGroupParameters request parameters as object
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
*/
public ResponseEntity<Void> testGroupParametersWithHttpInfo(TestGroupParametersRequest requestParameters) throws RestClientResponseException {
return this.testGroupParametersWithHttpInfo(requestParameters.requiredStringGroup(), requestParameters.requiredBooleanGroup(), requestParameters.requiredInt64Group(), requestParameters.stringGroup(), requestParameters.booleanGroup(), requestParameters.int64Group());
return this.testGroupParametersWithHttpInfo(requestParameters.requiredStringGroup(), requestParameters.requiredBooleanGroup(), requestParameters.requiredInt64Group(), requestParameters.stringGroup(), requestParameters.booleanGroup(), requestParameters.int64Group());
}
/**
* Fake endpoint to test group parameters (optional)
* Fake endpoint to test group parameters (optional)
/**
* Fake endpoint to test group parameters (optional)
* Fake endpoint to test group parameters (optional)
* <p><b>400</b> - Something wrong
* @param requestParameters The testGroupParameters request parameters as object
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec testGroupParametersWithResponseSpec(TestGroupParametersRequest requestParameters) throws RestClientResponseException {
return this.testGroupParametersWithResponseSpec(requestParameters.requiredStringGroup(), requestParameters.requiredBooleanGroup(), requestParameters.requiredInt64Group(), requestParameters.stringGroup(), requestParameters.booleanGroup(), requestParameters.int64Group());
return this.testGroupParametersWithResponseSpec(requestParameters.requiredStringGroup(), requestParameters.requiredBooleanGroup(), requestParameters.requiredInt64Group(), requestParameters.stringGroup(), requestParameters.booleanGroup(), requestParameters.int64Group());
}
/**
@@ -2045,6 +2055,7 @@ public class FakeApi {
public ResponseSpec testGroupParametersWithResponseSpec(@jakarta.annotation.Nonnull Integer requiredStringGroup, @jakarta.annotation.Nonnull Boolean requiredBooleanGroup, @jakarta.annotation.Nonnull Long requiredInt64Group, @jakarta.annotation.Nullable Integer stringGroup, @jakarta.annotation.Nullable Boolean booleanGroup, @jakarta.annotation.Nullable Long int64Group) throws RestClientResponseException {
return testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
}
/**
* test inline additionalProperties
*
@@ -2114,6 +2125,7 @@ public class FakeApi {
public ResponseSpec testInlineAdditionalPropertiesWithResponseSpec(@jakarta.annotation.Nonnull Map<String, String> requestBody) throws RestClientResponseException {
return testInlineAdditionalPropertiesRequestCreation(requestBody);
}
/**
* test inline free-form additionalProperties
*
@@ -2231,37 +2243,37 @@ public class FakeApi {
}
/**
* test json serialization of form data
*
* test json serialization of form data
*
* <p><b>200</b> - successful operation
* @param requestParameters The testJsonFormData request parameters as object
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
*/
public void testJsonFormData(TestJsonFormDataRequest requestParameters) throws RestClientResponseException {
this.testJsonFormData(requestParameters.param(), requestParameters.param2());
this.testJsonFormData(requestParameters.param(), requestParameters.param2());
}
/**
* test json serialization of form data
*
/**
* test json serialization of form data
*
* <p><b>200</b> - successful operation
* @param requestParameters The testJsonFormData request parameters as object
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
*/
public ResponseEntity<Void> testJsonFormDataWithHttpInfo(TestJsonFormDataRequest requestParameters) throws RestClientResponseException {
return this.testJsonFormDataWithHttpInfo(requestParameters.param(), requestParameters.param2());
return this.testJsonFormDataWithHttpInfo(requestParameters.param(), requestParameters.param2());
}
/**
* test json serialization of form data
*
/**
* test json serialization of form data
*
* <p><b>200</b> - successful operation
* @param requestParameters The testJsonFormData request parameters as object
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec testJsonFormDataWithResponseSpec(TestJsonFormDataRequest requestParameters) throws RestClientResponseException {
return this.testJsonFormDataWithResponseSpec(requestParameters.param(), requestParameters.param2());
return this.testJsonFormDataWithResponseSpec(requestParameters.param(), requestParameters.param2());
}
/**
@@ -2346,6 +2358,7 @@ public class FakeApi {
public ResponseSpec testJsonFormDataWithResponseSpec(@jakarta.annotation.Nonnull String param, @jakarta.annotation.Nonnull String param2) throws RestClientResponseException {
return testJsonFormDataRequestCreation(param, param2);
}
/**
* test nullable parent property
*
@@ -2518,37 +2531,37 @@ public class FakeApi {
}
/**
*
* To test the collection format in query parameters
*
* To test the collection format in query parameters
* <p><b>200</b> - Success
* @param requestParameters The testQueryParameterCollectionFormat request parameters as object
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
*/
public void testQueryParameterCollectionFormat(TestQueryParameterCollectionFormatRequest requestParameters) throws RestClientResponseException {
this.testQueryParameterCollectionFormat(requestParameters.pipe(), requestParameters.ioutil(), requestParameters.http(), requestParameters.url(), requestParameters.context(), requestParameters.allowEmpty(), requestParameters.language());
this.testQueryParameterCollectionFormat(requestParameters.pipe(), requestParameters.ioutil(), requestParameters.http(), requestParameters.url(), requestParameters.context(), requestParameters.allowEmpty(), requestParameters.language());
}
/**
*
* To test the collection format in query parameters
/**
*
* To test the collection format in query parameters
* <p><b>200</b> - Success
* @param requestParameters The testQueryParameterCollectionFormat request parameters as object
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
*/
public ResponseEntity<Void> testQueryParameterCollectionFormatWithHttpInfo(TestQueryParameterCollectionFormatRequest requestParameters) throws RestClientResponseException {
return this.testQueryParameterCollectionFormatWithHttpInfo(requestParameters.pipe(), requestParameters.ioutil(), requestParameters.http(), requestParameters.url(), requestParameters.context(), requestParameters.allowEmpty(), requestParameters.language());
return this.testQueryParameterCollectionFormatWithHttpInfo(requestParameters.pipe(), requestParameters.ioutil(), requestParameters.http(), requestParameters.url(), requestParameters.context(), requestParameters.allowEmpty(), requestParameters.language());
}
/**
*
* To test the collection format in query parameters
/**
*
* To test the collection format in query parameters
* <p><b>200</b> - Success
* @param requestParameters The testQueryParameterCollectionFormat request parameters as object
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec testQueryParameterCollectionFormatWithResponseSpec(TestQueryParameterCollectionFormatRequest requestParameters) throws RestClientResponseException {
return this.testQueryParameterCollectionFormatWithResponseSpec(requestParameters.pipe(), requestParameters.ioutil(), requestParameters.http(), requestParameters.url(), requestParameters.context(), requestParameters.allowEmpty(), requestParameters.language());
return this.testQueryParameterCollectionFormatWithResponseSpec(requestParameters.pipe(), requestParameters.ioutil(), requestParameters.http(), requestParameters.url(), requestParameters.context(), requestParameters.allowEmpty(), requestParameters.language());
}
/**
@@ -2670,6 +2683,7 @@ public class FakeApi {
public ResponseSpec testQueryParameterCollectionFormatWithResponseSpec(@jakarta.annotation.Nonnull List<String> pipe, @jakarta.annotation.Nonnull List<String> ioutil, @jakarta.annotation.Nonnull List<String> http, @jakarta.annotation.Nonnull List<String> url, @jakarta.annotation.Nonnull List<String> context, @jakarta.annotation.Nonnull String allowEmpty, @jakarta.annotation.Nullable Map<String, String> language) throws RestClientResponseException {
return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language);
}
/**
* test referenced string map
*

View File

@@ -168,40 +168,40 @@ public class PetApi {
}
/**
* Deletes a pet
*
* Deletes a pet
*
* <p><b>200</b> - Successful operation
* <p><b>400</b> - Invalid pet value
* @param requestParameters The deletePet request parameters as object
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
*/
public void deletePet(DeletePetRequest requestParameters) throws RestClientResponseException {
this.deletePet(requestParameters.petId(), requestParameters.apiKey());
this.deletePet(requestParameters.petId(), requestParameters.apiKey());
}
/**
* Deletes a pet
*
/**
* Deletes a pet
*
* <p><b>200</b> - Successful operation
* <p><b>400</b> - Invalid pet value
* @param requestParameters The deletePet request parameters as object
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
*/
public ResponseEntity<Void> deletePetWithHttpInfo(DeletePetRequest requestParameters) throws RestClientResponseException {
return this.deletePetWithHttpInfo(requestParameters.petId(), requestParameters.apiKey());
return this.deletePetWithHttpInfo(requestParameters.petId(), requestParameters.apiKey());
}
/**
* Deletes a pet
*
/**
* Deletes a pet
*
* <p><b>200</b> - Successful operation
* <p><b>400</b> - Invalid pet value
* @param requestParameters The deletePet request parameters as object
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec deletePetWithResponseSpec(DeletePetRequest requestParameters) throws RestClientResponseException {
return this.deletePetWithResponseSpec(requestParameters.petId(), requestParameters.apiKey());
return this.deletePetWithResponseSpec(requestParameters.petId(), requestParameters.apiKey());
}
/**
@@ -284,6 +284,7 @@ public class PetApi {
public ResponseSpec deletePetWithResponseSpec(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws RestClientResponseException {
return deletePetRequestCreation(petId, apiKey);
}
/**
* Finds Pets by status
* Multiple status values can be provided with comma separated strings
@@ -362,6 +363,7 @@ public class PetApi {
public ResponseSpec findPetsByStatusWithResponseSpec(@jakarta.annotation.Nonnull List<String> status) throws RestClientResponseException {
return findPetsByStatusRequestCreation(status);
}
/**
* Finds Pets by tags
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
@@ -442,6 +444,7 @@ public class PetApi {
public ResponseSpec findPetsByTagsWithResponseSpec(@jakarta.annotation.Nonnull Set<String> tags) throws RestClientResponseException {
return findPetsByTagsRequestCreation(tags);
}
/**
* Find pet by ID
* Returns a single pet
@@ -524,6 +527,7 @@ public class PetApi {
public ResponseSpec getPetByIdWithResponseSpec(@jakarta.annotation.Nonnull Long petId) throws RestClientResponseException {
return getPetByIdRequestCreation(petId);
}
/**
* Update an existing pet
*
@@ -664,40 +668,40 @@ public class PetApi {
}
/**
* Updates a pet in the store with form data
*
* Updates a pet in the store with form data
*
* <p><b>200</b> - Successful operation
* <p><b>405</b> - Invalid input
* @param requestParameters The updatePetWithForm request parameters as object
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
*/
public void updatePetWithForm(UpdatePetWithFormRequest requestParameters) throws RestClientResponseException {
this.updatePetWithForm(requestParameters.petId(), requestParameters.name(), requestParameters.status());
this.updatePetWithForm(requestParameters.petId(), requestParameters.name(), requestParameters.status());
}
/**
* Updates a pet in the store with form data
*
/**
* Updates a pet in the store with form data
*
* <p><b>200</b> - Successful operation
* <p><b>405</b> - Invalid input
* @param requestParameters The updatePetWithForm request parameters as object
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
*/
public ResponseEntity<Void> updatePetWithFormWithHttpInfo(UpdatePetWithFormRequest requestParameters) throws RestClientResponseException {
return this.updatePetWithFormWithHttpInfo(requestParameters.petId(), requestParameters.name(), requestParameters.status());
return this.updatePetWithFormWithHttpInfo(requestParameters.petId(), requestParameters.name(), requestParameters.status());
}
/**
* Updates a pet in the store with form data
*
/**
* Updates a pet in the store with form data
*
* <p><b>200</b> - Successful operation
* <p><b>405</b> - Invalid input
* @param requestParameters The updatePetWithForm request parameters as object
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec updatePetWithFormWithResponseSpec(UpdatePetWithFormRequest requestParameters) throws RestClientResponseException {
return this.updatePetWithFormWithResponseSpec(requestParameters.petId(), requestParameters.name(), requestParameters.status());
return this.updatePetWithFormWithResponseSpec(requestParameters.petId(), requestParameters.name(), requestParameters.status());
}
/**
@@ -847,39 +851,39 @@ public class PetApi {
}
/**
* uploads an image
*
* uploads an image
*
* <p><b>200</b> - successful operation
* @param requestParameters The uploadFile request parameters as object
* @return ModelApiResponse
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
*/
public ModelApiResponse uploadFile(UploadFileRequest requestParameters) throws RestClientResponseException {
return this.uploadFile(requestParameters.petId(), requestParameters.additionalMetadata(), requestParameters._file());
return this.uploadFile(requestParameters.petId(), requestParameters.additionalMetadata(), requestParameters._file());
}
/**
* uploads an image
*
/**
* uploads an image
*
* <p><b>200</b> - successful operation
* @param requestParameters The uploadFile request parameters as object
* @return ResponseEntity&lt;ModelApiResponse&gt;
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
*/
public ResponseEntity<ModelApiResponse> uploadFileWithHttpInfo(UploadFileRequest requestParameters) throws RestClientResponseException {
return this.uploadFileWithHttpInfo(requestParameters.petId(), requestParameters.additionalMetadata(), requestParameters._file());
return this.uploadFileWithHttpInfo(requestParameters.petId(), requestParameters.additionalMetadata(), requestParameters._file());
}
/**
* uploads an image
*
/**
* uploads an image
*
* <p><b>200</b> - successful operation
* @param requestParameters The uploadFile request parameters as object
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec uploadFileWithResponseSpec(UploadFileRequest requestParameters) throws RestClientResponseException {
return this.uploadFileWithResponseSpec(requestParameters.petId(), requestParameters.additionalMetadata(), requestParameters._file());
return this.uploadFileWithResponseSpec(requestParameters.petId(), requestParameters.additionalMetadata(), requestParameters._file());
}
/**
@@ -1030,39 +1034,39 @@ public class PetApi {
}
/**
* uploads an image (required)
*
* uploads an image (required)
*
* <p><b>200</b> - successful operation
* @param requestParameters The uploadFileWithRequiredFile request parameters as object
* @return ModelApiResponse
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
*/
public ModelApiResponse uploadFileWithRequiredFile(UploadFileWithRequiredFileRequest requestParameters) throws RestClientResponseException {
return this.uploadFileWithRequiredFile(requestParameters.petId(), requestParameters.requiredFile(), requestParameters.additionalMetadata());
return this.uploadFileWithRequiredFile(requestParameters.petId(), requestParameters.requiredFile(), requestParameters.additionalMetadata());
}
/**
* uploads an image (required)
*
/**
* uploads an image (required)
*
* <p><b>200</b> - successful operation
* @param requestParameters The uploadFileWithRequiredFile request parameters as object
* @return ResponseEntity&lt;ModelApiResponse&gt;
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
*/
public ResponseEntity<ModelApiResponse> uploadFileWithRequiredFileWithHttpInfo(UploadFileWithRequiredFileRequest requestParameters) throws RestClientResponseException {
return this.uploadFileWithRequiredFileWithHttpInfo(requestParameters.petId(), requestParameters.requiredFile(), requestParameters.additionalMetadata());
return this.uploadFileWithRequiredFileWithHttpInfo(requestParameters.petId(), requestParameters.requiredFile(), requestParameters.additionalMetadata());
}
/**
* uploads an image (required)
*
/**
* uploads an image (required)
*
* <p><b>200</b> - successful operation
* @param requestParameters The uploadFileWithRequiredFile request parameters as object
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec uploadFileWithRequiredFileWithResponseSpec(UploadFileWithRequiredFileRequest requestParameters) throws RestClientResponseException {
return this.uploadFileWithRequiredFileWithResponseSpec(requestParameters.petId(), requestParameters.requiredFile(), requestParameters.additionalMetadata());
return this.uploadFileWithRequiredFileWithResponseSpec(requestParameters.petId(), requestParameters.requiredFile(), requestParameters.additionalMetadata());
}
/**

View File

@@ -117,6 +117,7 @@ public class StoreApi {
public ResponseSpec deleteOrderWithResponseSpec(@jakarta.annotation.Nonnull String orderId) throws RestClientResponseException {
return deleteOrderRequestCreation(orderId);
}
/**
* Returns pet inventories by status
* Returns a map of status codes to quantities
@@ -181,6 +182,7 @@ public class StoreApi {
public ResponseSpec getInventoryWithResponseSpec() throws RestClientResponseException {
return getInventoryRequestCreation();
}
/**
* Find purchase order by ID
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generate exceptions
@@ -263,6 +265,7 @@ public class StoreApi {
public ResponseSpec getOrderByIdWithResponseSpec(@jakarta.annotation.Nonnull Long orderId) throws RestClientResponseException {
return getOrderByIdRequestCreation(orderId);
}
/**
* Place an order for a pet
*

View File

@@ -114,6 +114,7 @@ public class UserApi {
public ResponseSpec createUserWithResponseSpec(@jakarta.annotation.Nonnull User user) throws RestClientResponseException {
return createUserRequestCreation(user);
}
/**
* Creates list of users with given input array
*
@@ -183,6 +184,7 @@ public class UserApi {
public ResponseSpec createUsersWithArrayInputWithResponseSpec(@jakarta.annotation.Nonnull List<User> user) throws RestClientResponseException {
return createUsersWithArrayInputRequestCreation(user);
}
/**
* Creates list of users with given input array
*
@@ -252,6 +254,7 @@ public class UserApi {
public ResponseSpec createUsersWithListInputWithResponseSpec(@jakarta.annotation.Nonnull List<User> user) throws RestClientResponseException {
return createUsersWithListInputRequestCreation(user);
}
/**
* Delete user
* This can only be done by the logged in user.
@@ -325,6 +328,7 @@ public class UserApi {
public ResponseSpec deleteUserWithResponseSpec(@jakarta.annotation.Nonnull String username) throws RestClientResponseException {
return deleteUserRequestCreation(username);
}
/**
* Get user by user name
*
@@ -455,42 +459,42 @@ public class UserApi {
}
/**
* Logs user into the system
*
* Logs user into the system
*
* <p><b>200</b> - successful operation
* <p><b>400</b> - Invalid username/password supplied
* @param requestParameters The loginUser request parameters as object
* @return String
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
*/
public String loginUser(LoginUserRequest requestParameters) throws RestClientResponseException {
return this.loginUser(requestParameters.username(), requestParameters.password());
return this.loginUser(requestParameters.username(), requestParameters.password());
}
/**
* Logs user into the system
*
/**
* Logs user into the system
*
* <p><b>200</b> - successful operation
* <p><b>400</b> - Invalid username/password supplied
* @param requestParameters The loginUser request parameters as object
* @return ResponseEntity&lt;String&gt;
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
*/
public ResponseEntity<String> loginUserWithHttpInfo(LoginUserRequest requestParameters) throws RestClientResponseException {
return this.loginUserWithHttpInfo(requestParameters.username(), requestParameters.password());
return this.loginUserWithHttpInfo(requestParameters.username(), requestParameters.password());
}
/**
* Logs user into the system
*
/**
* Logs user into the system
*
* <p><b>200</b> - successful operation
* <p><b>400</b> - Invalid username/password supplied
* @param requestParameters The loginUser request parameters as object
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec loginUserWithResponseSpec(LoginUserRequest requestParameters) throws RestClientResponseException {
return this.loginUserWithResponseSpec(requestParameters.username(), requestParameters.password());
return this.loginUserWithResponseSpec(requestParameters.username(), requestParameters.password());
}
/**
@@ -580,6 +584,7 @@ public class UserApi {
public ResponseSpec loginUserWithResponseSpec(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password) throws RestClientResponseException {
return loginUserRequestCreation(username, password);
}
/**
* Logs out current logged in user session
*
@@ -687,40 +692,40 @@ public class UserApi {
}
/**
* Updated user
* This can only be done by the logged in user.
* Updated user
* This can only be done by the logged in user.
* <p><b>400</b> - Invalid user supplied
* <p><b>404</b> - User not found
* @param requestParameters The updateUser request parameters as object
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
*/
public void updateUser(UpdateUserRequest requestParameters) throws RestClientResponseException {
this.updateUser(requestParameters.username(), requestParameters.user());
this.updateUser(requestParameters.username(), requestParameters.user());
}
/**
* Updated user
* This can only be done by the logged in user.
/**
* Updated user
* This can only be done by the logged in user.
* <p><b>400</b> - Invalid user supplied
* <p><b>404</b> - User not found
* @param requestParameters The updateUser request parameters as object
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
*/
public ResponseEntity<Void> updateUserWithHttpInfo(UpdateUserRequest requestParameters) throws RestClientResponseException {
return this.updateUserWithHttpInfo(requestParameters.username(), requestParameters.user());
return this.updateUserWithHttpInfo(requestParameters.username(), requestParameters.user());
}
/**
* Updated user
* This can only be done by the logged in user.
/**
* Updated user
* This can only be done by the logged in user.
* <p><b>400</b> - Invalid user supplied
* <p><b>404</b> - User not found
* @param requestParameters The updateUser request parameters as object
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
* @return ResponseSpec
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec updateUserWithResponseSpec(UpdateUserRequest requestParameters) throws RestClientResponseException {
return this.updateUserWithResponseSpec(requestParameters.username(), requestParameters.user());
return this.updateUserWithResponseSpec(requestParameters.username(), requestParameters.user());
}
/**