emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
}
+ /**
+ * Test single binary in multipart mime
+ * Test single binary in multipart mime
+ * 200 - Successful operation
+ * @param myFile (optional)
+ * @return String
+ * @throws RestClientException if an error occurs while attempting to invoke the API
+ */
+ public String testBodyMultipartFormdataSingleBinary(File myFile) throws RestClientException {
+ return testBodyMultipartFormdataSingleBinaryWithHttpInfo(myFile).getBody();
+ }
+
+ /**
+ * Test single binary in multipart mime
+ * Test single binary in multipart mime
+ *
200 - Successful operation
+ * @param myFile (optional)
+ * @return ResponseEntity<String>
+ * @throws RestClientException if an error occurs while attempting to invoke the API
+ */
+ public ResponseEntity testBodyMultipartFormdataSingleBinaryWithHttpInfo(File myFile) throws RestClientException {
+ Object localVarPostBody = null;
+
+
+ final MultiValueMap localVarQueryParams = new LinkedMultiValueMap();
+ final HttpHeaders localVarHeaderParams = new HttpHeaders();
+ final MultiValueMap localVarCookieParams = new LinkedMultiValueMap();
+ final MultiValueMap localVarFormParams = new LinkedMultiValueMap();
+
+ if (myFile != null)
+ localVarFormParams.add("my-file", new FileSystemResource(myFile));
+
+ final String[] localVarAccepts = {
+ "text/plain"
+ };
+ final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+ final String[] localVarContentTypes = {
+ "multipart/form-data"
+ };
+ final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { };
+
+ ParameterizedTypeReference localReturnType = new ParameterizedTypeReference() {};
+ return apiClient.invokeAPI("/body/application/octetstream/single_binary", HttpMethod.POST, Collections.emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
+ }
/**
* Test body parameter(s)
* Test body parameter(s)
diff --git a/samples/client/echo_api/php-nextgen/README.md b/samples/client/echo_api/php-nextgen/README.md
index 702a20f599f..cf811c24b44 100644
--- a/samples/client/echo_api/php-nextgen/README.md
+++ b/samples/client/echo_api/php-nextgen/README.md
@@ -81,6 +81,7 @@ Class | Method | HTTP request | Description
*BodyApi* | [**testBinaryGif**](docs/Api/BodyApi.md#testbinarygif) | **POST** /binary/gif | Test binary (gif) response body
*BodyApi* | [**testBodyApplicationOctetstreamBinary**](docs/Api/BodyApi.md#testbodyapplicationoctetstreambinary) | **POST** /body/application/octetstream/binary | Test body parameter(s)
*BodyApi* | [**testBodyMultipartFormdataArrayOfBinary**](docs/Api/BodyApi.md#testbodymultipartformdataarrayofbinary) | **POST** /body/application/octetstream/array_of_binary | Test array of binary in multipart mime
+*BodyApi* | [**testBodyMultipartFormdataSingleBinary**](docs/Api/BodyApi.md#testbodymultipartformdatasinglebinary) | **POST** /body/application/octetstream/single_binary | Test single binary in multipart mime
*BodyApi* | [**testEchoBodyAllOfPet**](docs/Api/BodyApi.md#testechobodyallofpet) | **POST** /echo/body/allOf/Pet | Test body parameter(s)
*BodyApi* | [**testEchoBodyFreeFormObjectResponseString**](docs/Api/BodyApi.md#testechobodyfreeformobjectresponsestring) | **POST** /echo/body/FreeFormObject/response_string | Test free form object
*BodyApi* | [**testEchoBodyPet**](docs/Api/BodyApi.md#testechobodypet) | **POST** /echo/body/Pet | Test body parameter(s)
diff --git a/samples/client/echo_api/php-nextgen/docs/Api/BodyApi.md b/samples/client/echo_api/php-nextgen/docs/Api/BodyApi.md
index 7b185c725c4..cb2845fd730 100644
--- a/samples/client/echo_api/php-nextgen/docs/Api/BodyApi.md
+++ b/samples/client/echo_api/php-nextgen/docs/Api/BodyApi.md
@@ -7,6 +7,7 @@ All URIs are relative to http://localhost:3000, except if the operation defines
| [**testBinaryGif()**](BodyApi.md#testBinaryGif) | **POST** /binary/gif | Test binary (gif) response body |
| [**testBodyApplicationOctetstreamBinary()**](BodyApi.md#testBodyApplicationOctetstreamBinary) | **POST** /body/application/octetstream/binary | Test body parameter(s) |
| [**testBodyMultipartFormdataArrayOfBinary()**](BodyApi.md#testBodyMultipartFormdataArrayOfBinary) | **POST** /body/application/octetstream/array_of_binary | Test array of binary in multipart mime |
+| [**testBodyMultipartFormdataSingleBinary()**](BodyApi.md#testBodyMultipartFormdataSingleBinary) | **POST** /body/application/octetstream/single_binary | Test single binary in multipart mime |
| [**testEchoBodyAllOfPet()**](BodyApi.md#testEchoBodyAllOfPet) | **POST** /echo/body/allOf/Pet | Test body parameter(s) |
| [**testEchoBodyFreeFormObjectResponseString()**](BodyApi.md#testEchoBodyFreeFormObjectResponseString) | **POST** /echo/body/FreeFormObject/response_string | Test free form object |
| [**testEchoBodyPet()**](BodyApi.md#testEchoBodyPet) | **POST** /echo/body/Pet | Test body parameter(s) |
@@ -179,6 +180,62 @@ No authorization required
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)
+## `testBodyMultipartFormdataSingleBinary()`
+
+```php
+testBodyMultipartFormdataSingleBinary($my_file): string
+```
+
+Test single binary in multipart mime
+
+Test single binary in multipart mime
+
+### Example
+
+```php
+testBodyMultipartFormdataSingleBinary($my_file);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling BodyApi->testBodyMultipartFormdataSingleBinary: ', $e->getMessage(), PHP_EOL;
+}
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+| **my_file** | **\SplFileObject****\SplFileObject**| | [optional] |
+
+### Return type
+
+**string**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: `multipart/form-data`
+- **Accept**: `text/plain`
+
+[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
+[[Back to Model list]](../../README.md#models)
+[[Back to README]](../../README.md)
+
## `testEchoBodyAllOfPet()`
```php
diff --git a/samples/client/echo_api/php-nextgen/src/Api/BodyApi.php b/samples/client/echo_api/php-nextgen/src/Api/BodyApi.php
index 45b4daa9ea1..e7ec741d331 100644
--- a/samples/client/echo_api/php-nextgen/src/Api/BodyApi.php
+++ b/samples/client/echo_api/php-nextgen/src/Api/BodyApi.php
@@ -81,6 +81,9 @@ class BodyApi
'testBodyMultipartFormdataArrayOfBinary' => [
'multipart/form-data',
],
+ 'testBodyMultipartFormdataSingleBinary' => [
+ 'multipart/form-data',
+ ],
'testEchoBodyAllOfPet' => [
'application/json',
],
@@ -1082,6 +1085,326 @@ class BodyApi
);
}
+ /**
+ * Operation testBodyMultipartFormdataSingleBinary
+ *
+ * Test single binary in multipart mime
+ *
+ * @param \SplFileObject|null $my_file my_file (optional)
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyMultipartFormdataSingleBinary'] to see the possible values for this operation
+ *
+ * @throws ApiException on non-2xx response or if the response body is not in the expected format
+ * @throws InvalidArgumentException
+ * @return string
+ */
+ public function testBodyMultipartFormdataSingleBinary(
+ ?\SplFileObject $my_file = null,
+ string $contentType = self::contentTypes['testBodyMultipartFormdataSingleBinary'][0]
+ ): string
+ {
+ list($response) = $this->testBodyMultipartFormdataSingleBinaryWithHttpInfo($my_file, $contentType);
+ return $response;
+ }
+
+ /**
+ * Operation testBodyMultipartFormdataSingleBinaryWithHttpInfo
+ *
+ * Test single binary in multipart mime
+ *
+ * @param \SplFileObject|null $my_file (optional)
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyMultipartFormdataSingleBinary'] to see the possible values for this operation
+ *
+ * @throws ApiException on non-2xx response or if the response body is not in the expected format
+ * @throws InvalidArgumentException
+ * @return array of string, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function testBodyMultipartFormdataSingleBinaryWithHttpInfo(
+ ?\SplFileObject $my_file = null,
+ string $contentType = self::contentTypes['testBodyMultipartFormdataSingleBinary'][0]
+ ): array
+ {
+ $request = $this->testBodyMultipartFormdataSingleBinaryRequest($my_file, $contentType);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? (string) $e->getResponse()->getBody() : null
+ );
+ } catch (ConnectException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ null,
+ null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ (string) $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+
+ switch($statusCode) {
+ case 200:
+ if ('string' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ('string' !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, 'string', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ }
+
+ $returnType = 'string';
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ($returnType !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ 'string',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation testBodyMultipartFormdataSingleBinaryAsync
+ *
+ * Test single binary in multipart mime
+ *
+ * @param \SplFileObject|null $my_file (optional)
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyMultipartFormdataSingleBinary'] to see the possible values for this operation
+ *
+ * @throws InvalidArgumentException
+ * @return PromiseInterface
+ */
+ public function testBodyMultipartFormdataSingleBinaryAsync(
+ ?\SplFileObject $my_file = null,
+ string $contentType = self::contentTypes['testBodyMultipartFormdataSingleBinary'][0]
+ ): PromiseInterface
+ {
+ return $this->testBodyMultipartFormdataSingleBinaryAsyncWithHttpInfo($my_file, $contentType)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation testBodyMultipartFormdataSingleBinaryAsyncWithHttpInfo
+ *
+ * Test single binary in multipart mime
+ *
+ * @param \SplFileObject|null $my_file (optional)
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyMultipartFormdataSingleBinary'] to see the possible values for this operation
+ *
+ * @throws InvalidArgumentException
+ * @return PromiseInterface
+ */
+ public function testBodyMultipartFormdataSingleBinaryAsyncWithHttpInfo(
+ $my_file = null,
+ string $contentType = self::contentTypes['testBodyMultipartFormdataSingleBinary'][0]
+ ): PromiseInterface
+ {
+ $returnType = 'string';
+ $request = $this->testBodyMultipartFormdataSingleBinaryRequest($my_file, $contentType);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'testBodyMultipartFormdataSingleBinary'
+ *
+ * @param \SplFileObject|null $my_file (optional)
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyMultipartFormdataSingleBinary'] to see the possible values for this operation
+ *
+ * @throws InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ public function testBodyMultipartFormdataSingleBinaryRequest(
+ $my_file = null,
+ string $contentType = self::contentTypes['testBodyMultipartFormdataSingleBinary'][0]
+ ): Request
+ {
+
+
+
+ $resourcePath = '/body/application/octetstream/single_binary';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+
+
+ // form params
+ if ($my_file !== null) {
+ $multipart = true;
+ $formParams['my-file'] = [];
+ $paramFiles = is_array($my_file) ? $my_file : [$my_file];
+ foreach ($paramFiles as $paramFile) {
+ $formParams['my-file'][] = \GuzzleHttp\Psr7\Utils::tryFopen(
+ ObjectSerializer::toFormValue($paramFile),
+ 'rb'
+ );
+ }
+ }
+
+ $headers = $this->headerSelector->selectHeaders(
+ ['text/plain', ],
+ $contentType,
+ $multipart
+ );
+
+ // for model (json/xml)
+ if (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];
+ foreach ($formParamValueItems as $formParamValueItem) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValueItem
+ ];
+ }
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif (stripos($headers['Content-Type'], 'application/json') !== false) {
+ # if Content-Type contains "application/json", json_encode the form parameters
+ $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams);
+ } else {
+ // for HTTP post (form)
+ $httpBody = ObjectSerializer::buildQuery($formParams);
+ }
+ }
+
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $operationHost = $this->config->getHost();
+ $query = ObjectSerializer::buildQuery($queryParams);
+ return new Request(
+ 'POST',
+ $operationHost . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
/**
* Operation testEchoBodyAllOfPet
*
diff --git a/samples/client/echo_api/powershell/README.md b/samples/client/echo_api/powershell/README.md
index f4aab75b220..163717284ad 100644
--- a/samples/client/echo_api/powershell/README.md
+++ b/samples/client/echo_api/powershell/README.md
@@ -56,6 +56,7 @@ Class | Method | HTTP request | Description
*BodyApi* | [**Test-BinaryGif**](docs/BodyApi.md#Test-BinaryGif) | **POST** /binary/gif | Test binary (gif) response body
*BodyApi* | [**Test-BodyApplicationOctetstreamBinary**](docs/BodyApi.md#Test-BodyApplicationOctetstreamBinary) | **POST** /body/application/octetstream/binary | Test body parameter(s)
*BodyApi* | [**Test-BodyMultipartFormdataArrayOfBinary**](docs/BodyApi.md#Test-BodyMultipartFormdataArrayOfBinary) | **POST** /body/application/octetstream/array_of_binary | Test array of binary in multipart mime
+*BodyApi* | [**Test-BodyMultipartFormdataSingleBinary**](docs/BodyApi.md#Test-BodyMultipartFormdataSingleBinary) | **POST** /body/application/octetstream/single_binary | Test single binary in multipart mime
*BodyApi* | [**Test-EchoBodyFreeFormObjectResponseString**](docs/BodyApi.md#Test-EchoBodyFreeFormObjectResponseString) | **POST** /echo/body/FreeFormObject/response_string | Test free form object
*BodyApi* | [**Test-EchoBodyPet**](docs/BodyApi.md#Test-EchoBodyPet) | **POST** /echo/body/Pet | Test body parameter(s)
*BodyApi* | [**Test-EchoBodyPetResponseString**](docs/BodyApi.md#Test-EchoBodyPetResponseString) | **POST** /echo/body/Pet/response_string | Test empty response body
diff --git a/samples/client/echo_api/powershell/docs/BodyApi.md b/samples/client/echo_api/powershell/docs/BodyApi.md
index b2c52e663ed..9302de3186f 100644
--- a/samples/client/echo_api/powershell/docs/BodyApi.md
+++ b/samples/client/echo_api/powershell/docs/BodyApi.md
@@ -7,6 +7,7 @@ Method | HTTP request | Description
[**Test-BinaryGif**](BodyApi.md#Test-BinaryGif) | **POST** /binary/gif | Test binary (gif) response body
[**Test-BodyApplicationOctetstreamBinary**](BodyApi.md#Test-BodyApplicationOctetstreamBinary) | **POST** /body/application/octetstream/binary | Test body parameter(s)
[**Test-BodyMultipartFormdataArrayOfBinary**](BodyApi.md#Test-BodyMultipartFormdataArrayOfBinary) | **POST** /body/application/octetstream/array_of_binary | Test array of binary in multipart mime
+[**Test-BodyMultipartFormdataSingleBinary**](BodyApi.md#Test-BodyMultipartFormdataSingleBinary) | **POST** /body/application/octetstream/single_binary | Test single binary in multipart mime
[**Test-EchoBodyFreeFormObjectResponseString**](BodyApi.md#Test-EchoBodyFreeFormObjectResponseString) | **POST** /echo/body/FreeFormObject/response_string | Test free form object
[**Test-EchoBodyPet**](BodyApi.md#Test-EchoBodyPet) | **POST** /echo/body/Pet | Test body parameter(s)
[**Test-EchoBodyPetResponseString**](BodyApi.md#Test-EchoBodyPetResponseString) | **POST** /echo/body/Pet/response_string | Test empty response body
@@ -138,6 +139,49 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **Test-BodyMultipartFormdataSingleBinary**
+> String Test-BodyMultipartFormdataSingleBinary
+> [-MyFile]
+
+Test single binary in multipart mime
+
+Test single binary in multipart mime
+
+### Example
+```powershell
+$MyFile = # System.IO.FileInfo | (optional)
+
+# Test single binary in multipart mime
+try {
+ $Result = Test-BodyMultipartFormdataSingleBinary -MyFile $MyFile
+} catch {
+ Write-Host ("Exception occurred when calling Test-BodyMultipartFormdataSingleBinary: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
+ Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **MyFile** | **System.IO.FileInfo****System.IO.FileInfo**| | [optional]
+
+### Return type
+
+**String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: multipart/form-data
+ - **Accept**: text/plain
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
# **Test-EchoBodyFreeFormObjectResponseString**
> String Test-EchoBodyFreeFormObjectResponseString
diff --git a/samples/client/echo_api/powershell/src/PSOpenAPITools/Api/BodyApi.ps1 b/samples/client/echo_api/powershell/src/PSOpenAPITools/Api/BodyApi.ps1
index 4ddf81d7948..dbd9ab87992 100644
--- a/samples/client/echo_api/powershell/src/PSOpenAPITools/Api/BodyApi.ps1
+++ b/samples/client/echo_api/powershell/src/PSOpenAPITools/Api/BodyApi.ps1
@@ -223,6 +223,82 @@ function Test-BodyMultipartFormdataArrayOfBinary {
<#
.SYNOPSIS
+Test single binary in multipart mime
+
+.DESCRIPTION
+
+No description available.
+
+.PARAMETER MyFile
+No description available.
+
+.PARAMETER WithHttpInfo
+
+A switch when turned on will return a hash table of Response, StatusCode and Headers instead of just the Response
+
+.OUTPUTS
+
+String
+#>
+function Test-BodyMultipartFormdataSingleBinary {
+ [CmdletBinding()]
+ Param (
+ [Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)]
+ [System.IO.FileInfo]
+ ${MyFile},
+ [Switch]
+ $WithHttpInfo
+ )
+
+ Process {
+ 'Calling method: Test-BodyMultipartFormdataSingleBinary' | Write-Debug
+ $PSBoundParameters | Out-DebugParameter | Write-Debug
+
+ $LocalVarAccepts = @()
+ $LocalVarContentTypes = @()
+ $LocalVarQueryParameters = @{}
+ $LocalVarHeaderParameters = @{}
+ $LocalVarFormParameters = @{}
+ $LocalVarPathParameters = @{}
+ $LocalVarCookieParameters = @{}
+ $LocalVarBodyParameter = $null
+
+ $Configuration = Get-Configuration
+ # HTTP header 'Accept' (if needed)
+ $LocalVarAccepts = @('text/plain')
+
+ # HTTP header 'Content-Type'
+ $LocalVarContentTypes = @('multipart/form-data')
+
+ $LocalVarUri = '/body/application/octetstream/single_binary'
+
+ if ($MyFile) {
+ $LocalVarFormParameters['my-file'] = $MyFile
+ }
+
+ $LocalVarResult = Invoke-ApiClient -Method 'POST' `
+ -Uri $LocalVarUri `
+ -Accepts $LocalVarAccepts `
+ -ContentTypes $LocalVarContentTypes `
+ -Body $LocalVarBodyParameter `
+ -HeaderParameters $LocalVarHeaderParameters `
+ -QueryParameters $LocalVarQueryParameters `
+ -FormParameters $LocalVarFormParameters `
+ -CookieParameters $LocalVarCookieParameters `
+ -ReturnType "String" `
+ -IsBodyNullable $false
+
+ if ($WithHttpInfo.IsPresent) {
+ return $LocalVarResult
+ } else {
+ return $LocalVarResult["Response"]
+ }
+ }
+}
+
+<#
+.SYNOPSIS
+
Test free form object
.DESCRIPTION
diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/README.md b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/README.md
index 3e277b6d69e..628ec87c9a0 100644
--- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/README.md
+++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/README.md
@@ -99,6 +99,7 @@ Class | Method | HTTP request | Description
*BodyApi* | [**test_binary_gif**](docs/BodyApi.md#test_binary_gif) | **POST** /binary/gif | Test binary (gif) response body
*BodyApi* | [**test_body_application_octetstream_binary**](docs/BodyApi.md#test_body_application_octetstream_binary) | **POST** /body/application/octetstream/binary | Test body parameter(s)
*BodyApi* | [**test_body_multipart_formdata_array_of_binary**](docs/BodyApi.md#test_body_multipart_formdata_array_of_binary) | **POST** /body/application/octetstream/array_of_binary | Test array of binary in multipart mime
+*BodyApi* | [**test_body_multipart_formdata_single_binary**](docs/BodyApi.md#test_body_multipart_formdata_single_binary) | **POST** /body/application/octetstream/single_binary | Test single binary in multipart mime
*BodyApi* | [**test_echo_body_all_of_pet**](docs/BodyApi.md#test_echo_body_all_of_pet) | **POST** /echo/body/allOf/Pet | Test body parameter(s)
*BodyApi* | [**test_echo_body_free_form_object_response_string**](docs/BodyApi.md#test_echo_body_free_form_object_response_string) | **POST** /echo/body/FreeFormObject/response_string | Test free form object
*BodyApi* | [**test_echo_body_pet**](docs/BodyApi.md#test_echo_body_pet) | **POST** /echo/body/Pet | Test body parameter(s)
diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/docs/BodyApi.md b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/docs/BodyApi.md
index 5db17c9b977..a0f96e88f98 100644
--- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/docs/BodyApi.md
+++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/docs/BodyApi.md
@@ -7,6 +7,7 @@ Method | HTTP request | Description
[**test_binary_gif**](BodyApi.md#test_binary_gif) | **POST** /binary/gif | Test binary (gif) response body
[**test_body_application_octetstream_binary**](BodyApi.md#test_body_application_octetstream_binary) | **POST** /body/application/octetstream/binary | Test body parameter(s)
[**test_body_multipart_formdata_array_of_binary**](BodyApi.md#test_body_multipart_formdata_array_of_binary) | **POST** /body/application/octetstream/array_of_binary | Test array of binary in multipart mime
+[**test_body_multipart_formdata_single_binary**](BodyApi.md#test_body_multipart_formdata_single_binary) | **POST** /body/application/octetstream/single_binary | Test single binary in multipart mime
[**test_echo_body_all_of_pet**](BodyApi.md#test_echo_body_all_of_pet) | **POST** /echo/body/allOf/Pet | Test body parameter(s)
[**test_echo_body_free_form_object_response_string**](BodyApi.md#test_echo_body_free_form_object_response_string) | **POST** /echo/body/FreeFormObject/response_string | Test free form object
[**test_echo_body_pet**](BodyApi.md#test_echo_body_pet) | **POST** /echo/body/Pet | Test body parameter(s)
@@ -217,6 +218,75 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+# **test_body_multipart_formdata_single_binary**
+> str test_body_multipart_formdata_single_binary(my_file=my_file)
+
+Test single binary in multipart mime
+
+Test single binary in multipart mime
+
+### Example
+
+
+```python
+import time
+import os
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to http://localhost:3000
+# See configuration.py for a list of all supported configuration parameters.
+configuration = openapi_client.Configuration(
+ host = "http://localhost:3000"
+)
+
+
+# Enter a context with an instance of the API client
+with openapi_client.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = openapi_client.BodyApi(api_client)
+ my_file = None # bytearray | (optional)
+
+ try:
+ # Test single binary in multipart mime
+ api_response = api_instance.test_body_multipart_formdata_single_binary(my_file=my_file)
+ print("The response of BodyApi->test_body_multipart_formdata_single_binary:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling BodyApi->test_body_multipart_formdata_single_binary: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **my_file** | **bytearray**| | [optional]
+
+### Return type
+
+**str**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: multipart/form-data
+ - **Accept**: text/plain
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful operation | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
# **test_echo_body_all_of_pet**
> Pet test_echo_body_all_of_pet(pet=pet)
diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/openapi_client/api/body_api.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/openapi_client/api/body_api.py
index bba3d473009..77bd5615092 100644
--- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/openapi_client/api/body_api.py
+++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/openapi_client/api/body_api.py
@@ -839,6 +839,276 @@ class BodyApi:
+ @validate_call
+ def test_body_multipart_formdata_single_binary(
+ self,
+ my_file: Optional[Union[StrictBytes, StrictStr]] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> str:
+ """Test single binary in multipart mime
+
+ Test single binary in multipart mime
+
+ :param my_file:
+ :type my_file: bytearray
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._test_body_multipart_formdata_single_binary_serialize(
+ my_file=my_file,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "str",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def test_body_multipart_formdata_single_binary_with_http_info(
+ self,
+ my_file: Optional[Union[StrictBytes, StrictStr]] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[str]:
+ """Test single binary in multipart mime
+
+ Test single binary in multipart mime
+
+ :param my_file:
+ :type my_file: bytearray
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._test_body_multipart_formdata_single_binary_serialize(
+ my_file=my_file,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "str",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def test_body_multipart_formdata_single_binary_without_preload_content(
+ self,
+ my_file: Optional[Union[StrictBytes, StrictStr]] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Test single binary in multipart mime
+
+ Test single binary in multipart mime
+
+ :param my_file:
+ :type my_file: bytearray
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._test_body_multipart_formdata_single_binary_serialize(
+ my_file=my_file,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "str",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _test_body_multipart_formdata_single_binary_serialize(
+ self,
+ my_file,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> Tuple:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[str, str] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ if my_file is not None:
+ _files['my-file'] = my_file
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'text/plain'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'multipart/form-data'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/body/application/octetstream/single_binary',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
@validate_call
def test_echo_body_all_of_pet(
self,
diff --git a/samples/client/echo_api/python-pydantic-v1/README.md b/samples/client/echo_api/python-pydantic-v1/README.md
index 1edeb3fd50d..fd797996cf6 100644
--- a/samples/client/echo_api/python-pydantic-v1/README.md
+++ b/samples/client/echo_api/python-pydantic-v1/README.md
@@ -99,6 +99,7 @@ Class | Method | HTTP request | Description
*BodyApi* | [**test_binary_gif**](docs/BodyApi.md#test_binary_gif) | **POST** /binary/gif | Test binary (gif) response body
*BodyApi* | [**test_body_application_octetstream_binary**](docs/BodyApi.md#test_body_application_octetstream_binary) | **POST** /body/application/octetstream/binary | Test body parameter(s)
*BodyApi* | [**test_body_multipart_formdata_array_of_binary**](docs/BodyApi.md#test_body_multipart_formdata_array_of_binary) | **POST** /body/application/octetstream/array_of_binary | Test array of binary in multipart mime
+*BodyApi* | [**test_body_multipart_formdata_single_binary**](docs/BodyApi.md#test_body_multipart_formdata_single_binary) | **POST** /body/application/octetstream/single_binary | Test single binary in multipart mime
*BodyApi* | [**test_echo_body_all_of_pet**](docs/BodyApi.md#test_echo_body_all_of_pet) | **POST** /echo/body/allOf/Pet | Test body parameter(s)
*BodyApi* | [**test_echo_body_free_form_object_response_string**](docs/BodyApi.md#test_echo_body_free_form_object_response_string) | **POST** /echo/body/FreeFormObject/response_string | Test free form object
*BodyApi* | [**test_echo_body_pet**](docs/BodyApi.md#test_echo_body_pet) | **POST** /echo/body/Pet | Test body parameter(s)
diff --git a/samples/client/echo_api/python-pydantic-v1/docs/BodyApi.md b/samples/client/echo_api/python-pydantic-v1/docs/BodyApi.md
index cd65141a98f..228fcafd1d2 100644
--- a/samples/client/echo_api/python-pydantic-v1/docs/BodyApi.md
+++ b/samples/client/echo_api/python-pydantic-v1/docs/BodyApi.md
@@ -7,6 +7,7 @@ Method | HTTP request | Description
[**test_binary_gif**](BodyApi.md#test_binary_gif) | **POST** /binary/gif | Test binary (gif) response body
[**test_body_application_octetstream_binary**](BodyApi.md#test_body_application_octetstream_binary) | **POST** /body/application/octetstream/binary | Test body parameter(s)
[**test_body_multipart_formdata_array_of_binary**](BodyApi.md#test_body_multipart_formdata_array_of_binary) | **POST** /body/application/octetstream/array_of_binary | Test array of binary in multipart mime
+[**test_body_multipart_formdata_single_binary**](BodyApi.md#test_body_multipart_formdata_single_binary) | **POST** /body/application/octetstream/single_binary | Test single binary in multipart mime
[**test_echo_body_all_of_pet**](BodyApi.md#test_echo_body_all_of_pet) | **POST** /echo/body/allOf/Pet | Test body parameter(s)
[**test_echo_body_free_form_object_response_string**](BodyApi.md#test_echo_body_free_form_object_response_string) | **POST** /echo/body/FreeFormObject/response_string | Test free form object
[**test_echo_body_pet**](BodyApi.md#test_echo_body_pet) | **POST** /echo/body/Pet | Test body parameter(s)
@@ -208,6 +209,72 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+# **test_body_multipart_formdata_single_binary**
+> str test_body_multipart_formdata_single_binary(my_file=my_file)
+
+Test single binary in multipart mime
+
+Test single binary in multipart mime
+
+### Example
+
+```python
+import time
+import os
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to http://localhost:3000
+# See configuration.py for a list of all supported configuration parameters.
+configuration = openapi_client.Configuration(
+ host = "http://localhost:3000"
+)
+
+
+# Enter a context with an instance of the API client
+with openapi_client.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = openapi_client.BodyApi(api_client)
+ my_file = None # bytearray | (optional)
+
+ try:
+ # Test single binary in multipart mime
+ api_response = api_instance.test_body_multipart_formdata_single_binary(my_file=my_file)
+ print("The response of BodyApi->test_body_multipart_formdata_single_binary:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling BodyApi->test_body_multipart_formdata_single_binary: %s\n" % e)
+```
+
+
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **my_file** | **bytearray**| | [optional]
+
+### Return type
+
+**str**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: multipart/form-data
+ - **Accept**: text/plain
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful operation | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
# **test_echo_body_all_of_pet**
> Pet test_echo_body_all_of_pet(pet=pet)
diff --git a/samples/client/echo_api/python-pydantic-v1/openapi_client/api/body_api.py b/samples/client/echo_api/python-pydantic-v1/openapi_client/api/body_api.py
index 925f1ae6de2..62db8707477 100644
--- a/samples/client/echo_api/python-pydantic-v1/openapi_client/api/body_api.py
+++ b/samples/client/echo_api/python-pydantic-v1/openapi_client/api/body_api.py
@@ -479,6 +479,153 @@ class BodyApi:
collection_formats=_collection_formats,
_request_auth=_params.get('_request_auth'))
+ @validate_arguments
+ def test_body_multipart_formdata_single_binary(self, my_file : Optional[Union[StrictBytes, StrictStr]] = None, **kwargs) -> str: # noqa: E501
+ """Test single binary in multipart mime # noqa: E501
+
+ Test single binary in multipart mime # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.test_body_multipart_formdata_single_binary(my_file, async_req=True)
+ >>> result = thread.get()
+
+ :param my_file:
+ :type my_file: bytearray
+ :param async_req: Whether to execute the request asynchronously.
+ :type async_req: bool, optional
+ :param _request_timeout: timeout setting for this request.
+ If one number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: Returns the result object.
+ If the method is called asynchronously,
+ returns the request thread.
+ :rtype: str
+ """
+ kwargs['_return_http_data_only'] = True
+ if '_preload_content' in kwargs:
+ message = "Error! Please call the test_body_multipart_formdata_single_binary_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
+ raise ValueError(message)
+ return self.test_body_multipart_formdata_single_binary_with_http_info(my_file, **kwargs) # noqa: E501
+
+ @validate_arguments
+ def test_body_multipart_formdata_single_binary_with_http_info(self, my_file : Optional[Union[StrictBytes, StrictStr]] = None, **kwargs) -> ApiResponse: # noqa: E501
+ """Test single binary in multipart mime # noqa: E501
+
+ Test single binary in multipart mime # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.test_body_multipart_formdata_single_binary_with_http_info(my_file, async_req=True)
+ >>> result = thread.get()
+
+ :param my_file:
+ :type my_file: bytearray
+ :param async_req: Whether to execute the request asynchronously.
+ :type async_req: bool, optional
+ :param _preload_content: if False, the ApiResponse.data will
+ be set to none and raw_data will store the
+ HTTP response body without reading/decoding.
+ Default is True.
+ :type _preload_content: bool, optional
+ :param _return_http_data_only: response data instead of ApiResponse
+ object with status code, headers, etc
+ :type _return_http_data_only: bool, optional
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the authentication
+ in the spec for a single request.
+ :type _request_auth: dict, optional
+ :type _content_type: string, optional: force content-type for the request
+ :return: Returns the result object.
+ If the method is called asynchronously,
+ returns the request thread.
+ :rtype: tuple(str, status_code(int), headers(HTTPHeaderDict))
+ """
+
+ _params = locals()
+
+ _all_params = [
+ 'my_file'
+ ]
+ _all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout',
+ '_request_auth',
+ '_content_type',
+ '_headers'
+ ]
+ )
+
+ # validate the arguments
+ for _key, _val in _params['kwargs'].items():
+ if _key not in _all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method test_body_multipart_formdata_single_binary" % _key
+ )
+ _params[_key] = _val
+ del _params['kwargs']
+
+ _collection_formats = {}
+
+ # process the path parameters
+ _path_params = {}
+
+ # process the query parameters
+ _query_params = []
+ # process the header parameters
+ _header_params = dict(_params.get('_headers', {}))
+ # process the form parameters
+ _form_params = []
+ _files = {}
+ if _params['my_file'] is not None:
+ _files['my-file'] = _params['my_file']
+
+ # process the body parameter
+ _body_params = None
+ # set the HTTP header `Accept`
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ ['text/plain']) # noqa: E501
+
+ # set the HTTP header `Content-Type`
+ _content_types_list = _params.get('_content_type',
+ self.api_client.select_header_content_type(
+ ['multipart/form-data']))
+ if _content_types_list:
+ _header_params['Content-Type'] = _content_types_list
+
+ # authentication setting
+ _auth_settings = [] # noqa: E501
+
+ _response_types_map = {
+ '200': "str",
+ }
+
+ return self.api_client.call_api(
+ '/body/application/octetstream/single_binary', 'POST',
+ _path_params,
+ _query_params,
+ _header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ response_types_map=_response_types_map,
+ auth_settings=_auth_settings,
+ async_req=_params.get('async_req'),
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=_params.get('_preload_content', True),
+ _request_timeout=_params.get('_request_timeout'),
+ collection_formats=_collection_formats,
+ _request_auth=_params.get('_request_auth'))
+
@validate_arguments
def test_echo_body_all_of_pet(self, pet : Annotated[Optional[Pet], Field(description="Pet object that needs to be added to the store")] = None, **kwargs) -> Pet: # noqa: E501
"""Test body parameter(s) # noqa: E501
diff --git a/samples/client/echo_api/python/README.md b/samples/client/echo_api/python/README.md
index 3e277b6d69e..628ec87c9a0 100644
--- a/samples/client/echo_api/python/README.md
+++ b/samples/client/echo_api/python/README.md
@@ -99,6 +99,7 @@ Class | Method | HTTP request | Description
*BodyApi* | [**test_binary_gif**](docs/BodyApi.md#test_binary_gif) | **POST** /binary/gif | Test binary (gif) response body
*BodyApi* | [**test_body_application_octetstream_binary**](docs/BodyApi.md#test_body_application_octetstream_binary) | **POST** /body/application/octetstream/binary | Test body parameter(s)
*BodyApi* | [**test_body_multipart_formdata_array_of_binary**](docs/BodyApi.md#test_body_multipart_formdata_array_of_binary) | **POST** /body/application/octetstream/array_of_binary | Test array of binary in multipart mime
+*BodyApi* | [**test_body_multipart_formdata_single_binary**](docs/BodyApi.md#test_body_multipart_formdata_single_binary) | **POST** /body/application/octetstream/single_binary | Test single binary in multipart mime
*BodyApi* | [**test_echo_body_all_of_pet**](docs/BodyApi.md#test_echo_body_all_of_pet) | **POST** /echo/body/allOf/Pet | Test body parameter(s)
*BodyApi* | [**test_echo_body_free_form_object_response_string**](docs/BodyApi.md#test_echo_body_free_form_object_response_string) | **POST** /echo/body/FreeFormObject/response_string | Test free form object
*BodyApi* | [**test_echo_body_pet**](docs/BodyApi.md#test_echo_body_pet) | **POST** /echo/body/Pet | Test body parameter(s)
diff --git a/samples/client/echo_api/python/docs/BodyApi.md b/samples/client/echo_api/python/docs/BodyApi.md
index 5db17c9b977..a0f96e88f98 100644
--- a/samples/client/echo_api/python/docs/BodyApi.md
+++ b/samples/client/echo_api/python/docs/BodyApi.md
@@ -7,6 +7,7 @@ Method | HTTP request | Description
[**test_binary_gif**](BodyApi.md#test_binary_gif) | **POST** /binary/gif | Test binary (gif) response body
[**test_body_application_octetstream_binary**](BodyApi.md#test_body_application_octetstream_binary) | **POST** /body/application/octetstream/binary | Test body parameter(s)
[**test_body_multipart_formdata_array_of_binary**](BodyApi.md#test_body_multipart_formdata_array_of_binary) | **POST** /body/application/octetstream/array_of_binary | Test array of binary in multipart mime
+[**test_body_multipart_formdata_single_binary**](BodyApi.md#test_body_multipart_formdata_single_binary) | **POST** /body/application/octetstream/single_binary | Test single binary in multipart mime
[**test_echo_body_all_of_pet**](BodyApi.md#test_echo_body_all_of_pet) | **POST** /echo/body/allOf/Pet | Test body parameter(s)
[**test_echo_body_free_form_object_response_string**](BodyApi.md#test_echo_body_free_form_object_response_string) | **POST** /echo/body/FreeFormObject/response_string | Test free form object
[**test_echo_body_pet**](BodyApi.md#test_echo_body_pet) | **POST** /echo/body/Pet | Test body parameter(s)
@@ -217,6 +218,75 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+# **test_body_multipart_formdata_single_binary**
+> str test_body_multipart_formdata_single_binary(my_file=my_file)
+
+Test single binary in multipart mime
+
+Test single binary in multipart mime
+
+### Example
+
+
+```python
+import time
+import os
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to http://localhost:3000
+# See configuration.py for a list of all supported configuration parameters.
+configuration = openapi_client.Configuration(
+ host = "http://localhost:3000"
+)
+
+
+# Enter a context with an instance of the API client
+with openapi_client.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = openapi_client.BodyApi(api_client)
+ my_file = None # bytearray | (optional)
+
+ try:
+ # Test single binary in multipart mime
+ api_response = api_instance.test_body_multipart_formdata_single_binary(my_file=my_file)
+ print("The response of BodyApi->test_body_multipart_formdata_single_binary:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling BodyApi->test_body_multipart_formdata_single_binary: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **my_file** | **bytearray**| | [optional]
+
+### Return type
+
+**str**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: multipart/form-data
+ - **Accept**: text/plain
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful operation | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
# **test_echo_body_all_of_pet**
> Pet test_echo_body_all_of_pet(pet=pet)
diff --git a/samples/client/echo_api/python/openapi_client/api/body_api.py b/samples/client/echo_api/python/openapi_client/api/body_api.py
index bba3d473009..77bd5615092 100644
--- a/samples/client/echo_api/python/openapi_client/api/body_api.py
+++ b/samples/client/echo_api/python/openapi_client/api/body_api.py
@@ -839,6 +839,276 @@ class BodyApi:
+ @validate_call
+ def test_body_multipart_formdata_single_binary(
+ self,
+ my_file: Optional[Union[StrictBytes, StrictStr]] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> str:
+ """Test single binary in multipart mime
+
+ Test single binary in multipart mime
+
+ :param my_file:
+ :type my_file: bytearray
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._test_body_multipart_formdata_single_binary_serialize(
+ my_file=my_file,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "str",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def test_body_multipart_formdata_single_binary_with_http_info(
+ self,
+ my_file: Optional[Union[StrictBytes, StrictStr]] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[str]:
+ """Test single binary in multipart mime
+
+ Test single binary in multipart mime
+
+ :param my_file:
+ :type my_file: bytearray
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._test_body_multipart_formdata_single_binary_serialize(
+ my_file=my_file,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "str",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def test_body_multipart_formdata_single_binary_without_preload_content(
+ self,
+ my_file: Optional[Union[StrictBytes, StrictStr]] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Test single binary in multipart mime
+
+ Test single binary in multipart mime
+
+ :param my_file:
+ :type my_file: bytearray
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._test_body_multipart_formdata_single_binary_serialize(
+ my_file=my_file,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "str",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _test_body_multipart_formdata_single_binary_serialize(
+ self,
+ my_file,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> Tuple:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[str, str] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ if my_file is not None:
+ _files['my-file'] = my_file
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'text/plain'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'multipart/form-data'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/body/application/octetstream/single_binary',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
@validate_call
def test_echo_body_all_of_pet(
self,
diff --git a/samples/client/echo_api/ruby-faraday/README.md b/samples/client/echo_api/ruby-faraday/README.md
index 88e3fc32459..0c10000333e 100644
--- a/samples/client/echo_api/ruby-faraday/README.md
+++ b/samples/client/echo_api/ruby-faraday/README.md
@@ -88,6 +88,7 @@ Class | Method | HTTP request | Description
*OpenapiClient::BodyApi* | [**test_binary_gif**](docs/BodyApi.md#test_binary_gif) | **POST** /binary/gif | Test binary (gif) response body
*OpenapiClient::BodyApi* | [**test_body_application_octetstream_binary**](docs/BodyApi.md#test_body_application_octetstream_binary) | **POST** /body/application/octetstream/binary | Test body parameter(s)
*OpenapiClient::BodyApi* | [**test_body_multipart_formdata_array_of_binary**](docs/BodyApi.md#test_body_multipart_formdata_array_of_binary) | **POST** /body/application/octetstream/array_of_binary | Test array of binary in multipart mime
+*OpenapiClient::BodyApi* | [**test_body_multipart_formdata_single_binary**](docs/BodyApi.md#test_body_multipart_formdata_single_binary) | **POST** /body/application/octetstream/single_binary | Test single binary in multipart mime
*OpenapiClient::BodyApi* | [**test_echo_body_all_of_pet**](docs/BodyApi.md#test_echo_body_all_of_pet) | **POST** /echo/body/allOf/Pet | Test body parameter(s)
*OpenapiClient::BodyApi* | [**test_echo_body_free_form_object_response_string**](docs/BodyApi.md#test_echo_body_free_form_object_response_string) | **POST** /echo/body/FreeFormObject/response_string | Test free form object
*OpenapiClient::BodyApi* | [**test_echo_body_pet**](docs/BodyApi.md#test_echo_body_pet) | **POST** /echo/body/Pet | Test body parameter(s)
diff --git a/samples/client/echo_api/ruby-faraday/docs/BodyApi.md b/samples/client/echo_api/ruby-faraday/docs/BodyApi.md
index e8b37e1fd54..f5d6d57479e 100644
--- a/samples/client/echo_api/ruby-faraday/docs/BodyApi.md
+++ b/samples/client/echo_api/ruby-faraday/docs/BodyApi.md
@@ -7,6 +7,7 @@ All URIs are relative to *http://localhost:3000*
| [**test_binary_gif**](BodyApi.md#test_binary_gif) | **POST** /binary/gif | Test binary (gif) response body |
| [**test_body_application_octetstream_binary**](BodyApi.md#test_body_application_octetstream_binary) | **POST** /body/application/octetstream/binary | Test body parameter(s) |
| [**test_body_multipart_formdata_array_of_binary**](BodyApi.md#test_body_multipart_formdata_array_of_binary) | **POST** /body/application/octetstream/array_of_binary | Test array of binary in multipart mime |
+| [**test_body_multipart_formdata_single_binary**](BodyApi.md#test_body_multipart_formdata_single_binary) | **POST** /body/application/octetstream/single_binary | Test single binary in multipart mime |
| [**test_echo_body_all_of_pet**](BodyApi.md#test_echo_body_all_of_pet) | **POST** /echo/body/allOf/Pet | Test body parameter(s) |
| [**test_echo_body_free_form_object_response_string**](BodyApi.md#test_echo_body_free_form_object_response_string) | **POST** /echo/body/FreeFormObject/response_string | Test free form object |
| [**test_echo_body_pet**](BodyApi.md#test_echo_body_pet) | **POST** /echo/body/Pet | Test body parameter(s) |
@@ -205,6 +206,72 @@ No authorization required
- **Accept**: text/plain
+## test_body_multipart_formdata_single_binary
+
+> String test_body_multipart_formdata_single_binary(opts)
+
+Test single binary in multipart mime
+
+Test single binary in multipart mime
+
+### Examples
+
+```ruby
+require 'time'
+require 'openapi_client'
+
+api_instance = OpenapiClient::BodyApi.new
+opts = {
+ my_file: File.new('/path/to/some/file') # File |
+}
+
+begin
+ # Test single binary in multipart mime
+ result = api_instance.test_body_multipart_formdata_single_binary(opts)
+ p result
+rescue OpenapiClient::ApiError => e
+ puts "Error when calling BodyApi->test_body_multipart_formdata_single_binary: #{e}"
+end
+```
+
+#### Using the test_body_multipart_formdata_single_binary_with_http_info variant
+
+This returns an Array which contains the response data, status code and headers.
+
+> test_body_multipart_formdata_single_binary_with_http_info(opts)
+
+```ruby
+begin
+ # Test single binary in multipart mime
+ data, status_code, headers = api_instance.test_body_multipart_formdata_single_binary_with_http_info(opts)
+ p status_code # => 2xx
+ p headers # => { ... }
+ p data # => String
+rescue OpenapiClient::ApiError => e
+ puts "Error when calling BodyApi->test_body_multipart_formdata_single_binary_with_http_info: #{e}"
+end
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+| ---- | ---- | ----------- | ----- |
+| **my_file** | **File** | | [optional] |
+
+### Return type
+
+**String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: multipart/form-data
+- **Accept**: text/plain
+
+
## test_echo_body_all_of_pet
> test_echo_body_all_of_pet(opts)
diff --git a/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/body_api.rb b/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/body_api.rb
index f9e4b67a922..16dc16b730b 100644
--- a/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/body_api.rb
+++ b/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/body_api.rb
@@ -209,6 +209,71 @@ module OpenapiClient
return data, status_code, headers
end
+ # Test single binary in multipart mime
+ # Test single binary in multipart mime
+ # @param [Hash] opts the optional parameters
+ # @option opts [File] :my_file
+ # @return [String]
+ def test_body_multipart_formdata_single_binary(opts = {})
+ data, _status_code, _headers = test_body_multipart_formdata_single_binary_with_http_info(opts)
+ data
+ end
+
+ # Test single binary in multipart mime
+ # Test single binary in multipart mime
+ # @param [Hash] opts the optional parameters
+ # @option opts [File] :my_file
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
+ def test_body_multipart_formdata_single_binary_with_http_info(opts = {})
+ if @api_client.config.debugging
+ @api_client.config.logger.debug 'Calling API: BodyApi.test_body_multipart_formdata_single_binary ...'
+ end
+ # resource path
+ local_var_path = '/body/application/octetstream/single_binary'
+
+ # query parameters
+ query_params = opts[:query_params] || {}
+
+ # header parameters
+ header_params = opts[:header_params] || {}
+ # HTTP header 'Accept' (if needed)
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
+ # HTTP header 'Content-Type'
+ content_type = @api_client.select_header_content_type(['multipart/form-data'])
+ if !content_type.nil?
+ header_params['Content-Type'] = content_type
+ end
+
+ # form parameters
+ form_params = opts[:form_params] || {}
+ form_params['my-file'] = opts[:'my_file'] if !opts[:'my_file'].nil?
+
+ # http body (model)
+ post_body = opts[:debug_body]
+
+ # return_type
+ return_type = opts[:debug_return_type] || 'String'
+
+ # auth_names
+ auth_names = opts[:debug_auth_names] || []
+
+ new_options = opts.merge(
+ :operation => :"BodyApi.test_body_multipart_formdata_single_binary",
+ :header_params => header_params,
+ :query_params => query_params,
+ :form_params => form_params,
+ :body => post_body,
+ :auth_names => auth_names,
+ :return_type => return_type
+ )
+
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
+ if @api_client.config.debugging
+ @api_client.config.logger.debug "API called: BodyApi#test_body_multipart_formdata_single_binary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
+ end
+ return data, status_code, headers
+ end
+
# Test body parameter(s)
# Test body parameter(s)
# @param [Hash] opts the optional parameters
diff --git a/samples/client/echo_api/ruby-httpx/README.md b/samples/client/echo_api/ruby-httpx/README.md
index eddc0da80fb..d389064972b 100644
--- a/samples/client/echo_api/ruby-httpx/README.md
+++ b/samples/client/echo_api/ruby-httpx/README.md
@@ -88,6 +88,7 @@ Class | Method | HTTP request | Description
*OpenapiClient::BodyApi* | [**test_binary_gif**](docs/BodyApi.md#test_binary_gif) | **POST** /binary/gif | Test binary (gif) response body
*OpenapiClient::BodyApi* | [**test_body_application_octetstream_binary**](docs/BodyApi.md#test_body_application_octetstream_binary) | **POST** /body/application/octetstream/binary | Test body parameter(s)
*OpenapiClient::BodyApi* | [**test_body_multipart_formdata_array_of_binary**](docs/BodyApi.md#test_body_multipart_formdata_array_of_binary) | **POST** /body/application/octetstream/array_of_binary | Test array of binary in multipart mime
+*OpenapiClient::BodyApi* | [**test_body_multipart_formdata_single_binary**](docs/BodyApi.md#test_body_multipart_formdata_single_binary) | **POST** /body/application/octetstream/single_binary | Test single binary in multipart mime
*OpenapiClient::BodyApi* | [**test_echo_body_all_of_pet**](docs/BodyApi.md#test_echo_body_all_of_pet) | **POST** /echo/body/allOf/Pet | Test body parameter(s)
*OpenapiClient::BodyApi* | [**test_echo_body_free_form_object_response_string**](docs/BodyApi.md#test_echo_body_free_form_object_response_string) | **POST** /echo/body/FreeFormObject/response_string | Test free form object
*OpenapiClient::BodyApi* | [**test_echo_body_pet**](docs/BodyApi.md#test_echo_body_pet) | **POST** /echo/body/Pet | Test body parameter(s)
diff --git a/samples/client/echo_api/ruby-httpx/docs/BodyApi.md b/samples/client/echo_api/ruby-httpx/docs/BodyApi.md
index e8b37e1fd54..f5d6d57479e 100644
--- a/samples/client/echo_api/ruby-httpx/docs/BodyApi.md
+++ b/samples/client/echo_api/ruby-httpx/docs/BodyApi.md
@@ -7,6 +7,7 @@ All URIs are relative to *http://localhost:3000*
| [**test_binary_gif**](BodyApi.md#test_binary_gif) | **POST** /binary/gif | Test binary (gif) response body |
| [**test_body_application_octetstream_binary**](BodyApi.md#test_body_application_octetstream_binary) | **POST** /body/application/octetstream/binary | Test body parameter(s) |
| [**test_body_multipart_formdata_array_of_binary**](BodyApi.md#test_body_multipart_formdata_array_of_binary) | **POST** /body/application/octetstream/array_of_binary | Test array of binary in multipart mime |
+| [**test_body_multipart_formdata_single_binary**](BodyApi.md#test_body_multipart_formdata_single_binary) | **POST** /body/application/octetstream/single_binary | Test single binary in multipart mime |
| [**test_echo_body_all_of_pet**](BodyApi.md#test_echo_body_all_of_pet) | **POST** /echo/body/allOf/Pet | Test body parameter(s) |
| [**test_echo_body_free_form_object_response_string**](BodyApi.md#test_echo_body_free_form_object_response_string) | **POST** /echo/body/FreeFormObject/response_string | Test free form object |
| [**test_echo_body_pet**](BodyApi.md#test_echo_body_pet) | **POST** /echo/body/Pet | Test body parameter(s) |
@@ -205,6 +206,72 @@ No authorization required
- **Accept**: text/plain
+## test_body_multipart_formdata_single_binary
+
+> String test_body_multipart_formdata_single_binary(opts)
+
+Test single binary in multipart mime
+
+Test single binary in multipart mime
+
+### Examples
+
+```ruby
+require 'time'
+require 'openapi_client'
+
+api_instance = OpenapiClient::BodyApi.new
+opts = {
+ my_file: File.new('/path/to/some/file') # File |
+}
+
+begin
+ # Test single binary in multipart mime
+ result = api_instance.test_body_multipart_formdata_single_binary(opts)
+ p result
+rescue OpenapiClient::ApiError => e
+ puts "Error when calling BodyApi->test_body_multipart_formdata_single_binary: #{e}"
+end
+```
+
+#### Using the test_body_multipart_formdata_single_binary_with_http_info variant
+
+This returns an Array which contains the response data, status code and headers.
+
+> test_body_multipart_formdata_single_binary_with_http_info(opts)
+
+```ruby
+begin
+ # Test single binary in multipart mime
+ data, status_code, headers = api_instance.test_body_multipart_formdata_single_binary_with_http_info(opts)
+ p status_code # => 2xx
+ p headers # => { ... }
+ p data # => String
+rescue OpenapiClient::ApiError => e
+ puts "Error when calling BodyApi->test_body_multipart_formdata_single_binary_with_http_info: #{e}"
+end
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+| ---- | ---- | ----------- | ----- |
+| **my_file** | **File** | | [optional] |
+
+### Return type
+
+**String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: multipart/form-data
+- **Accept**: text/plain
+
+
## test_echo_body_all_of_pet
> test_echo_body_all_of_pet(opts)
diff --git a/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/body_api.rb b/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/body_api.rb
index f9e4b67a922..16dc16b730b 100644
--- a/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/body_api.rb
+++ b/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/body_api.rb
@@ -209,6 +209,71 @@ module OpenapiClient
return data, status_code, headers
end
+ # Test single binary in multipart mime
+ # Test single binary in multipart mime
+ # @param [Hash] opts the optional parameters
+ # @option opts [File] :my_file
+ # @return [String]
+ def test_body_multipart_formdata_single_binary(opts = {})
+ data, _status_code, _headers = test_body_multipart_formdata_single_binary_with_http_info(opts)
+ data
+ end
+
+ # Test single binary in multipart mime
+ # Test single binary in multipart mime
+ # @param [Hash] opts the optional parameters
+ # @option opts [File] :my_file
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
+ def test_body_multipart_formdata_single_binary_with_http_info(opts = {})
+ if @api_client.config.debugging
+ @api_client.config.logger.debug 'Calling API: BodyApi.test_body_multipart_formdata_single_binary ...'
+ end
+ # resource path
+ local_var_path = '/body/application/octetstream/single_binary'
+
+ # query parameters
+ query_params = opts[:query_params] || {}
+
+ # header parameters
+ header_params = opts[:header_params] || {}
+ # HTTP header 'Accept' (if needed)
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
+ # HTTP header 'Content-Type'
+ content_type = @api_client.select_header_content_type(['multipart/form-data'])
+ if !content_type.nil?
+ header_params['Content-Type'] = content_type
+ end
+
+ # form parameters
+ form_params = opts[:form_params] || {}
+ form_params['my-file'] = opts[:'my_file'] if !opts[:'my_file'].nil?
+
+ # http body (model)
+ post_body = opts[:debug_body]
+
+ # return_type
+ return_type = opts[:debug_return_type] || 'String'
+
+ # auth_names
+ auth_names = opts[:debug_auth_names] || []
+
+ new_options = opts.merge(
+ :operation => :"BodyApi.test_body_multipart_formdata_single_binary",
+ :header_params => header_params,
+ :query_params => query_params,
+ :form_params => form_params,
+ :body => post_body,
+ :auth_names => auth_names,
+ :return_type => return_type
+ )
+
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
+ if @api_client.config.debugging
+ @api_client.config.logger.debug "API called: BodyApi#test_body_multipart_formdata_single_binary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
+ end
+ return data, status_code, headers
+ end
+
# Test body parameter(s)
# Test body parameter(s)
# @param [Hash] opts the optional parameters
diff --git a/samples/client/echo_api/ruby-typhoeus/README.md b/samples/client/echo_api/ruby-typhoeus/README.md
index 5ef55a4b87e..cdaea764c1b 100644
--- a/samples/client/echo_api/ruby-typhoeus/README.md
+++ b/samples/client/echo_api/ruby-typhoeus/README.md
@@ -86,6 +86,7 @@ Class | Method | HTTP request | Description
*OpenapiClient::BodyApi* | [**test_binary_gif**](docs/BodyApi.md#test_binary_gif) | **POST** /binary/gif | Test binary (gif) response body
*OpenapiClient::BodyApi* | [**test_body_application_octetstream_binary**](docs/BodyApi.md#test_body_application_octetstream_binary) | **POST** /body/application/octetstream/binary | Test body parameter(s)
*OpenapiClient::BodyApi* | [**test_body_multipart_formdata_array_of_binary**](docs/BodyApi.md#test_body_multipart_formdata_array_of_binary) | **POST** /body/application/octetstream/array_of_binary | Test array of binary in multipart mime
+*OpenapiClient::BodyApi* | [**test_body_multipart_formdata_single_binary**](docs/BodyApi.md#test_body_multipart_formdata_single_binary) | **POST** /body/application/octetstream/single_binary | Test single binary in multipart mime
*OpenapiClient::BodyApi* | [**test_echo_body_all_of_pet**](docs/BodyApi.md#test_echo_body_all_of_pet) | **POST** /echo/body/allOf/Pet | Test body parameter(s)
*OpenapiClient::BodyApi* | [**test_echo_body_free_form_object_response_string**](docs/BodyApi.md#test_echo_body_free_form_object_response_string) | **POST** /echo/body/FreeFormObject/response_string | Test free form object
*OpenapiClient::BodyApi* | [**test_echo_body_pet**](docs/BodyApi.md#test_echo_body_pet) | **POST** /echo/body/Pet | Test body parameter(s)
diff --git a/samples/client/echo_api/ruby-typhoeus/docs/BodyApi.md b/samples/client/echo_api/ruby-typhoeus/docs/BodyApi.md
index e8b37e1fd54..f5d6d57479e 100644
--- a/samples/client/echo_api/ruby-typhoeus/docs/BodyApi.md
+++ b/samples/client/echo_api/ruby-typhoeus/docs/BodyApi.md
@@ -7,6 +7,7 @@ All URIs are relative to *http://localhost:3000*
| [**test_binary_gif**](BodyApi.md#test_binary_gif) | **POST** /binary/gif | Test binary (gif) response body |
| [**test_body_application_octetstream_binary**](BodyApi.md#test_body_application_octetstream_binary) | **POST** /body/application/octetstream/binary | Test body parameter(s) |
| [**test_body_multipart_formdata_array_of_binary**](BodyApi.md#test_body_multipart_formdata_array_of_binary) | **POST** /body/application/octetstream/array_of_binary | Test array of binary in multipart mime |
+| [**test_body_multipart_formdata_single_binary**](BodyApi.md#test_body_multipart_formdata_single_binary) | **POST** /body/application/octetstream/single_binary | Test single binary in multipart mime |
| [**test_echo_body_all_of_pet**](BodyApi.md#test_echo_body_all_of_pet) | **POST** /echo/body/allOf/Pet | Test body parameter(s) |
| [**test_echo_body_free_form_object_response_string**](BodyApi.md#test_echo_body_free_form_object_response_string) | **POST** /echo/body/FreeFormObject/response_string | Test free form object |
| [**test_echo_body_pet**](BodyApi.md#test_echo_body_pet) | **POST** /echo/body/Pet | Test body parameter(s) |
@@ -205,6 +206,72 @@ No authorization required
- **Accept**: text/plain
+## test_body_multipart_formdata_single_binary
+
+> String test_body_multipart_formdata_single_binary(opts)
+
+Test single binary in multipart mime
+
+Test single binary in multipart mime
+
+### Examples
+
+```ruby
+require 'time'
+require 'openapi_client'
+
+api_instance = OpenapiClient::BodyApi.new
+opts = {
+ my_file: File.new('/path/to/some/file') # File |
+}
+
+begin
+ # Test single binary in multipart mime
+ result = api_instance.test_body_multipart_formdata_single_binary(opts)
+ p result
+rescue OpenapiClient::ApiError => e
+ puts "Error when calling BodyApi->test_body_multipart_formdata_single_binary: #{e}"
+end
+```
+
+#### Using the test_body_multipart_formdata_single_binary_with_http_info variant
+
+This returns an Array which contains the response data, status code and headers.
+
+> test_body_multipart_formdata_single_binary_with_http_info(opts)
+
+```ruby
+begin
+ # Test single binary in multipart mime
+ data, status_code, headers = api_instance.test_body_multipart_formdata_single_binary_with_http_info(opts)
+ p status_code # => 2xx
+ p headers # => { ... }
+ p data # => String
+rescue OpenapiClient::ApiError => e
+ puts "Error when calling BodyApi->test_body_multipart_formdata_single_binary_with_http_info: #{e}"
+end
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+| ---- | ---- | ----------- | ----- |
+| **my_file** | **File** | | [optional] |
+
+### Return type
+
+**String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: multipart/form-data
+- **Accept**: text/plain
+
+
## test_echo_body_all_of_pet
> test_echo_body_all_of_pet(opts)
diff --git a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/body_api.rb b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/body_api.rb
index f9e4b67a922..16dc16b730b 100644
--- a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/body_api.rb
+++ b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/body_api.rb
@@ -209,6 +209,71 @@ module OpenapiClient
return data, status_code, headers
end
+ # Test single binary in multipart mime
+ # Test single binary in multipart mime
+ # @param [Hash] opts the optional parameters
+ # @option opts [File] :my_file
+ # @return [String]
+ def test_body_multipart_formdata_single_binary(opts = {})
+ data, _status_code, _headers = test_body_multipart_formdata_single_binary_with_http_info(opts)
+ data
+ end
+
+ # Test single binary in multipart mime
+ # Test single binary in multipart mime
+ # @param [Hash] opts the optional parameters
+ # @option opts [File] :my_file
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
+ def test_body_multipart_formdata_single_binary_with_http_info(opts = {})
+ if @api_client.config.debugging
+ @api_client.config.logger.debug 'Calling API: BodyApi.test_body_multipart_formdata_single_binary ...'
+ end
+ # resource path
+ local_var_path = '/body/application/octetstream/single_binary'
+
+ # query parameters
+ query_params = opts[:query_params] || {}
+
+ # header parameters
+ header_params = opts[:header_params] || {}
+ # HTTP header 'Accept' (if needed)
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
+ # HTTP header 'Content-Type'
+ content_type = @api_client.select_header_content_type(['multipart/form-data'])
+ if !content_type.nil?
+ header_params['Content-Type'] = content_type
+ end
+
+ # form parameters
+ form_params = opts[:form_params] || {}
+ form_params['my-file'] = opts[:'my_file'] if !opts[:'my_file'].nil?
+
+ # http body (model)
+ post_body = opts[:debug_body]
+
+ # return_type
+ return_type = opts[:debug_return_type] || 'String'
+
+ # auth_names
+ auth_names = opts[:debug_auth_names] || []
+
+ new_options = opts.merge(
+ :operation => :"BodyApi.test_body_multipart_formdata_single_binary",
+ :header_params => header_params,
+ :query_params => query_params,
+ :form_params => form_params,
+ :body => post_body,
+ :auth_names => auth_names,
+ :return_type => return_type
+ )
+
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
+ if @api_client.config.debugging
+ @api_client.config.logger.debug "API called: BodyApi#test_body_multipart_formdata_single_binary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
+ end
+ return data, status_code, headers
+ end
+
# Test body parameter(s)
# Test body parameter(s)
# @param [Hash] opts the optional parameters
diff --git a/samples/client/echo_api/typescript-axios/build/api.ts b/samples/client/echo_api/typescript-axios/build/api.ts
index 5716d787bcf..df7ff828239 100644
--- a/samples/client/echo_api/typescript-axios/build/api.ts
+++ b/samples/client/echo_api/typescript-axios/build/api.ts
@@ -608,6 +608,45 @@ export const BodyApiAxiosParamCreator = function (configuration?: Configuration)
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+ localVarRequestOptions.data = localVarFormParams;
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Test single binary in multipart mime
+ * @summary Test single binary in multipart mime
+ * @param {File} [myFile]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ testBodyMultipartFormdataSingleBinary: async (myFile?: File, options: RawAxiosRequestConfig = {}): Promise => {
+ const localVarPath = `/body/application/octetstream/single_binary`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
+
+
+ if (myFile !== undefined) {
+ localVarFormParams.append('my-file', myFile as any);
+ }
+
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -838,6 +877,19 @@ export const BodyApiFp = function(configuration?: Configuration) {
const operationBasePath = operationServerMap['BodyApi.testBodyMultipartFormdataArrayOfBinary']?.[index]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
},
+ /**
+ * Test single binary in multipart mime
+ * @summary Test single binary in multipart mime
+ * @param {File} [myFile]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async testBodyMultipartFormdataSingleBinary(myFile?: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.testBodyMultipartFormdataSingleBinary(myFile, options);
+ const index = configuration?.serverIndex ?? 0;
+ const operationBasePath = operationServerMap['BodyApi.testBodyMultipartFormdataSingleBinary']?.[index]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
+ },
/**
* Test body parameter(s)
* @summary Test body parameter(s)
@@ -942,6 +994,16 @@ export const BodyApiFactory = function (configuration?: Configuration, basePath?
testBodyMultipartFormdataArrayOfBinary(files: Array, options?: any): AxiosPromise {
return localVarFp.testBodyMultipartFormdataArrayOfBinary(files, options).then((request) => request(axios, basePath));
},
+ /**
+ * Test single binary in multipart mime
+ * @summary Test single binary in multipart mime
+ * @param {File} [myFile]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ testBodyMultipartFormdataSingleBinary(myFile?: File, options?: any): AxiosPromise {
+ return localVarFp.testBodyMultipartFormdataSingleBinary(myFile, options).then((request) => request(axios, basePath));
+ },
/**
* Test body parameter(s)
* @summary Test body parameter(s)
@@ -1037,6 +1099,18 @@ export class BodyApi extends BaseAPI {
return BodyApiFp(this.configuration).testBodyMultipartFormdataArrayOfBinary(files, options).then((request) => request(this.axios, this.basePath));
}
+ /**
+ * Test single binary in multipart mime
+ * @summary Test single binary in multipart mime
+ * @param {File} [myFile]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof BodyApi
+ */
+ public testBodyMultipartFormdataSingleBinary(myFile?: File, options?: RawAxiosRequestConfig) {
+ return BodyApiFp(this.configuration).testBodyMultipartFormdataSingleBinary(myFile, options).then((request) => request(this.axios, this.basePath));
+ }
+
/**
* Test body parameter(s)
* @summary Test body parameter(s)
diff --git a/samples/client/petstore/java/resteasy-echo/.github/workflows/maven.yml b/samples/client/petstore/java/resteasy-echo/.github/workflows/maven.yml
index 89fbd4999bc..aa75c116424 100644
--- a/samples/client/petstore/java/resteasy-echo/.github/workflows/maven.yml
+++ b/samples/client/petstore/java/resteasy-echo/.github/workflows/maven.yml
@@ -13,7 +13,7 @@ on:
jobs:
build:
- name: Build OpenAPI Petstore
+ name: Build Echo Server API
runs-on: ubuntu-latest
strategy:
matrix:
diff --git a/samples/client/petstore/java/resteasy-echo/.openapi-generator/FILES b/samples/client/petstore/java/resteasy-echo/.openapi-generator/FILES
index 89d81862bef..2ff641b20af 100644
--- a/samples/client/petstore/java/resteasy-echo/.openapi-generator/FILES
+++ b/samples/client/petstore/java/resteasy-echo/.openapi-generator/FILES
@@ -5,63 +5,23 @@ README.md
api/openapi.yaml
build.gradle
build.sbt
-docs/AdditionalPropertiesClass.md
-docs/AllOfWithSingleRef.md
-docs/Animal.md
-docs/AnotherFakeApi.md
-docs/ArrayOfArrayOfNumberOnly.md
-docs/ArrayOfNumberOnly.md
-docs/ArrayTest.md
-docs/Capitalization.md
-docs/Cat.md
+docs/AuthApi.md
+docs/Bird.md
+docs/BodyApi.md
docs/Category.md
-docs/ChildWithNullable.md
-docs/ClassModel.md
-docs/Client.md
-docs/DefaultApi.md
-docs/DeprecatedObject.md
-docs/Dog.md
-docs/EnumArrays.md
-docs/EnumClass.md
-docs/EnumTest.md
-docs/FakeApi.md
-docs/FakeBigDecimalMap200Response.md
-docs/FakeClassnameTags123Api.md
-docs/FileSchemaTestClass.md
-docs/Foo.md
-docs/FooGetDefaultResponse.md
-docs/FormatTest.md
-docs/HasOnlyReadOnly.md
-docs/HealthCheckResult.md
-docs/MapTest.md
-docs/MixedPropertiesAndAdditionalPropertiesClass.md
-docs/Model200Response.md
-docs/ModelApiResponse.md
-docs/ModelFile.md
-docs/ModelList.md
-docs/ModelReturn.md
-docs/Name.md
-docs/NullableClass.md
-docs/NumberOnly.md
-docs/ObjectWithDeprecatedFields.md
-docs/Order.md
-docs/OuterComposite.md
-docs/OuterEnum.md
-docs/OuterEnumDefaultValue.md
-docs/OuterEnumInteger.md
-docs/OuterEnumIntegerDefaultValue.md
-docs/OuterObjectWithEnumProperty.md
-docs/ParentWithNullable.md
+docs/DataQuery.md
+docs/DefaultValue.md
+docs/FormApi.md
+docs/HeaderApi.md
+docs/NumberPropertiesOnly.md
+docs/PathApi.md
docs/Pet.md
-docs/PetApi.md
-docs/ReadOnlyFirst.md
-docs/SingleRefType.md
-docs/SpecialModelName.md
-docs/StoreApi.md
+docs/Query.md
+docs/QueryApi.md
+docs/StringEnumRef.md
docs/Tag.md
-docs/TestInlineFreeformAdditionalPropertiesRequest.md
-docs/User.md
-docs/UserApi.md
+docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md
+docs/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md
git_push.sh
gradle.properties
gradle/wrapper/gradle-wrapper.jar
@@ -81,66 +41,24 @@ src/main/java/org/openapitools/client/RFC3339DateFormat.java
src/main/java/org/openapitools/client/ServerConfiguration.java
src/main/java/org/openapitools/client/ServerVariable.java
src/main/java/org/openapitools/client/StringUtil.java
-src/main/java/org/openapitools/client/api/AnotherFakeApi.java
-src/main/java/org/openapitools/client/api/DefaultApi.java
-src/main/java/org/openapitools/client/api/FakeApi.java
-src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java
-src/main/java/org/openapitools/client/api/PetApi.java
-src/main/java/org/openapitools/client/api/StoreApi.java
-src/main/java/org/openapitools/client/api/UserApi.java
+src/main/java/org/openapitools/client/api/AuthApi.java
+src/main/java/org/openapitools/client/api/BodyApi.java
+src/main/java/org/openapitools/client/api/FormApi.java
+src/main/java/org/openapitools/client/api/HeaderApi.java
+src/main/java/org/openapitools/client/api/PathApi.java
+src/main/java/org/openapitools/client/api/QueryApi.java
src/main/java/org/openapitools/client/auth/ApiKeyAuth.java
src/main/java/org/openapitools/client/auth/Authentication.java
src/main/java/org/openapitools/client/auth/HttpBasicAuth.java
src/main/java/org/openapitools/client/auth/HttpBearerAuth.java
-src/main/java/org/openapitools/client/auth/OAuth.java
-src/main/java/org/openapitools/client/auth/OAuthFlow.java
-src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java
-src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java
-src/main/java/org/openapitools/client/model/Animal.java
-src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java
-src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java
-src/main/java/org/openapitools/client/model/ArrayTest.java
-src/main/java/org/openapitools/client/model/Capitalization.java
-src/main/java/org/openapitools/client/model/Cat.java
+src/main/java/org/openapitools/client/model/Bird.java
src/main/java/org/openapitools/client/model/Category.java
-src/main/java/org/openapitools/client/model/ChildWithNullable.java
-src/main/java/org/openapitools/client/model/ClassModel.java
-src/main/java/org/openapitools/client/model/Client.java
-src/main/java/org/openapitools/client/model/DeprecatedObject.java
-src/main/java/org/openapitools/client/model/Dog.java
-src/main/java/org/openapitools/client/model/EnumArrays.java
-src/main/java/org/openapitools/client/model/EnumClass.java
-src/main/java/org/openapitools/client/model/EnumTest.java
-src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java
-src/main/java/org/openapitools/client/model/FileSchemaTestClass.java
-src/main/java/org/openapitools/client/model/Foo.java
-src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java
-src/main/java/org/openapitools/client/model/FormatTest.java
-src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java
-src/main/java/org/openapitools/client/model/HealthCheckResult.java
-src/main/java/org/openapitools/client/model/MapTest.java
-src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java
-src/main/java/org/openapitools/client/model/Model200Response.java
-src/main/java/org/openapitools/client/model/ModelApiResponse.java
-src/main/java/org/openapitools/client/model/ModelFile.java
-src/main/java/org/openapitools/client/model/ModelList.java
-src/main/java/org/openapitools/client/model/ModelReturn.java
-src/main/java/org/openapitools/client/model/Name.java
-src/main/java/org/openapitools/client/model/NullableClass.java
-src/main/java/org/openapitools/client/model/NumberOnly.java
-src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java
-src/main/java/org/openapitools/client/model/Order.java
-src/main/java/org/openapitools/client/model/OuterComposite.java
-src/main/java/org/openapitools/client/model/OuterEnum.java
-src/main/java/org/openapitools/client/model/OuterEnumDefaultValue.java
-src/main/java/org/openapitools/client/model/OuterEnumInteger.java
-src/main/java/org/openapitools/client/model/OuterEnumIntegerDefaultValue.java
-src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java
-src/main/java/org/openapitools/client/model/ParentWithNullable.java
+src/main/java/org/openapitools/client/model/DataQuery.java
+src/main/java/org/openapitools/client/model/DefaultValue.java
+src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java
src/main/java/org/openapitools/client/model/Pet.java
-src/main/java/org/openapitools/client/model/ReadOnlyFirst.java
-src/main/java/org/openapitools/client/model/SingleRefType.java
-src/main/java/org/openapitools/client/model/SpecialModelName.java
+src/main/java/org/openapitools/client/model/Query.java
+src/main/java/org/openapitools/client/model/StringEnumRef.java
src/main/java/org/openapitools/client/model/Tag.java
-src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java
-src/main/java/org/openapitools/client/model/User.java
+src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java
+src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java
diff --git a/samples/client/petstore/java/resteasy-echo/README.md b/samples/client/petstore/java/resteasy-echo/README.md
index 20283d76cfd..2c53ad7593f 100644
--- a/samples/client/petstore/java/resteasy-echo/README.md
+++ b/samples/client/petstore/java/resteasy-echo/README.md
@@ -1,10 +1,10 @@
# petstore-resteasy-echo
-OpenAPI Petstore
+Echo Server API
-- API version: 1.0.0
+- API version: 0.1.0
-This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+Echo Server API
*Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)*
@@ -40,7 +40,7 @@ Add this dependency to your project's POM:
org.openapitools
petstore-resteasy-echo
- 1.0.0
+ 0.1.0
compile
```
@@ -56,7 +56,7 @@ Add this dependency to your project's build file:
}
dependencies {
- implementation "org.openapitools:petstore-resteasy-echo:1.0.0"
+ implementation "org.openapitools:petstore-resteasy-echo:0.1.0"
}
```
@@ -70,7 +70,7 @@ mvn clean package
Then manually install the following JARs:
-- `target/petstore-resteasy-echo-1.0.0.jar`
+- `target/petstore-resteasy-echo-0.1.0.jar`
- `target/lib/*.jar`
## Getting Started
@@ -82,21 +82,25 @@ Please follow the [installation](#installation) instruction and execute the foll
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
-import org.openapitools.client.api.AnotherFakeApi;
+import org.openapitools.client.api.AuthApi;
-public class AnotherFakeApiExample {
+public class AuthApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:3000");
- AnotherFakeApi apiInstance = new AnotherFakeApi(defaultClient);
- Client client = new Client(); // Client | client model
+ // Configure HTTP basic authorization: http_auth
+ HttpBasicAuth http_auth = (HttpBasicAuth) defaultClient.getAuthentication("http_auth");
+ http_auth.setUsername("YOUR USERNAME");
+ http_auth.setPassword("YOUR PASSWORD");
+
+ AuthApi apiInstance = new AuthApi(defaultClient);
try {
- Client result = apiInstance.call123testSpecialTags(client);
+ String result = apiInstance.testAuthHttpBasic();
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
+ System.err.println("Exception when calling AuthApi#testAuthHttpBasic");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
@@ -113,104 +117,44 @@ All URIs are relative to *http://localhost:3000*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
-*AnotherFakeApi* | [**call123testSpecialTags**](docs/AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
-*DefaultApi* | [**fooGet**](docs/DefaultApi.md#fooGet) | **GET** /foo |
-*FakeApi* | [**fakeBigDecimalMap**](docs/FakeApi.md#fakeBigDecimalMap) | **GET** /fake/BigDecimalMap |
-*FakeApi* | [**fakeHealthGet**](docs/FakeApi.md#fakeHealthGet) | **GET** /fake/health | Health check endpoint
-*FakeApi* | [**fakeHttpSignatureTest**](docs/FakeApi.md#fakeHttpSignatureTest) | **GET** /fake/http-signature-test | test http signature authentication
-*FakeApi* | [**fakeOuterBooleanSerialize**](docs/FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean |
-*FakeApi* | [**fakeOuterCompositeSerialize**](docs/FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite |
-*FakeApi* | [**fakeOuterNumberSerialize**](docs/FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number |
-*FakeApi* | [**fakeOuterStringSerialize**](docs/FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string |
-*FakeApi* | [**fakePropertyEnumIntegerSerialize**](docs/FakeApi.md#fakePropertyEnumIntegerSerialize) | **POST** /fake/property/enum-int |
-*FakeApi* | [**testBodyWithBinary**](docs/FakeApi.md#testBodyWithBinary) | **PUT** /fake/body-with-binary |
-*FakeApi* | [**testBodyWithFileSchema**](docs/FakeApi.md#testBodyWithFileSchema) | **PUT** /fake/body-with-file-schema |
-*FakeApi* | [**testBodyWithQueryParams**](docs/FakeApi.md#testBodyWithQueryParams) | **PUT** /fake/body-with-query-params |
-*FakeApi* | [**testClientModel**](docs/FakeApi.md#testClientModel) | **PATCH** /fake | To test \"client\" model
-*FakeApi* | [**testEndpointParameters**](docs/FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
-*FakeApi* | [**testEnumParameters**](docs/FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters
-*FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
-*FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
-*FakeApi* | [**testInlineFreeformAdditionalProperties**](docs/FakeApi.md#testInlineFreeformAdditionalProperties) | **POST** /fake/inline-freeform-additionalProperties | test inline free-form additionalProperties
-*FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data
-*FakeApi* | [**testNullable**](docs/FakeApi.md#testNullable) | **POST** /fake/nullable | test nullable parent property
-*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters |
-*FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case
-*PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store
-*PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet
-*PetApi* | [**findPetsByStatus**](docs/PetApi.md#findPetsByStatus) | **GET** /pet/findByStatus | Finds Pets by status
-*PetApi* | [**findPetsByTags**](docs/PetApi.md#findPetsByTags) | **GET** /pet/findByTags | Finds Pets by tags
-*PetApi* | [**getPetById**](docs/PetApi.md#getPetById) | **GET** /pet/{petId} | Find pet by ID
-*PetApi* | [**updatePet**](docs/PetApi.md#updatePet) | **PUT** /pet | Update an existing pet
-*PetApi* | [**updatePetWithForm**](docs/PetApi.md#updatePetWithForm) | **POST** /pet/{petId} | Updates a pet in the store with form data
-*PetApi* | [**uploadFile**](docs/PetApi.md#uploadFile) | **POST** /pet/{petId}/uploadImage | uploads an image
-*PetApi* | [**uploadFileWithRequiredFile**](docs/PetApi.md#uploadFileWithRequiredFile) | **POST** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required)
-*StoreApi* | [**deleteOrder**](docs/StoreApi.md#deleteOrder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID
-*StoreApi* | [**getInventory**](docs/StoreApi.md#getInventory) | **GET** /store/inventory | Returns pet inventories by status
-*StoreApi* | [**getOrderById**](docs/StoreApi.md#getOrderById) | **GET** /store/order/{order_id} | Find purchase order by ID
-*StoreApi* | [**placeOrder**](docs/StoreApi.md#placeOrder) | **POST** /store/order | Place an order for a pet
-*UserApi* | [**createUser**](docs/UserApi.md#createUser) | **POST** /user | Create user
-*UserApi* | [**createUsersWithArrayInput**](docs/UserApi.md#createUsersWithArrayInput) | **POST** /user/createWithArray | Creates list of users with given input array
-*UserApi* | [**createUsersWithListInput**](docs/UserApi.md#createUsersWithListInput) | **POST** /user/createWithList | Creates list of users with given input array
-*UserApi* | [**deleteUser**](docs/UserApi.md#deleteUser) | **DELETE** /user/{username} | Delete user
-*UserApi* | [**getUserByName**](docs/UserApi.md#getUserByName) | **GET** /user/{username} | Get user by user name
-*UserApi* | [**loginUser**](docs/UserApi.md#loginUser) | **GET** /user/login | Logs user into the system
-*UserApi* | [**logoutUser**](docs/UserApi.md#logoutUser) | **GET** /user/logout | Logs out current logged in user session
-*UserApi* | [**updateUser**](docs/UserApi.md#updateUser) | **PUT** /user/{username} | Updated user
+*AuthApi* | [**testAuthHttpBasic**](docs/AuthApi.md#testAuthHttpBasic) | **POST** /auth/http/basic | To test HTTP basic authentication
+*AuthApi* | [**testAuthHttpBearer**](docs/AuthApi.md#testAuthHttpBearer) | **POST** /auth/http/bearer | To test HTTP bearer authentication
+*BodyApi* | [**testBinaryGif**](docs/BodyApi.md#testBinaryGif) | **POST** /binary/gif | Test binary (gif) response body
+*BodyApi* | [**testBodyApplicationOctetstreamBinary**](docs/BodyApi.md#testBodyApplicationOctetstreamBinary) | **POST** /body/application/octetstream/binary | Test body parameter(s)
+*BodyApi* | [**testBodyMultipartFormdataArrayOfBinary**](docs/BodyApi.md#testBodyMultipartFormdataArrayOfBinary) | **POST** /body/application/octetstream/array_of_binary | Test array of binary in multipart mime
+*BodyApi* | [**testBodyMultipartFormdataSingleBinary**](docs/BodyApi.md#testBodyMultipartFormdataSingleBinary) | **POST** /body/application/octetstream/single_binary | Test single binary in multipart mime
+*BodyApi* | [**testEchoBodyAllOfPet**](docs/BodyApi.md#testEchoBodyAllOfPet) | **POST** /echo/body/allOf/Pet | Test body parameter(s)
+*BodyApi* | [**testEchoBodyFreeFormObjectResponseString**](docs/BodyApi.md#testEchoBodyFreeFormObjectResponseString) | **POST** /echo/body/FreeFormObject/response_string | Test free form object
+*BodyApi* | [**testEchoBodyPet**](docs/BodyApi.md#testEchoBodyPet) | **POST** /echo/body/Pet | Test body parameter(s)
+*BodyApi* | [**testEchoBodyPetResponseString**](docs/BodyApi.md#testEchoBodyPetResponseString) | **POST** /echo/body/Pet/response_string | Test empty response body
+*BodyApi* | [**testEchoBodyTagResponseString**](docs/BodyApi.md#testEchoBodyTagResponseString) | **POST** /echo/body/Tag/response_string | Test empty json (request body)
+*FormApi* | [**testFormIntegerBooleanString**](docs/FormApi.md#testFormIntegerBooleanString) | **POST** /form/integer/boolean/string | Test form parameter(s)
+*FormApi* | [**testFormOneof**](docs/FormApi.md#testFormOneof) | **POST** /form/oneof | Test form parameter(s) for oneOf schema
+*HeaderApi* | [**testHeaderIntegerBooleanStringEnums**](docs/HeaderApi.md#testHeaderIntegerBooleanStringEnums) | **GET** /header/integer/boolean/string/enums | Test header parameter(s)
+*PathApi* | [**testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath**](docs/PathApi.md#testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath) | **GET** /path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path} | Test path parameter(s)
+*QueryApi* | [**testEnumRefString**](docs/QueryApi.md#testEnumRefString) | **GET** /query/enum_ref_string | Test query parameter(s)
+*QueryApi* | [**testQueryDatetimeDateString**](docs/QueryApi.md#testQueryDatetimeDateString) | **GET** /query/datetime/date/string | Test query parameter(s)
+*QueryApi* | [**testQueryIntegerBooleanString**](docs/QueryApi.md#testQueryIntegerBooleanString) | **GET** /query/integer/boolean/string | Test query parameter(s)
+*QueryApi* | [**testQueryStyleDeepObjectExplodeTrueObject**](docs/QueryApi.md#testQueryStyleDeepObjectExplodeTrueObject) | **GET** /query/style_deepObject/explode_true/object | Test query parameter(s)
+*QueryApi* | [**testQueryStyleDeepObjectExplodeTrueObjectAllOf**](docs/QueryApi.md#testQueryStyleDeepObjectExplodeTrueObjectAllOf) | **GET** /query/style_deepObject/explode_true/object/allOf | Test query parameter(s)
+*QueryApi* | [**testQueryStyleFormExplodeTrueArrayString**](docs/QueryApi.md#testQueryStyleFormExplodeTrueArrayString) | **GET** /query/style_form/explode_true/array_string | Test query parameter(s)
+*QueryApi* | [**testQueryStyleFormExplodeTrueObject**](docs/QueryApi.md#testQueryStyleFormExplodeTrueObject) | **GET** /query/style_form/explode_true/object | Test query parameter(s)
+*QueryApi* | [**testQueryStyleFormExplodeTrueObjectAllOf**](docs/QueryApi.md#testQueryStyleFormExplodeTrueObjectAllOf) | **GET** /query/style_form/explode_true/object/allOf | Test query parameter(s)
## Documentation for Models
- - [AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
- - [AllOfWithSingleRef](docs/AllOfWithSingleRef.md)
- - [Animal](docs/Animal.md)
- - [ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
- - [ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
- - [ArrayTest](docs/ArrayTest.md)
- - [Capitalization](docs/Capitalization.md)
- - [Cat](docs/Cat.md)
+ - [Bird](docs/Bird.md)
- [Category](docs/Category.md)
- - [ChildWithNullable](docs/ChildWithNullable.md)
- - [ClassModel](docs/ClassModel.md)
- - [Client](docs/Client.md)
- - [DeprecatedObject](docs/DeprecatedObject.md)
- - [Dog](docs/Dog.md)
- - [EnumArrays](docs/EnumArrays.md)
- - [EnumClass](docs/EnumClass.md)
- - [EnumTest](docs/EnumTest.md)
- - [FakeBigDecimalMap200Response](docs/FakeBigDecimalMap200Response.md)
- - [FileSchemaTestClass](docs/FileSchemaTestClass.md)
- - [Foo](docs/Foo.md)
- - [FooGetDefaultResponse](docs/FooGetDefaultResponse.md)
- - [FormatTest](docs/FormatTest.md)
- - [HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
- - [HealthCheckResult](docs/HealthCheckResult.md)
- - [MapTest](docs/MapTest.md)
- - [MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
- - [Model200Response](docs/Model200Response.md)
- - [ModelApiResponse](docs/ModelApiResponse.md)
- - [ModelFile](docs/ModelFile.md)
- - [ModelList](docs/ModelList.md)
- - [ModelReturn](docs/ModelReturn.md)
- - [Name](docs/Name.md)
- - [NullableClass](docs/NullableClass.md)
- - [NumberOnly](docs/NumberOnly.md)
- - [ObjectWithDeprecatedFields](docs/ObjectWithDeprecatedFields.md)
- - [Order](docs/Order.md)
- - [OuterComposite](docs/OuterComposite.md)
- - [OuterEnum](docs/OuterEnum.md)
- - [OuterEnumDefaultValue](docs/OuterEnumDefaultValue.md)
- - [OuterEnumInteger](docs/OuterEnumInteger.md)
- - [OuterEnumIntegerDefaultValue](docs/OuterEnumIntegerDefaultValue.md)
- - [OuterObjectWithEnumProperty](docs/OuterObjectWithEnumProperty.md)
- - [ParentWithNullable](docs/ParentWithNullable.md)
+ - [DataQuery](docs/DataQuery.md)
+ - [DefaultValue](docs/DefaultValue.md)
+ - [NumberPropertiesOnly](docs/NumberPropertiesOnly.md)
- [Pet](docs/Pet.md)
- - [ReadOnlyFirst](docs/ReadOnlyFirst.md)
- - [SingleRefType](docs/SingleRefType.md)
- - [SpecialModelName](docs/SpecialModelName.md)
+ - [Query](docs/Query.md)
+ - [StringEnumRef](docs/StringEnumRef.md)
- [Tag](docs/Tag.md)
- - [TestInlineFreeformAdditionalPropertiesRequest](docs/TestInlineFreeformAdditionalPropertiesRequest.md)
- - [User](docs/User.md)
+ - [TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter](docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md)
+ - [TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter](docs/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md)
@@ -218,50 +162,17 @@ Class | Method | HTTP request | Description
Authentication schemes defined for the API:
-
-### petstore_auth
-
-
-- **Type**: OAuth
-- **Flow**: implicit
-- **Authorization URL**: http://petstore.swagger.io/api/oauth/dialog
-- **Scopes**:
- - write:pets: modify pets in your account
- - read:pets: read your pets
-
-
-### api_key
-
-
-- **Type**: API key
-- **API key parameter name**: api_key
-- **Location**: HTTP header
-
-
-### api_key_query
-
-
-- **Type**: API key
-- **API key parameter name**: api_key_query
-- **Location**: URL query string
-
-
-### http_basic_test
+
+### http_auth
- **Type**: HTTP basic authentication
-
-### bearer_test
+
+### http_bearer_auth
-- **Type**: HTTP Bearer Token authentication (JWT)
-
-
-### http_signature_test
-
-
-- **Type**: HTTP signature authentication
+- **Type**: HTTP Bearer Token authentication
## Recommendation
@@ -270,5 +181,5 @@ It's recommended to create an instance of `ApiClient` per thread in a multithrea
## Author
-
+team@openapitools.org
diff --git a/samples/client/petstore/java/resteasy-echo/api/openapi.yaml b/samples/client/petstore/java/resteasy-echo/api/openapi.yaml
index 1a1bd6596b5..f5d4fc9abbd 100644
--- a/samples/client/petstore/java/resteasy-echo/api/openapi.yaml
+++ b/samples/client/petstore/java/resteasy-echo/api/openapi.yaml
@@ -1,280 +1,564 @@
-openapi: 3.0.0
+openapi: 3.0.3
info:
- description: "This spec is mainly for testing Petstore server and contains fake\
- \ endpoints, models. Please do not use this for any other purpose. Special characters:\
- \ \" \\"
+ contact:
+ email: team@openapitools.org
+ description: Echo Server API
license:
- name: Apache-2.0
- url: https://www.apache.org/licenses/LICENSE-2.0.html
- title: OpenAPI Petstore
- version: 1.0.0
+ name: Apache 2.0
+ url: http://www.apache.org/licenses/LICENSE-2.0.html
+ title: Echo Server API
+ version: 0.1.0
servers:
- url: http://localhost:3000/
paths:
- /foo:
+ /path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path}:
get:
- responses:
- default:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/_foo_get_default_response'
- description: response
- x-accepts: application/json
- /pet:
- post:
- description: ""
- operationId: addPet
- requestBody:
- $ref: '#/components/requestBodies/Pet'
- responses:
- "200":
- description: Successful operation
- "405":
- description: Invalid input
- security:
- - petstore_auth:
- - write:pets
- - read:pets
- summary: Add a new pet to the store
- tags:
- - pet
- x-content-type: application/json
- x-accepts: application/json
- put:
- description: ""
- operationId: updatePet
- requestBody:
- $ref: '#/components/requestBodies/Pet'
- responses:
- "200":
- description: Successful operation
- "400":
- description: Invalid ID supplied
- "404":
- description: Pet not found
- "405":
- description: Validation exception
- security:
- - petstore_auth:
- - write:pets
- - read:pets
- summary: Update an existing pet
- tags:
- - pet
- x-webclient-blocking: true
- x-content-type: application/json
- x-accepts: application/json
- /pet/findByStatus:
- get:
- description: Multiple status values can be provided with comma separated strings
- operationId: findPetsByStatus
- parameters:
- - deprecated: true
- description: Status values that need to be considered for filter
- explode: false
- in: query
- name: status
- required: true
- schema:
- items:
- default: available
- enum:
- - available
- - pending
- - sold
- type: string
- type: array
- style: form
- responses:
- "200":
- content:
- application/xml:
- schema:
- items:
- $ref: '#/components/schemas/Pet'
- type: array
- application/json:
- schema:
- items:
- $ref: '#/components/schemas/Pet'
- type: array
- description: successful operation
- "400":
- description: Invalid status value
- security:
- - petstore_auth:
- - write:pets
- - read:pets
- summary: Finds Pets by status
- tags:
- - pet
- x-webclient-blocking: true
- x-accepts: application/json
- /pet/findByTags:
- get:
- deprecated: true
- description: "Multiple tags can be provided with comma separated strings. Use\
- \ tag1, tag2, tag3 for testing."
- operationId: findPetsByTags
- parameters:
- - description: Tags to filter by
- explode: false
- in: query
- name: tags
- required: true
- schema:
- items:
- type: string
- type: array
- uniqueItems: true
- style: form
- responses:
- "200":
- content:
- application/xml:
- schema:
- items:
- $ref: '#/components/schemas/Pet'
- type: array
- uniqueItems: true
- application/json:
- schema:
- items:
- $ref: '#/components/schemas/Pet'
- type: array
- uniqueItems: true
- description: successful operation
- "400":
- description: Invalid tag value
- security:
- - petstore_auth:
- - write:pets
- - read:pets
- summary: Finds Pets by tags
- tags:
- - pet
- x-webclient-blocking: true
- x-accepts: application/json
- /pet/{petId}:
- delete:
- description: ""
- operationId: deletePet
+ description: Test path parameter(s)
+ operationId: "tests/path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path}"
parameters:
- explode: false
- in: header
- name: api_key
- required: false
+ in: path
+ name: path_string
+ required: true
schema:
type: string
style: simple
- - description: Pet id to delete
- explode: false
+ - explode: false
in: path
- name: petId
+ name: path_integer
required: true
schema:
- format: int64
type: integer
style: simple
- responses:
- "200":
- description: Successful operation
- "400":
- description: Invalid pet value
- security:
- - petstore_auth:
- - write:pets
- - read:pets
- summary: Deletes a pet
- tags:
- - pet
- x-accepts: application/json
- get:
- description: Returns a single pet
- operationId: getPetById
- parameters:
- - description: ID of pet to return
- explode: false
+ - explode: false
in: path
- name: petId
+ name: enum_nonref_string_path
required: true
schema:
- format: int64
- type: integer
+ enum:
+ - success
+ - failure
+ - unclassified
+ type: string
+ style: simple
+ - explode: false
+ in: path
+ name: enum_ref_string_path
+ required: true
+ schema:
+ $ref: '#/components/schemas/StringEnumRef'
style: simple
responses:
"200":
content:
- application/xml:
+ text/plain:
schema:
- $ref: '#/components/schemas/Pet'
- application/json:
- schema:
- $ref: '#/components/schemas/Pet'
- description: successful operation
- "400":
- description: Invalid ID supplied
- "404":
- description: Pet not found
- security:
- - api_key: []
- summary: Find pet by ID
+ type: string
+ description: Successful operation
+ summary: Test path parameter(s)
tags:
- - pet
- x-webclient-blocking: true
- x-accepts: application/json
+ - path
+ x-accepts: text/plain
+ /form/integer/boolean/string:
post:
- description: ""
- operationId: updatePetWithForm
- parameters:
- - description: ID of pet that needs to be updated
- explode: false
- in: path
- name: petId
- required: true
- schema:
- format: int64
- type: integer
- style: simple
+ description: Test form parameter(s)
+ operationId: test/form/integer/boolean/string
requestBody:
content:
application/x-www-form-urlencoded:
schema:
- $ref: '#/components/schemas/updatePetWithForm_request'
+ $ref: '#/components/schemas/test_form_integer_boolean_string_request'
responses:
"200":
+ content:
+ text/plain:
+ schema:
+ type: string
description: Successful operation
- "405":
- description: Invalid input
- security:
- - petstore_auth:
- - write:pets
- - read:pets
- summary: Updates a pet in the store with form data
+ summary: Test form parameter(s)
tags:
- - pet
+ - form
x-content-type: application/x-www-form-urlencoded
- x-accepts: application/json
- /pet/{petId}/uploadImage:
+ x-accepts: text/plain
+ /form/oneof:
post:
- description: ""
- operationId: uploadFile
+ description: Test form parameter(s) for oneOf schema
+ operationId: test/form/oneof
+ requestBody:
+ content:
+ application/x-www-form-urlencoded:
+ schema:
+ $ref: '#/components/schemas/test_form_oneof_request'
+ responses:
+ "200":
+ content:
+ text/plain:
+ schema:
+ type: string
+ description: Successful operation
+ summary: Test form parameter(s) for oneOf schema
+ tags:
+ - form
+ x-content-type: application/x-www-form-urlencoded
+ x-accepts: text/plain
+ /header/integer/boolean/string/enums:
+ get:
+ description: Test header parameter(s)
+ operationId: test/header/integer/boolean/string/enums
parameters:
- - description: ID of pet to update
- explode: false
- in: path
- name: petId
- required: true
+ - explode: true
+ in: header
+ name: integer_header
+ required: false
schema:
- format: int64
type: integer
- style: simple
+ style: form
+ - explode: true
+ in: header
+ name: boolean_header
+ required: false
+ schema:
+ type: boolean
+ style: form
+ - explode: true
+ in: header
+ name: string_header
+ required: false
+ schema:
+ type: string
+ style: form
+ - explode: true
+ in: header
+ name: enum_nonref_string_header
+ required: false
+ schema:
+ enum:
+ - success
+ - failure
+ - unclassified
+ type: string
+ style: form
+ - explode: true
+ in: header
+ name: enum_ref_string_header
+ required: false
+ schema:
+ $ref: '#/components/schemas/StringEnumRef'
+ style: form
+ responses:
+ "200":
+ content:
+ text/plain:
+ schema:
+ type: string
+ description: Successful operation
+ summary: Test header parameter(s)
+ tags:
+ - header
+ x-accepts: text/plain
+ /query/enum_ref_string:
+ get:
+ description: Test query parameter(s)
+ operationId: test/enum_ref_string
+ parameters:
+ - explode: true
+ in: query
+ name: enum_nonref_string_query
+ required: false
+ schema:
+ enum:
+ - success
+ - failure
+ - unclassified
+ type: string
+ style: form
+ - explode: true
+ in: query
+ name: enum_ref_string_query
+ required: false
+ schema:
+ $ref: '#/components/schemas/StringEnumRef'
+ style: form
+ responses:
+ "200":
+ content:
+ text/plain:
+ schema:
+ type: string
+ description: Successful operation
+ summary: Test query parameter(s)
+ tags:
+ - query
+ x-accepts: text/plain
+ /query/datetime/date/string:
+ get:
+ description: Test query parameter(s)
+ operationId: test/query/datetime/date/string
+ parameters:
+ - explode: true
+ in: query
+ name: datetime_query
+ required: false
+ schema:
+ format: date-time
+ type: string
+ style: form
+ - explode: true
+ in: query
+ name: date_query
+ required: false
+ schema:
+ format: date
+ type: string
+ style: form
+ - explode: true
+ in: query
+ name: string_query
+ required: false
+ schema:
+ type: string
+ style: form
+ responses:
+ "200":
+ content:
+ text/plain:
+ schema:
+ type: string
+ description: Successful operation
+ summary: Test query parameter(s)
+ tags:
+ - query
+ x-accepts: text/plain
+ /query/integer/boolean/string:
+ get:
+ description: Test query parameter(s)
+ operationId: test/query/integer/boolean/string
+ parameters:
+ - explode: true
+ in: query
+ name: integer_query
+ required: false
+ schema:
+ type: integer
+ style: form
+ - explode: true
+ in: query
+ name: boolean_query
+ required: false
+ schema:
+ type: boolean
+ style: form
+ - explode: true
+ in: query
+ name: string_query
+ required: false
+ schema:
+ type: string
+ style: form
+ responses:
+ "200":
+ content:
+ text/plain:
+ schema:
+ type: string
+ description: Successful operation
+ summary: Test query parameter(s)
+ tags:
+ - query
+ x-accepts: text/plain
+ /query/style_form/explode_true/array_string:
+ get:
+ description: Test query parameter(s)
+ operationId: test/query/style_form/explode_true/array_string
+ parameters:
+ - explode: true
+ in: query
+ name: query_object
+ required: false
+ schema:
+ $ref: '#/components/schemas/test_query_style_form_explode_true_array_string_query_object_parameter'
+ style: form
+ responses:
+ "200":
+ content:
+ text/plain:
+ schema:
+ type: string
+ description: Successful operation
+ summary: Test query parameter(s)
+ tags:
+ - query
+ x-accepts: text/plain
+ /query/style_form/explode_true/object:
+ get:
+ description: Test query parameter(s)
+ operationId: test/query/style_form/explode_true/object
+ parameters:
+ - explode: true
+ in: query
+ name: query_object
+ required: false
+ schema:
+ $ref: '#/components/schemas/Pet'
+ style: form
+ responses:
+ "200":
+ content:
+ text/plain:
+ schema:
+ type: string
+ description: Successful operation
+ summary: Test query parameter(s)
+ tags:
+ - query
+ x-accepts: text/plain
+ /query/style_form/explode_true/object/allOf:
+ get:
+ description: Test query parameter(s)
+ operationId: test/query/style_form/explode_true/object/allOf
+ parameters:
+ - explode: true
+ in: query
+ name: query_object
+ required: false
+ schema:
+ $ref: '#/components/schemas/DataQuery'
+ style: form
+ responses:
+ "200":
+ content:
+ text/plain:
+ schema:
+ type: string
+ description: Successful operation
+ summary: Test query parameter(s)
+ tags:
+ - query
+ x-accepts: text/plain
+ /query/style_deepObject/explode_true/object:
+ get:
+ description: Test query parameter(s)
+ operationId: test/query/style_deepObject/explode_true/object
+ parameters:
+ - explode: true
+ in: query
+ name: query_object
+ required: false
+ schema:
+ $ref: '#/components/schemas/Pet'
+ style: deepObject
+ responses:
+ "200":
+ content:
+ text/plain:
+ schema:
+ type: string
+ description: Successful operation
+ summary: Test query parameter(s)
+ tags:
+ - query
+ x-accepts: text/plain
+ /query/style_deepObject/explode_true/object/allOf:
+ get:
+ description: Test query parameter(s)
+ operationId: test/query/style_deepObject/explode_true/object/allOf
+ parameters:
+ - explode: true
+ in: query
+ name: query_object
+ required: false
+ schema:
+ $ref: '#/components/schemas/test_query_style_deepObject_explode_true_object_allOf_query_object_parameter'
+ style: deepObject
+ responses:
+ "200":
+ content:
+ text/plain:
+ schema:
+ type: string
+ description: Successful operation
+ summary: Test query parameter(s)
+ tags:
+ - query
+ x-accepts: text/plain
+ /body/application/octetstream/binary:
+ post:
+ description: Test body parameter(s)
+ operationId: test/body/application/octetstream/binary
+ requestBody:
+ content:
+ application/octet-stream:
+ schema:
+ format: binary
+ type: string
+ responses:
+ "200":
+ content:
+ text/plain:
+ schema:
+ type: string
+ description: Successful operation
+ summary: Test body parameter(s)
+ tags:
+ - body
+ x-content-type: application/octet-stream
+ x-accepts: text/plain
+ /echo/body/Pet:
+ post:
+ description: Test body parameter(s)
+ operationId: test/echo/body/Pet
+ requestBody:
+ $ref: '#/components/requestBodies/Pet'
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Pet'
+ description: Successful operation
+ summary: Test body parameter(s)
+ tags:
+ - body
+ x-content-type: application/json
+ x-accepts: application/json
+ /echo/body/allOf/Pet:
+ post:
+ description: Test body parameter(s)
+ operationId: test/echo/body/allOf/Pet
+ requestBody:
+ $ref: '#/components/requestBodies/AllOfPet'
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Pet'
+ description: Successful operation
+ summary: Test body parameter(s)
+ tags:
+ - body
+ x-content-type: application/json
+ x-accepts: application/json
+ /echo/body/Pet/response_string:
+ post:
+ description: Test empty response body
+ operationId: test/echo/body/Pet/response_string
+ requestBody:
+ $ref: '#/components/requestBodies/Pet'
+ responses:
+ "200":
+ content:
+ text/plain:
+ schema:
+ type: string
+ description: Successful operation
+ summary: Test empty response body
+ tags:
+ - body
+ x-content-type: application/json
+ x-accepts: text/plain
+ /echo/body/Tag/response_string:
+ post:
+ description: Test empty json (request body)
+ operationId: test/echo/body/Tag/response_string
+ requestBody:
+ $ref: '#/components/requestBodies/Tag'
+ responses:
+ "200":
+ content:
+ text/plain:
+ schema:
+ type: string
+ description: Successful operation
+ summary: Test empty json (request body)
+ tags:
+ - body
+ x-content-type: application/json
+ x-accepts: text/plain
+ /echo/body/FreeFormObject/response_string:
+ post:
+ description: Test free form object
+ operationId: test/echo/body/FreeFormObject/response_string
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: object
+ description: Free form object
+ responses:
+ "200":
+ content:
+ text/plain:
+ schema:
+ type: string
+ description: Successful operation
+ summary: Test free form object
+ tags:
+ - body
+ x-content-type: application/json
+ x-accepts: text/plain
+ /binary/gif:
+ post:
+ description: Test binary (gif) response body
+ operationId: test/binary/gif
+ responses:
+ "200":
+ content:
+ image/gif:
+ schema:
+ format: binary
+ type: string
+ description: Successful operation
+ summary: Test binary (gif) response body
+ tags:
+ - body
+ x-accepts: image/gif
+ /body/application/octetstream/single_binary:
+ post:
+ description: Test single binary in multipart mime
+ operationId: test/body/multipart/formdata/single_binary
requestBody:
content:
multipart/form-data:
schema:
- $ref: '#/components/schemas/uploadFile_request'
+ $ref: '#/components/schemas/test_body_multipart_formdata_single_binary_request'
+ responses:
+ "200":
+ content:
+ text/plain:
+ schema:
+ type: string
+ description: Successful operation
+ summary: Test single binary in multipart mime
+ tags:
+ - body
+ x-content-type: multipart/form-data
+ x-accepts: text/plain
+ /body/application/octetstream/array_of_binary:
+ post:
+ description: Test array of binary in multipart mime
+ operationId: test/body/multipart/formdata/array_of_binary
+ requestBody:
+ content:
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/test_body_multipart_formdata_array_of_binary_request'
+ responses:
+ "200":
+ content:
+ text/plain:
+ schema:
+ type: string
+ description: Successful operation
+ summary: Test array of binary in multipart mime
+ tags:
+ - body
+ x-content-type: multipart/form-data
+ x-accepts: text/plain
+ /auth/http/basic:
+ post:
+ description: To test HTTP basic authentication
+ operationId: test/auth/http/basic
responses:
"200":
content:
@@ -283,1106 +567,69 @@ paths:
type: string
description: Successful operation
security:
- - petstore_auth:
- - write:pets
- - read:pets
- summary: uploads an image
+ - http_auth: []
+ summary: To test HTTP basic authentication
tags:
- - pet
- x-content-type: multipart/form-data
+ - auth
x-accepts: text/plain
- /store/inventory:
- get:
- description: Returns a map of status codes to quantities
- operationId: getInventory
+ /auth/http/bearer:
+ post:
+ description: To test HTTP bearer authentication
+ operationId: test/auth/http/bearer
responses:
"200":
content:
- application/json:
- schema:
- additionalProperties:
- format: int32
- type: integer
- type: object
- description: successful operation
- security:
- - api_key: []
- summary: Returns pet inventories by status
- tags:
- - store
- x-webclient-blocking: false
- x-accepts: application/json
- /store/order:
- post:
- description: ""
- operationId: placeOrder
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Order'
- description: order placed for purchasing the pet
- required: true
- responses:
- "200":
- content:
- application/xml:
- schema:
- $ref: '#/components/schemas/Order'
- application/json:
- schema:
- $ref: '#/components/schemas/Order'
- description: successful operation
- "400":
- description: Invalid Order
- summary: Place an order for a pet
- tags:
- - store
- x-content-type: application/json
- x-accepts: application/json
- /store/order/{order_id}:
- delete:
- description: For valid response try integer IDs with value < 1000. Anything
- above 1000 or nonintegers will generate API errors
- operationId: deleteOrder
- parameters:
- - description: ID of the order that needs to be deleted
- explode: false
- in: path
- name: order_id
- required: true
- schema:
- type: string
- style: simple
- responses:
- "400":
- description: Invalid ID supplied
- "404":
- description: Order not found
- summary: Delete purchase order by ID
- tags:
- - store
- x-accepts: application/json
- get:
- description: For valid response try integer IDs with value <= 5 or > 10. Other
- values will generate exceptions
- operationId: getOrderById
- parameters:
- - description: ID of pet that needs to be fetched
- explode: false
- in: path
- name: order_id
- required: true
- schema:
- format: int64
- maximum: 5
- minimum: 1
- type: integer
- style: simple
- responses:
- "200":
- content:
- application/xml:
- schema:
- $ref: '#/components/schemas/Order'
- application/json:
- schema:
- $ref: '#/components/schemas/Order'
- description: successful operation
- "400":
- description: Invalid ID supplied
- "404":
- description: Order not found
- summary: Find purchase order by ID
- tags:
- - store
- x-accepts: application/json
- /user:
- post:
- description: This can only be done by the logged in user.
- operationId: createUser
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/User'
- description: Created user object
- required: true
- responses:
- default:
- description: successful operation
- summary: Create user
- tags:
- - user
- x-content-type: application/json
- x-accepts: application/json
- /user/createWithArray:
- post:
- description: ""
- operationId: createUsersWithArrayInput
- requestBody:
- $ref: '#/components/requestBodies/UserArray'
- responses:
- default:
- description: successful operation
- summary: Creates list of users with given input array
- tags:
- - user
- x-content-type: application/json
- x-accepts: application/json
- /user/createWithList:
- post:
- description: ""
- operationId: createUsersWithListInput
- requestBody:
- $ref: '#/components/requestBodies/UserArray'
- responses:
- default:
- description: successful operation
- summary: Creates list of users with given input array
- tags:
- - user
- x-content-type: application/json
- x-accepts: application/json
- /user/login:
- get:
- description: ""
- operationId: loginUser
- parameters:
- - description: The user name for login
- explode: true
- in: query
- name: username
- required: true
- schema:
- type: string
- style: form
- - description: The password for login in clear text
- explode: true
- in: query
- name: password
- required: true
- schema:
- type: string
- style: form
- responses:
- "200":
- content:
- application/xml:
+ text/plain:
schema:
type: string
- application/json:
- schema:
- type: string
- description: successful operation
- headers:
- X-Rate-Limit:
- description: calls per hour allowed by the user
- explode: false
- schema:
- format: int32
- type: integer
- style: simple
- X-Expires-After:
- description: date in UTC when token expires
- explode: false
- schema:
- format: date-time
- type: string
- style: simple
- "400":
- description: Invalid username/password supplied
- summary: Logs user into the system
- tags:
- - user
- x-accepts: application/json
- /user/logout:
- get:
- description: ""
- operationId: logoutUser
- responses:
- default:
- description: successful operation
- summary: Logs out current logged in user session
- tags:
- - user
- x-accepts: application/json
- /user/{username}:
- delete:
- description: This can only be done by the logged in user.
- operationId: deleteUser
- parameters:
- - description: The name that needs to be deleted
- explode: false
- in: path
- name: username
- required: true
- schema:
- type: string
- style: simple
- responses:
- "400":
- description: Invalid username supplied
- "404":
- description: User not found
- summary: Delete user
- tags:
- - user
- x-accepts: application/json
- get:
- description: ""
- operationId: getUserByName
- parameters:
- - description: The name that needs to be fetched. Use user1 for testing.
- explode: false
- in: path
- name: username
- required: true
- schema:
- type: string
- style: simple
- responses:
- "200":
- content:
- application/xml:
- schema:
- $ref: '#/components/schemas/User'
- application/json:
- schema:
- $ref: '#/components/schemas/User'
- description: successful operation
- "400":
- description: Invalid username supplied
- "404":
- description: User not found
- summary: Get user by user name
- tags:
- - user
- x-accepts: application/json
- put:
- description: This can only be done by the logged in user.
- operationId: updateUser
- parameters:
- - description: name that need to be deleted
- explode: false
- in: path
- name: username
- required: true
- schema:
- type: string
- style: simple
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/User'
- description: Updated user object
- required: true
- responses:
- "400":
- description: Invalid user supplied
- "404":
- description: User not found
- summary: Updated user
- tags:
- - user
- x-content-type: application/json
- x-accepts: application/json
- /fake_classname_test:
- patch:
- description: To test class name in snake case
- operationId: testClassname
- requestBody:
- $ref: '#/components/requestBodies/Client'
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Client'
- description: successful operation
+ description: Successful operation
security:
- - api_key_query: []
- summary: To test class name in snake case
+ - http_bearer_auth: []
+ summary: To test HTTP bearer authentication
tags:
- - fake_classname_tags 123#$%^
- x-content-type: application/json
- x-accepts: application/json
- /fake:
- delete:
- description: Fake endpoint to test group parameters (optional)
- operationId: testGroupParameters
- parameters:
- - description: Required String in group parameters
- explode: true
- in: query
- name: required_string_group
- required: true
- schema:
- type: integer
- style: form
- - description: Required Boolean in group parameters
- explode: false
- in: header
- name: required_boolean_group
- required: true
- schema:
- type: boolean
- style: simple
- - description: Required Integer in group parameters
- explode: true
- in: query
- name: required_int64_group
- required: true
- schema:
- format: int64
- type: integer
- style: form
- - description: String in group parameters
- explode: true
- in: query
- name: string_group
- required: false
- schema:
- type: integer
- style: form
- - description: Boolean in group parameters
- explode: false
- in: header
- name: boolean_group
- required: false
- schema:
- type: boolean
- style: simple
- - description: Integer in group parameters
- explode: true
- in: query
- name: int64_group
- required: false
- schema:
- format: int64
- type: integer
- style: form
- responses:
- "400":
- description: Something wrong
- security:
- - bearer_test: []
- summary: Fake endpoint to test group parameters (optional)
- tags:
- - fake
- x-group-parameters: true
- x-accepts: application/json
- get:
- description: To test enum parameters
- operationId: testEnumParameters
- parameters:
- - description: Header parameter enum test (string array)
- explode: false
- in: header
- name: enum_header_string_array
- required: false
- schema:
- items:
- default: $
- enum:
- - '>'
- - $
- type: string
- type: array
- style: simple
- - description: Header parameter enum test (string)
- explode: false
- in: header
- name: enum_header_string
- required: false
- schema:
- default: -efg
- enum:
- - _abc
- - -efg
- - (xyz)
- type: string
- style: simple
- - description: Query parameter enum test (string array)
- explode: true
- in: query
- name: enum_query_string_array
- required: false
- schema:
- items:
- default: $
- enum:
- - '>'
- - $
- type: string
- type: array
- style: form
- - description: Query parameter enum test (string)
- explode: true
- in: query
- name: enum_query_string
- required: false
- schema:
- default: -efg
- enum:
- - _abc
- - -efg
- - (xyz)
- type: string
- style: form
- - description: Query parameter enum test (double)
- explode: true
- in: query
- name: enum_query_integer
- required: false
- schema:
- enum:
- - 1
- - -2
- format: int32
- type: integer
- style: form
- - description: Query parameter enum test (double)
- explode: true
- in: query
- name: enum_query_double
- required: false
- schema:
- enum:
- - 1.1
- - -1.2
- format: double
- type: number
- style: form
- - explode: true
- in: query
- name: enum_query_model_array
- required: false
- schema:
- items:
- $ref: '#/components/schemas/EnumClass'
- type: array
- style: form
- requestBody:
- content:
- application/x-www-form-urlencoded:
- schema:
- $ref: '#/components/schemas/testEnumParameters_request'
- responses:
- "400":
- description: Invalid request
- "404":
- description: Not found
- summary: To test enum parameters
- tags:
- - fake
- x-content-type: application/x-www-form-urlencoded
- x-accepts: application/json
- patch:
- description: To test "client" model
- operationId: testClientModel
- requestBody:
- $ref: '#/components/requestBodies/Client'
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Client'
- description: successful operation
- summary: To test "client" model
- tags:
- - fake
- x-content-type: application/json
- x-accepts: application/json
- post:
- description: |
- Fake endpoint for testing various parameters
- 假端點
- 偽のエンドポイント
- 가짜 엔드 포인트
- operationId: testEndpointParameters
- requestBody:
- content:
- application/x-www-form-urlencoded:
- schema:
- $ref: '#/components/schemas/testEndpointParameters_request'
- responses:
- "400":
- description: Invalid username supplied
- "404":
- description: User not found
- security:
- - http_basic_test: []
- summary: |
- Fake endpoint for testing various parameters
- 假端點
- 偽のエンドポイント
- 가짜 엔드 포인트
- tags:
- - fake
- x-content-type: application/x-www-form-urlencoded
- x-accepts: application/json
- /fake/outer/number:
- post:
- description: Test serialization of outer number types
- operationId: fakeOuterNumberSerialize
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/OuterNumber'
- description: Input number as post body
- responses:
- "200":
- content:
- '*/*':
- schema:
- $ref: '#/components/schemas/OuterNumber'
- description: Output number
- tags:
- - fake
- x-content-type: application/json
- x-accepts: '*/*'
- /fake/property/enum-int:
- post:
- description: Test serialization of enum (int) properties with examples
- operationId: fakePropertyEnumIntegerSerialize
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/OuterObjectWithEnumProperty'
- description: Input enum (int) as post body
- required: true
- responses:
- "200":
- content:
- '*/*':
- schema:
- $ref: '#/components/schemas/OuterObjectWithEnumProperty'
- description: Output enum (int)
- tags:
- - fake
- x-content-type: application/json
- x-accepts: '*/*'
- /fake/outer/string:
- post:
- description: Test serialization of outer string types
- operationId: fakeOuterStringSerialize
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/OuterString'
- description: Input string as post body
- responses:
- "200":
- content:
- '*/*':
- schema:
- $ref: '#/components/schemas/OuterString'
- description: Output string
- tags:
- - fake
- x-content-type: application/json
- x-accepts: '*/*'
- /fake/outer/boolean:
- post:
- description: Test serialization of outer boolean types
- operationId: fakeOuterBooleanSerialize
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/OuterBoolean'
- description: Input boolean as post body
- responses:
- "200":
- content:
- '*/*':
- schema:
- $ref: '#/components/schemas/OuterBoolean'
- description: Output boolean
- tags:
- - fake
- x-content-type: application/json
- x-accepts: '*/*'
- /fake/outer/composite:
- post:
- description: Test serialization of object with outer number type
- operationId: fakeOuterCompositeSerialize
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/OuterComposite'
- description: Input composite as post body
- responses:
- "200":
- content:
- '*/*':
- schema:
- $ref: '#/components/schemas/OuterComposite'
- description: Output composite
- tags:
- - fake
- x-content-type: application/json
- x-accepts: '*/*'
- /fake/BigDecimalMap:
- get:
- description: "for Java apache and Java native, test toUrlQueryString for maps\
- \ with BegDecimal keys"
- operationId: fakeBigDecimalMap
- responses:
- "200":
- content:
- '*/*':
- schema:
- $ref: '#/components/schemas/fakeBigDecimalMap_200_response'
- description: successful operation
- tags:
- - fake
- x-accepts: '*/*'
- /fake/jsonFormData:
- get:
- description: ""
- operationId: testJsonFormData
- requestBody:
- content:
- application/x-www-form-urlencoded:
- schema:
- $ref: '#/components/schemas/testJsonFormData_request'
- responses:
- "200":
- description: successful operation
- summary: test json serialization of form data
- tags:
- - fake
- x-content-type: application/x-www-form-urlencoded
- x-accepts: application/json
- /fake/inline-additionalProperties:
- post:
- description: ""
- operationId: testInlineAdditionalProperties
- requestBody:
- content:
- application/json:
- schema:
- additionalProperties:
- type: string
- type: object
- description: request body
- required: true
- responses:
- "200":
- description: successful operation
- summary: test inline additionalProperties
- tags:
- - fake
- x-content-type: application/json
- x-accepts: application/json
- /fake/inline-freeform-additionalProperties:
- post:
- description: ""
- operationId: testInlineFreeformAdditionalProperties
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/testInlineFreeformAdditionalProperties_request'
- description: request body
- required: true
- responses:
- "200":
- description: successful operation
- summary: test inline free-form additionalProperties
- tags:
- - fake
- x-content-type: application/json
- x-accepts: application/json
- /fake/nullable:
- post:
- description: ""
- operationId: testNullable
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ChildWithNullable'
- description: request body
- required: true
- responses:
- "200":
- description: successful operation
- summary: test nullable parent property
- tags:
- - fake
- x-content-type: application/json
- x-accepts: application/json
- /fake/body-with-query-params:
- put:
- operationId: testBodyWithQueryParams
- parameters:
- - explode: true
- in: query
- name: query
- required: true
- schema:
- type: string
- style: form
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/User'
- required: true
- responses:
- "200":
- description: Success
- tags:
- - fake
- x-content-type: application/json
- x-accepts: application/json
- /another-fake/dummy:
- patch:
- description: To test special tags and operation ID starting with number
- operationId: 123_test_@#$%_special_tags
- requestBody:
- $ref: '#/components/requestBodies/Client'
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Client'
- description: successful operation
- summary: To test special tags
- tags:
- - $another-fake?
- x-content-type: application/json
- x-accepts: application/json
- /fake/body-with-file-schema:
- put:
- description: "For this test, the body for this request must reference a schema\
- \ named `File`."
- operationId: testBodyWithFileSchema
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/FileSchemaTestClass'
- required: true
- responses:
- "200":
- description: Success
- tags:
- - fake
- x-content-type: application/json
- x-accepts: application/json
- /fake/body-with-binary:
- put:
- description: "For this test, the body has to be a binary file."
- operationId: testBodyWithBinary
- requestBody:
- content:
- image/png:
- schema:
- format: binary
- nullable: true
- type: string
- description: image to upload
- required: true
- responses:
- "200":
- description: Success
- tags:
- - fake
- x-content-type: image/png
- x-accepts: application/json
- /fake/test-query-parameters:
- put:
- description: To test the collection format in query parameters
- operationId: testQueryParameterCollectionFormat
- parameters:
- - explode: false
- in: query
- name: pipe
- required: true
- schema:
- items:
- type: string
- type: array
- style: pipeDelimited
- - explode: false
- in: query
- name: ioutil
- required: true
- schema:
- items:
- type: string
- type: array
- style: form
- - explode: false
- in: query
- name: http
- required: true
- schema:
- items:
- type: string
- type: array
- style: spaceDelimited
- - explode: false
- in: query
- name: url
- required: true
- schema:
- items:
- type: string
- type: array
- style: form
- - explode: true
- in: query
- name: context
- required: true
- schema:
- items:
- type: string
- type: array
- style: form
- - explode: true
- in: query
- name: language
- required: false
- schema:
- additionalProperties:
- format: string
- type: string
- type: object
- style: form
- - allowEmptyValue: true
- explode: true
- in: query
- name: allowEmpty
- required: true
- schema:
- type: string
- style: form
- responses:
- "200":
- description: Success
- tags:
- - fake
- x-accepts: application/json
- /fake/{petId}/uploadImageWithRequiredFile:
- post:
- description: ""
- operationId: uploadFileWithRequiredFile
- parameters:
- - description: ID of pet to update
- explode: false
- in: path
- name: petId
- required: true
- schema:
- format: int64
- type: integer
- style: simple
- requestBody:
- content:
- multipart/form-data:
- schema:
- $ref: '#/components/schemas/uploadFileWithRequiredFile_request'
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponse'
- description: successful operation
- security:
- - petstore_auth:
- - write:pets
- - read:pets
- summary: uploads an image (required)
- tags:
- - pet
- x-content-type: multipart/form-data
- x-accepts: application/json
- /fake/health:
- get:
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/HealthCheckResult'
- description: The instance started successfully
- summary: Health check endpoint
- tags:
- - fake
- x-accepts: application/json
- /fake/http-signature-test:
- get:
- operationId: fake-http-signature-test
- parameters:
- - description: query parameter
- explode: true
- in: query
- name: query_1
- required: false
- schema:
- type: string
- style: form
- - description: header parameter
- explode: false
- in: header
- name: header_1
- required: false
- schema:
- type: string
- style: simple
- requestBody:
- $ref: '#/components/requestBodies/Pet'
- responses:
- "200":
- description: The instance started successfully
- security:
- - http_signature_test: []
- summary: test http signature authentication
- tags:
- - fake
- x-content-type: application/json
- x-accepts: application/json
+ - auth
+ x-accepts: text/plain
components:
requestBodies:
- UserArray:
- content:
- application/json:
- schema:
- items:
- $ref: '#/components/schemas/User'
- type: array
- description: List of user object
- required: true
- Client:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Client'
- description: client model
- required: true
Pet:
content:
application/json:
schema:
$ref: '#/components/schemas/Pet'
- application/xml:
- schema:
- $ref: '#/components/schemas/Pet'
description: Pet object that needs to be added to the store
- required: true
+ AllOfPet:
+ content:
+ application/json:
+ schema:
+ allOf:
+ - $ref: '#/components/schemas/Pet'
+ description: Pet object that needs to be added to the store
+ Tag:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Tag'
+ description: Tag object
schemas:
- Foo:
- example:
- bar: bar
- properties:
- bar:
- default: bar
- type: string
- type: object
- Bar:
- default: bar
- type: string
- Order:
- example:
- petId: 6
- quantity: 1
- id: 0
- shipDate: 2000-01-23T04:56:07.000+00:00
- complete: false
- status: placed
- properties:
- id:
- format: int64
- type: integer
- petId:
- format: int64
- type: integer
- quantity:
- format: int32
- type: integer
- shipDate:
- format: date-time
- type: string
- status:
- description: Order Status
- enum:
- - placed
- - approved
- - delivered
- type: string
- complete:
- default: false
- type: boolean
- type: object
- xml:
- name: Order
Category:
example:
- name: default-name
- id: 6
- properties:
- id:
- format: int64
- type: integer
- name:
- default: default-name
- type: string
- required:
- - name
- type: object
- xml:
- name: Category
- User:
- example:
- firstName: firstName
- lastName: lastName
- password: password
- userStatus: 6
- phone: phone
- id: 0
- email: email
- username: username
- properties:
- id:
- format: int64
- type: integer
- x-is-unique: true
- username:
- type: string
- firstName:
- type: string
- lastName:
- type: string
- email:
- type: string
- password:
- type: string
- phone:
- type: string
- userStatus:
- description: User Status
- format: int32
- type: integer
- type: object
- xml:
- name: User
- Tag:
- example:
- name: name
+ name: Dogs
id: 1
+ properties:
+ id:
+ example: 1
+ format: int64
+ type: integer
+ name:
+ example: Dogs
+ type: string
+ type: object
+ xml:
+ name: category
+ Tag:
+ example:
+ name: name
+ id: 0
properties:
id:
format: int64
@@ -1391,47 +638,46 @@ components:
type: string
type: object
xml:
- name: Tag
+ name: tag
Pet:
example:
photoUrls:
- photoUrls
- photoUrls
name: doggie
- id: 0
+ id: 10
category:
- name: default-name
- id: 6
+ name: Dogs
+ id: 1
tags:
- name: name
- id: 1
+ id: 0
- name: name
- id: 1
+ id: 0
status: available
properties:
id:
+ example: 10
format: int64
type: integer
- x-is-unique: true
- category:
- $ref: '#/components/schemas/Category'
name:
example: doggie
type: string
+ category:
+ $ref: '#/components/schemas/Category'
photoUrls:
items:
type: string
+ xml:
+ name: photoUrl
type: array
- uniqueItems: true
xml:
- name: photoUrl
wrapped: true
tags:
items:
$ref: '#/components/schemas/Tag'
type: array
xml:
- name: tag
wrapped: true
status:
description: pet status in the store
@@ -1445,766 +691,182 @@ components:
- photoUrls
type: object
xml:
- name: Pet
- ApiResponse:
- example:
- code: 0
- type: type
- message: message
+ name: pet
+ StringEnumRef:
+ enum:
+ - success
+ - failure
+ - unclassified
+ type: string
+ DefaultValue:
+ description: to test the default value of properties
properties:
- code:
- format: int32
- type: integer
- type:
- type: string
- message:
+ array_string_enum_ref_default:
+ default:
+ - success
+ - failure
+ items:
+ $ref: '#/components/schemas/StringEnumRef'
+ type: array
+ array_string_enum_default:
+ default:
+ - success
+ - failure
+ items:
+ enum:
+ - success
+ - failure
+ - unclassified
+ type: string
+ type: array
+ array_string_default:
+ default:
+ - failure
+ - skipped
+ items:
+ type: string
+ type: array
+ array_integer_default:
+ default:
+ - 1
+ - 3
+ items:
+ type: integer
+ type: array
+ array_string:
+ items:
+ type: string
+ type: array
+ array_string_nullable:
+ items:
+ type: string
+ nullable: true
+ type: array
+ array_string_extension_nullable:
+ items:
+ type: string
+ type: array
+ x-nullable: true
+ string_nullable:
+ nullable: true
type: string
type: object
- Return:
- description: Model for testing reserved words
+ Bird:
properties:
- return:
- format: int32
- type: integer
- xml:
- name: Return
- Name:
- description: Model for testing model name same as property name
- properties:
- name:
- format: int32
- type: integer
- snake_case:
- format: int32
- readOnly: true
- type: integer
- property:
- type: string
- "123Number":
- readOnly: true
- type: integer
- required:
- - name
- xml:
- name: Name
- "200_response":
- description: Model for testing model name starting with number
- properties:
- name:
- format: int32
- type: integer
- class:
- type: string
- xml:
- name: Name
- ClassModel:
- description: Model for testing model with "_class" property
- properties:
- _class:
- type: string
- Dog:
- allOf:
- - $ref: '#/components/schemas/Animal'
- - properties:
- breed:
- type: string
- type: object
- Cat:
- allOf:
- - $ref: '#/components/schemas/Animal'
- - properties:
- declawed:
- type: boolean
- type: object
- Animal:
- discriminator:
- mapping:
- DOG: '#/components/schemas/Dog'
- CAT: '#/components/schemas/Cat'
- propertyName: className
- properties:
- className:
+ size:
type: string
color:
- default: red
- type: string
- required:
- - className
- type: object
- AnimalFarm:
- items:
- $ref: '#/components/schemas/Animal'
- type: array
- format_test:
- properties:
- integer:
- maximum: 100
- minimum: 10
- type: integer
- int32:
- format: int32
- maximum: 200
- minimum: 20
- type: integer
- int64:
- format: int64
- type: integer
- number:
- maximum: 543.2
- minimum: 32.1
- type: number
- float:
- format: float
- maximum: 987.6
- minimum: 54.3
- type: number
- double:
- format: double
- maximum: 123.4
- minimum: 67.8
- type: number
- decimal:
- format: number
- type: string
- string:
- pattern: "/[a-z]/i"
- type: string
- byte:
- format: byte
- type: string
- binary:
- format: binary
- type: string
- date:
- format: date
- type: string
- dateTime:
- format: date-time
- type: string
- uuid:
- example: 72f98069-206d-4f12-9f12-3d1e525a8e84
- format: uuid
- type: string
- password:
- format: password
- maxLength: 64
- minLength: 10
- type: string
- pattern_with_digits:
- description: A string that is a 10 digit number. Can have leading zeros.
- pattern: "^\\d{10}$"
- type: string
- pattern_with_digits_and_delimiter:
- description: A string starting with 'image_' (case insensitive) and one
- to three digits following i.e. Image_01.
- pattern: "/^image_\\d{1,3}$/i"
- type: string
- required:
- - byte
- - date
- - number
- - password
- type: object
- EnumClass:
- default: -efg
- enum:
- - _abc
- - -efg
- - (xyz)
- type: string
- Enum_Test:
- properties:
- enum_string:
- enum:
- - UPPER
- - lower
- - ""
- type: string
- enum_string_required:
- enum:
- - UPPER
- - lower
- - ""
- type: string
- enum_integer:
- enum:
- - 1
- - -1
- format: int32
- type: integer
- enum_number:
- enum:
- - 1.1
- - -1.2
- format: double
- type: number
- outerEnum:
- $ref: '#/components/schemas/OuterEnum'
- outerEnumInteger:
- $ref: '#/components/schemas/OuterEnumInteger'
- outerEnumDefaultValue:
- $ref: '#/components/schemas/OuterEnumDefaultValue'
- outerEnumIntegerDefaultValue:
- $ref: '#/components/schemas/OuterEnumIntegerDefaultValue'
- required:
- - enum_string_required
- type: object
- AdditionalPropertiesClass:
- properties:
- map_property:
- additionalProperties:
- type: string
- type: object
- map_of_map_property:
- additionalProperties:
- additionalProperties:
- type: string
- type: object
- type: object
- type: object
- MixedPropertiesAndAdditionalPropertiesClass:
- properties:
- uuid:
- format: uuid
- type: string
- dateTime:
- format: date-time
- type: string
- map:
- additionalProperties:
- $ref: '#/components/schemas/Animal'
- type: object
- type: object
- List:
- properties:
- "123-list":
type: string
type: object
- Client:
- example:
- client: client
+ Query:
properties:
- client:
- type: string
- type: object
- ReadOnlyFirst:
- properties:
- bar:
- readOnly: true
- type: string
- baz:
- type: string
- type: object
- hasOnlyReadOnly:
- properties:
- bar:
- readOnly: true
- type: string
- foo:
- readOnly: true
- type: string
- type: object
- Capitalization:
- properties:
- smallCamel:
- type: string
- CapitalCamel:
- type: string
- small_Snake:
- type: string
- Capital_Snake:
- type: string
- SCA_ETH_Flow_Points:
- type: string
- ATT_NAME:
- description: |
- Name of the pet
- type: string
- type: object
- MapTest:
- properties:
- map_map_of_string:
- additionalProperties:
- additionalProperties:
- type: string
- type: object
- type: object
- map_of_enum_string:
- additionalProperties:
- enum:
- - UPPER
- - lower
- type: string
- type: object
- direct_map:
- additionalProperties:
- type: boolean
- type: object
- indirect_map:
- additionalProperties:
- type: boolean
- type: object
- type: object
- ArrayTest:
- properties:
- array_of_string:
- items:
- type: string
- maxItems: 3
- minItems: 0
- type: array
- array_array_of_integer:
- items:
- items:
- format: int64
- type: integer
- type: array
- type: array
- array_array_of_model:
- items:
- items:
- $ref: '#/components/schemas/ReadOnlyFirst'
- type: array
- type: array
- type: object
- NumberOnly:
- properties:
- JustNumber:
- type: number
- type: object
- ArrayOfNumberOnly:
- properties:
- ArrayNumber:
- items:
- type: number
- type: array
- type: object
- ArrayOfArrayOfNumberOnly:
- properties:
- ArrayArrayNumber:
- items:
- items:
- type: number
- type: array
- type: array
- type: object
- EnumArrays:
- properties:
- just_symbol:
- enum:
- - '>='
- - $
- type: string
- array_enum:
- items:
- enum:
- - fish
- - crab
- type: string
- type: array
- type: object
- OuterEnum:
- enum:
- - placed
- - approved
- - delivered
- nullable: true
- type: string
- OuterEnumInteger:
- enum:
- - 0
- - 1
- - 2
- example: 2
- type: integer
- OuterEnumDefaultValue:
- default: placed
- enum:
- - placed
- - approved
- - delivered
- type: string
- OuterEnumIntegerDefaultValue:
- default: 0
- enum:
- - 0
- - 1
- - 2
- type: integer
- OuterComposite:
- example:
- my_string: my_string
- my_number: 0.8008281904610115
- my_boolean: true
- properties:
- my_number:
- type: number
- my_string:
- type: string
- my_boolean:
- type: boolean
- x-codegen-body-parameter-name: boolean_post_body
- type: object
- OuterNumber:
- type: number
- OuterString:
- type: string
- OuterBoolean:
- type: boolean
- x-codegen-body-parameter-name: boolean_post_body
- ParentWithNullable:
- discriminator:
- propertyName: type
- properties:
- type:
- enum:
- - ChildWithNullable
- type: string
- nullableProperty:
- nullable: true
- type: string
- type: object
- ChildWithNullable:
- allOf:
- - $ref: '#/components/schemas/ParentWithNullable'
- - properties:
- otherProperty:
- type: string
- type: object
- StringBooleanMap:
- additionalProperties:
- type: boolean
- type: object
- FileSchemaTestClass:
- example:
- file:
- sourceURI: sourceURI
- files:
- - sourceURI: sourceURI
- - sourceURI: sourceURI
- properties:
- file:
- $ref: '#/components/schemas/File'
- files:
- items:
- $ref: '#/components/schemas/File'
- type: array
- type: object
- File:
- description: Must be named `File` for test.
- example:
- sourceURI: sourceURI
- properties:
- sourceURI:
- description: Test capitalization
- type: string
- type: object
- _special_model.name_:
- properties:
- $special[property.name]:
- format: int64
- type: integer
- xml:
- name: "$special[model.name]"
- HealthCheckResult:
- description: Just a string to inform instance is up and running. Make it nullable
- in hope to get it as pointer in generated model.
- example:
- NullableMessage: NullableMessage
- properties:
- NullableMessage:
- nullable: true
- type: string
- type: object
- NullableClass:
- additionalProperties:
- nullable: true
- type: object
- properties:
- integer_prop:
- nullable: true
- type: integer
- number_prop:
- nullable: true
- type: number
- boolean_prop:
- nullable: true
- type: boolean
- string_prop:
- nullable: true
- type: string
- date_prop:
- format: date
- nullable: true
- type: string
- datetime_prop:
- format: date-time
- nullable: true
- type: string
- array_nullable_prop:
- items:
- type: object
- nullable: true
- type: array
- array_and_items_nullable_prop:
- items:
- nullable: true
- type: object
- nullable: true
- type: array
- array_items_nullable:
- items:
- nullable: true
- type: object
- type: array
- object_nullable_prop:
- additionalProperties:
- type: object
- nullable: true
- type: object
- object_and_items_nullable_prop:
- additionalProperties:
- nullable: true
- type: object
- nullable: true
- type: object
- object_items_nullable:
- additionalProperties:
- nullable: true
- type: object
- type: object
- type: object
- OuterObjectWithEnumProperty:
- example:
- value: 2
- properties:
- value:
- $ref: '#/components/schemas/OuterEnumInteger'
- required:
- - value
- type: object
- DeprecatedObject:
- deprecated: true
- properties:
- name:
- type: string
- type: object
- ObjectWithDeprecatedFields:
- properties:
- uuid:
- type: string
id:
- deprecated: true
- type: number
- deprecatedRef:
- $ref: '#/components/schemas/DeprecatedObject'
- bars:
- deprecated: true
- items:
- $ref: '#/components/schemas/Bar'
- type: array
- type: object
- AllOfWithSingleRef:
- properties:
- username:
- type: string
- SingleRefType:
- allOf:
- - $ref: '#/components/schemas/SingleRefType'
- type: object
- SingleRefType:
- enum:
- - admin
- - user
- title: SingleRefType
- type: string
- _foo_get_default_response:
- example:
- string:
- bar: bar
- properties:
- string:
- $ref: '#/components/schemas/Foo'
- type: object
- updatePetWithForm_request:
- properties:
- name:
- description: Updated name of the pet
- type: string
- status:
- description: Updated status of the pet
- type: string
- type: object
- uploadFile_request:
- properties:
- additionalMetadata:
- description: Additional data to pass to server
- type: string
- file:
- description: file to upload
- format: binary
- type: string
- type: object
- testEnumParameters_request:
- properties:
- enum_form_string_array:
- description: Form parameter enum test (string array)
- items:
- default: $
- enum:
- - '>'
- - $
- type: string
- type: array
- enum_form_string:
- default: -efg
- description: Form parameter enum test (string)
- enum:
- - _abc
- - -efg
- - (xyz)
- type: string
- type: object
- testEndpointParameters_request:
- properties:
- integer:
- description: None
- maximum: 100
- minimum: 10
- type: integer
- int32:
- description: None
- format: int32
- maximum: 200
- minimum: 20
- type: integer
- int64:
- description: None
+ description: Query
format: int64
type: integer
+ outcomes:
+ default:
+ - SUCCESS
+ - FAILURE
+ items:
+ enum:
+ - SUCCESS
+ - FAILURE
+ - SKIPPED
+ type: string
+ type: array
+ type: object
+ x-parent: true
+ DataQuery:
+ allOf:
+ - properties:
+ suffix:
+ description: test suffix
+ type: string
+ text:
+ description: Some text containing white spaces
+ example: Some text
+ type: string
+ date:
+ description: A date
+ format: date-time
+ type: string
+ type: object
+ - $ref: '#/components/schemas/Query'
+ NumberPropertiesOnly:
+ properties:
number:
- description: None
- maximum: 543.2
- minimum: 32.1
type: number
float:
- description: None
format: float
- maximum: 987.6
type: number
double:
- description: None
format: double
- maximum: 123.4
- minimum: 67.8
+ maximum: 50.2
+ minimum: 0.8
type: number
- string:
- description: None
- pattern: "/[a-z]/i"
+ type: object
+ test_form_integer_boolean_string_request:
+ properties:
+ integer_form:
+ type: integer
+ boolean_form:
+ type: boolean
+ string_form:
type: string
- pattern_without_delimiter:
- description: None
- pattern: "^[A-Z].*"
+ type: object
+ test_form_oneof_request_oneOf:
+ properties:
+ form1:
type: string
- byte:
- description: None
- format: byte
+ form2:
+ type: integer
+ type: object
+ test_form_oneof_request_oneOf_1:
+ properties:
+ form3:
type: string
- binary:
- description: None
+ form4:
+ type: boolean
+ type: object
+ test_form_oneof_request:
+ oneOf:
+ - $ref: '#/components/schemas/test_form_oneof_request_oneOf'
+ - $ref: '#/components/schemas/test_form_oneof_request_oneOf_1'
+ - $ref: '#/components/schemas/Tag'
+ type: object
+ test_query_style_form_explode_true_array_string_query_object_parameter:
+ properties:
+ values:
+ items:
+ type: string
+ type: array
+ type: object
+ test_query_style_deepObject_explode_true_object_allOf_query_object_parameter:
+ allOf:
+ - $ref: '#/components/schemas/Bird'
+ - $ref: '#/components/schemas/Category'
+ test_body_multipart_formdata_single_binary_request:
+ properties:
+ my-file:
format: binary
type: string
- date:
- description: None
- format: date
- type: string
- dateTime:
- description: None
- format: date-time
- type: string
- password:
- description: None
- format: password
- maxLength: 64
- minLength: 10
- type: string
- callback:
- description: None
- type: string
+ type: object
+ test_body_multipart_formdata_array_of_binary_request:
+ properties:
+ files:
+ items:
+ format: binary
+ type: string
+ type: array
required:
- - byte
- - double
- - number
- - pattern_without_delimiter
- type: object
- fakeBigDecimalMap_200_response:
- example:
- someId: 0.8008281904610115
- someMap:
- key: 6.027456183070403
- properties:
- someId:
- type: number
- someMap:
- additionalProperties:
- type: number
- type: object
- type: object
- testJsonFormData_request:
- properties:
- param:
- description: field1
- type: string
- param2:
- description: field2
- type: string
- required:
- - param
- - param2
- type: object
- testInlineFreeformAdditionalProperties_request:
- additionalProperties: true
- properties:
- someProperty:
- type: string
- type: object
- uploadFileWithRequiredFile_request:
- properties:
- additionalMetadata:
- description: Additional data to pass to server
- type: string
- requiredFile:
- description: file to upload
- format: binary
- type: string
- required:
- - requiredFile
+ - files
type: object
securitySchemes:
- petstore_auth:
- flows:
- implicit:
- authorizationUrl: http://petstore.swagger.io/api/oauth/dialog
- scopes:
- write:pets: modify pets in your account
- read:pets: read your pets
- type: oauth2
- api_key:
- in: header
- name: api_key
- type: apiKey
- api_key_query:
- in: query
- name: api_key_query
- type: apiKey
- http_basic_test:
+ http_auth:
scheme: basic
type: http
- bearer_test:
- bearerFormat: JWT
+ http_bearer_auth:
scheme: bearer
type: http
- http_signature_test:
- scheme: signature
- type: http
diff --git a/samples/client/petstore/java/resteasy-echo/build.gradle b/samples/client/petstore/java/resteasy-echo/build.gradle
index 464088b0b6d..62d43afabd0 100644
--- a/samples/client/petstore/java/resteasy-echo/build.gradle
+++ b/samples/client/petstore/java/resteasy-echo/build.gradle
@@ -2,7 +2,7 @@ apply plugin: 'idea'
apply plugin: 'eclipse'
group = 'org.openapitools'
-version = '1.0.0'
+version = '0.1.0'
buildscript {
repositories {
diff --git a/samples/client/petstore/java/resteasy-echo/build.sbt b/samples/client/petstore/java/resteasy-echo/build.sbt
index a018921d92e..0c31d90292c 100644
--- a/samples/client/petstore/java/resteasy-echo/build.sbt
+++ b/samples/client/petstore/java/resteasy-echo/build.sbt
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "org.openapitools",
name := "petstore-resteasy-echo",
- version := "1.0.0",
+ version := "0.1.0",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
diff --git a/samples/client/petstore/java/resteasy-echo/docs/AdditionalPropertiesClass.md b/samples/client/petstore/java/resteasy-echo/docs/AdditionalPropertiesClass.md
deleted file mode 100644
index fe69a56eebf..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/AdditionalPropertiesClass.md
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-# AdditionalPropertiesClass
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**mapProperty** | **Map<String, String>** | | [optional] |
-|**mapOfMapProperty** | **Map<String, Map<String, String>>** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/AllOfWithSingleRef.md b/samples/client/petstore/java/resteasy-echo/docs/AllOfWithSingleRef.md
deleted file mode 100644
index 4146d56a372..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/AllOfWithSingleRef.md
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-# AllOfWithSingleRef
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**username** | **String** | | [optional] |
-|**singleRefType** | **SingleRefType** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/AnotherFakeApi.md b/samples/client/petstore/java/resteasy-echo/docs/AnotherFakeApi.md
deleted file mode 100644
index c07f9fce1be..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/AnotherFakeApi.md
+++ /dev/null
@@ -1,75 +0,0 @@
-# AnotherFakeApi
-
-All URIs are relative to *http://localhost:3000*
-
-| Method | HTTP request | Description |
-|------------- | ------------- | -------------|
-| [**call123testSpecialTags**](AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags |
-
-
-
-## call123testSpecialTags
-
-> Client call123testSpecialTags(client)
-
-To test special tags
-
-To test special tags and operation ID starting with number
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.AnotherFakeApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- AnotherFakeApi apiInstance = new AnotherFakeApi(defaultClient);
- Client client = new Client(); // Client | client model
- try {
- Client result = apiInstance.call123testSpecialTags(client);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **client** | [**Client**](Client.md)| client model | |
-
-### Return type
-
-[**Client**](Client.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
-- **Content-Type**: application/json
-- **Accept**: application/json
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | successful operation | - |
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/java/resteasy-echo/docs/ArrayOfArrayOfNumberOnly.md
deleted file mode 100644
index 0188db3eb13..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/ArrayOfArrayOfNumberOnly.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-# ArrayOfArrayOfNumberOnly
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**arrayArrayNumber** | **List<List<BigDecimal>>** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/ArrayTest.md b/samples/client/petstore/java/resteasy-echo/docs/ArrayTest.md
deleted file mode 100644
index 36077c9df30..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/ArrayTest.md
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-# ArrayTest
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**arrayOfString** | **List<String>** | | [optional] |
-|**arrayArrayOfInteger** | **List<List<Long>>** | | [optional] |
-|**arrayArrayOfModel** | **List<List<ReadOnlyFirst>>** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/AuthApi.md b/samples/client/petstore/java/resteasy-echo/docs/AuthApi.md
new file mode 100644
index 00000000000..de3353d43a2
--- /dev/null
+++ b/samples/client/petstore/java/resteasy-echo/docs/AuthApi.md
@@ -0,0 +1,145 @@
+# AuthApi
+
+All URIs are relative to *http://localhost:3000*
+
+| Method | HTTP request | Description |
+|------------- | ------------- | -------------|
+| [**testAuthHttpBasic**](AuthApi.md#testAuthHttpBasic) | **POST** /auth/http/basic | To test HTTP basic authentication |
+| [**testAuthHttpBearer**](AuthApi.md#testAuthHttpBearer) | **POST** /auth/http/bearer | To test HTTP bearer authentication |
+
+
+
+## testAuthHttpBasic
+
+> String testAuthHttpBasic()
+
+To test HTTP basic authentication
+
+To test HTTP basic authentication
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.AuthApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://localhost:3000");
+
+ // Configure HTTP basic authorization: http_auth
+ HttpBasicAuth http_auth = (HttpBasicAuth) defaultClient.getAuthentication("http_auth");
+ http_auth.setUsername("YOUR USERNAME");
+ http_auth.setPassword("YOUR PASSWORD");
+
+ AuthApi apiInstance = new AuthApi(defaultClient);
+ try {
+ String result = apiInstance.testAuthHttpBasic();
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling AuthApi#testAuthHttpBasic");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+This endpoint does not need any parameter.
+
+### Return type
+
+**String**
+
+### Authorization
+
+[http_auth](../README.md#http_auth)
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: text/plain
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Successful operation | - |
+
+
+## testAuthHttpBearer
+
+> String testAuthHttpBearer()
+
+To test HTTP bearer authentication
+
+To test HTTP bearer authentication
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.AuthApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://localhost:3000");
+
+ // Configure HTTP bearer authorization: http_bearer_auth
+ HttpBearerAuth http_bearer_auth = (HttpBearerAuth) defaultClient.getAuthentication("http_bearer_auth");
+ http_bearer_auth.setBearerToken("BEARER TOKEN");
+
+ AuthApi apiInstance = new AuthApi(defaultClient);
+ try {
+ String result = apiInstance.testAuthHttpBearer();
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling AuthApi#testAuthHttpBearer");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+This endpoint does not need any parameter.
+
+### Return type
+
+**String**
+
+### Authorization
+
+[http_bearer_auth](../README.md#http_bearer_auth)
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: text/plain
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Successful operation | - |
+
diff --git a/samples/client/petstore/java/resteasy-echo/docs/Animal.md b/samples/client/petstore/java/resteasy-echo/docs/Bird.md
similarity index 77%
rename from samples/client/petstore/java/resteasy-echo/docs/Animal.md
rename to samples/client/petstore/java/resteasy-echo/docs/Bird.md
index d9b32f14c88..2a6f8a660d6 100644
--- a/samples/client/petstore/java/resteasy-echo/docs/Animal.md
+++ b/samples/client/petstore/java/resteasy-echo/docs/Bird.md
@@ -1,13 +1,13 @@
-# Animal
+# Bird
## Properties
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
-|**className** | **String** | | |
+|**size** | **String** | | [optional] |
|**color** | **String** | | [optional] |
diff --git a/samples/client/petstore/java/resteasy-echo/docs/PetApi.md b/samples/client/petstore/java/resteasy-echo/docs/BodyApi.md
similarity index 50%
rename from samples/client/petstore/java/resteasy-echo/docs/PetApi.md
rename to samples/client/petstore/java/resteasy-echo/docs/BodyApi.md
index 471e3947816..3cf2014e31f 100644
--- a/samples/client/petstore/java/resteasy-echo/docs/PetApi.md
+++ b/samples/client/petstore/java/resteasy-echo/docs/BodyApi.md
@@ -1,28 +1,28 @@
-# PetApi
+# BodyApi
All URIs are relative to *http://localhost:3000*
| Method | HTTP request | Description |
|------------- | ------------- | -------------|
-| [**addPet**](PetApi.md#addPet) | **POST** /pet | Add a new pet to the store |
-| [**deletePet**](PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet |
-| [**findPetsByStatus**](PetApi.md#findPetsByStatus) | **GET** /pet/findByStatus | Finds Pets by status |
-| [**findPetsByTags**](PetApi.md#findPetsByTags) | **GET** /pet/findByTags | Finds Pets by tags |
-| [**getPetById**](PetApi.md#getPetById) | **GET** /pet/{petId} | Find pet by ID |
-| [**updatePet**](PetApi.md#updatePet) | **PUT** /pet | Update an existing pet |
-| [**updatePetWithForm**](PetApi.md#updatePetWithForm) | **POST** /pet/{petId} | Updates a pet in the store with form data |
-| [**uploadFile**](PetApi.md#uploadFile) | **POST** /pet/{petId}/uploadImage | uploads an image |
-| [**uploadFileWithRequiredFile**](PetApi.md#uploadFileWithRequiredFile) | **POST** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required) |
+| [**testBinaryGif**](BodyApi.md#testBinaryGif) | **POST** /binary/gif | Test binary (gif) response body |
+| [**testBodyApplicationOctetstreamBinary**](BodyApi.md#testBodyApplicationOctetstreamBinary) | **POST** /body/application/octetstream/binary | Test body parameter(s) |
+| [**testBodyMultipartFormdataArrayOfBinary**](BodyApi.md#testBodyMultipartFormdataArrayOfBinary) | **POST** /body/application/octetstream/array_of_binary | Test array of binary in multipart mime |
+| [**testBodyMultipartFormdataSingleBinary**](BodyApi.md#testBodyMultipartFormdataSingleBinary) | **POST** /body/application/octetstream/single_binary | Test single binary in multipart mime |
+| [**testEchoBodyAllOfPet**](BodyApi.md#testEchoBodyAllOfPet) | **POST** /echo/body/allOf/Pet | Test body parameter(s) |
+| [**testEchoBodyFreeFormObjectResponseString**](BodyApi.md#testEchoBodyFreeFormObjectResponseString) | **POST** /echo/body/FreeFormObject/response_string | Test free form object |
+| [**testEchoBodyPet**](BodyApi.md#testEchoBodyPet) | **POST** /echo/body/Pet | Test body parameter(s) |
+| [**testEchoBodyPetResponseString**](BodyApi.md#testEchoBodyPetResponseString) | **POST** /echo/body/Pet/response_string | Test empty response body |
+| [**testEchoBodyTagResponseString**](BodyApi.md#testEchoBodyTagResponseString) | **POST** /echo/body/Tag/response_string | Test empty json (request body) |
-## addPet
+## testBinaryGif
-> addPet(pet)
-
-Add a new pet to the store
+> File testBinaryGif()
+Test binary (gif) response body
+Test binary (gif) response body
### Example
@@ -31,25 +31,20 @@ Add a new pet to the store
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
-import org.openapitools.client.auth.*;
import org.openapitools.client.models.*;
-import org.openapitools.client.api.PetApi;
+import org.openapitools.client.api.BodyApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:3000");
-
- // Configure OAuth2 access token for authorization: petstore_auth
- OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
- petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
- PetApi apiInstance = new PetApi(defaultClient);
- Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
+ BodyApi apiInstance = new BodyApi(defaultClient);
try {
- apiInstance.addPet(pet);
+ File result = apiInstance.testBinaryGif();
+ System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling PetApi#addPet");
+ System.err.println("Exception when calling BodyApi#testBinaryGif");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
@@ -61,39 +56,35 @@ public class Example {
### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | |
+This endpoint does not need any parameter.
### Return type
-null (empty response body)
+[**File**](File.md)
### Authorization
-[petstore_auth](../README.md#petstore_auth)
+No authorization required
### HTTP request headers
-- **Content-Type**: application/json, application/xml
-- **Accept**: Not defined
+- **Content-Type**: Not defined
+- **Accept**: image/gif
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | Successful operation | - |
-| **405** | Invalid input | - |
-## deletePet
+## testBodyApplicationOctetstreamBinary
-> deletePet(petId, apiKey)
-
-Deletes a pet
+> String testBodyApplicationOctetstreamBinary(body)
+Test body parameter(s)
+Test body parameter(s)
### Example
@@ -102,99 +93,21 @@ Deletes a pet
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
-import org.openapitools.client.auth.*;
import org.openapitools.client.models.*;
-import org.openapitools.client.api.PetApi;
+import org.openapitools.client.api.BodyApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:3000");
-
- // Configure OAuth2 access token for authorization: petstore_auth
- OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
- petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
- PetApi apiInstance = new PetApi(defaultClient);
- Long petId = 56L; // Long | Pet id to delete
- String apiKey = "apiKey_example"; // String |
+ BodyApi apiInstance = new BodyApi(defaultClient);
+ File body = new File("/path/to/file"); // File |
try {
- apiInstance.deletePet(petId, apiKey);
- } catch (ApiException e) {
- System.err.println("Exception when calling PetApi#deletePet");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **petId** | **Long**| Pet id to delete | |
-| **apiKey** | **String**| | [optional] |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
-- **Content-Type**: Not defined
-- **Accept**: Not defined
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | Successful operation | - |
-| **400** | Invalid pet value | - |
-
-
-## findPetsByStatus
-
-> List<Pet> findPetsByStatus(status)
-
-Finds Pets by status
-
-Multiple status values can be provided with comma separated strings
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.auth.*;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.PetApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- // Configure OAuth2 access token for authorization: petstore_auth
- OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
- petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
-
- PetApi apiInstance = new PetApi(defaultClient);
- List status = Arrays.asList("available"); // List | Status values that need to be considered for filter
- try {
- List result = apiInstance.findPetsByStatus(status);
+ String result = apiInstance.testBodyApplicationOctetstreamBinary(body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling PetApi#findPetsByStatus");
+ System.err.println("Exception when calling BodyApi#testBodyApplicationOctetstreamBinary");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
@@ -209,378 +122,7 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
-| **status** | [**List<String>**](String.md)| Status values that need to be considered for filter | [enum: available, pending, sold] |
-
-### Return type
-
-[**List<Pet>**](Pet.md)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
-- **Content-Type**: Not defined
-- **Accept**: application/xml, application/json
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | successful operation | - |
-| **400** | Invalid status value | - |
-
-
-## findPetsByTags
-
-> Set<Pet> findPetsByTags(tags)
-
-Finds Pets by tags
-
-Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.auth.*;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.PetApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- // Configure OAuth2 access token for authorization: petstore_auth
- OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
- petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
-
- PetApi apiInstance = new PetApi(defaultClient);
- Set tags = Arrays.asList(); // Set | Tags to filter by
- try {
- Set result = apiInstance.findPetsByTags(tags);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling PetApi#findPetsByTags");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **tags** | [**Set<String>**](String.md)| Tags to filter by | |
-
-### Return type
-
-[**Set<Pet>**](Pet.md)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
-- **Content-Type**: Not defined
-- **Accept**: application/xml, application/json
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | successful operation | - |
-| **400** | Invalid tag value | - |
-
-
-## getPetById
-
-> Pet getPetById(petId)
-
-Find pet by ID
-
-Returns a single pet
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.auth.*;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.PetApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- // Configure API key authorization: api_key
- ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
- api_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //api_key.setApiKeyPrefix("Token");
-
- PetApi apiInstance = new PetApi(defaultClient);
- Long petId = 56L; // Long | ID of pet to return
- try {
- Pet result = apiInstance.getPetById(petId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling PetApi#getPetById");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **petId** | **Long**| ID of pet to return | |
-
-### Return type
-
-[**Pet**](Pet.md)
-
-### Authorization
-
-[api_key](../README.md#api_key)
-
-### HTTP request headers
-
-- **Content-Type**: Not defined
-- **Accept**: application/xml, application/json
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | successful operation | - |
-| **400** | Invalid ID supplied | - |
-| **404** | Pet not found | - |
-
-
-## updatePet
-
-> updatePet(pet)
-
-Update an existing pet
-
-
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.auth.*;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.PetApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- // Configure OAuth2 access token for authorization: petstore_auth
- OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
- petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
-
- PetApi apiInstance = new PetApi(defaultClient);
- Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
- try {
- apiInstance.updatePet(pet);
- } catch (ApiException e) {
- System.err.println("Exception when calling PetApi#updatePet");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
-- **Content-Type**: application/json, application/xml
-- **Accept**: Not defined
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | Successful operation | - |
-| **400** | Invalid ID supplied | - |
-| **404** | Pet not found | - |
-| **405** | Validation exception | - |
-
-
-## updatePetWithForm
-
-> updatePetWithForm(petId, name, status)
-
-Updates a pet in the store with form data
-
-
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.auth.*;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.PetApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- // Configure OAuth2 access token for authorization: petstore_auth
- OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
- petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
-
- PetApi apiInstance = new PetApi(defaultClient);
- Long petId = 56L; // Long | ID of pet that needs to be updated
- String name = "name_example"; // String | Updated name of the pet
- String status = "status_example"; // String | Updated status of the pet
- try {
- apiInstance.updatePetWithForm(petId, name, status);
- } catch (ApiException e) {
- System.err.println("Exception when calling PetApi#updatePetWithForm");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **petId** | **Long**| ID of pet that needs to be updated | |
-| **name** | **String**| Updated name of the pet | [optional] |
-| **status** | **String**| Updated status of the pet | [optional] |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
-- **Content-Type**: application/x-www-form-urlencoded
-- **Accept**: Not defined
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | Successful operation | - |
-| **405** | Invalid input | - |
-
-
-## uploadFile
-
-> String uploadFile(petId, additionalMetadata, _file)
-
-uploads an image
-
-
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.auth.*;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.PetApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- // Configure OAuth2 access token for authorization: petstore_auth
- OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
- petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
-
- PetApi apiInstance = new PetApi(defaultClient);
- Long petId = 56L; // Long | ID of pet to update
- String additionalMetadata = "additionalMetadata_example"; // String | Additional data to pass to server
- File _file = new File("/path/to/file"); // File | file to upload
- try {
- String result = apiInstance.uploadFile(petId, additionalMetadata, _file);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling PetApi#uploadFile");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **petId** | **Long**| ID of pet to update | |
-| **additionalMetadata** | **String**| Additional data to pass to server | [optional] |
-| **_file** | **File**| file to upload | [optional] |
+| **body** | **File**| | [optional] |
### Return type
@@ -588,7 +130,73 @@ public class Example {
### Authorization
-[petstore_auth](../README.md#petstore_auth)
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: application/octet-stream
+- **Accept**: text/plain
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Successful operation | - |
+
+
+## testBodyMultipartFormdataArrayOfBinary
+
+> String testBodyMultipartFormdataArrayOfBinary(files)
+
+Test array of binary in multipart mime
+
+Test array of binary in multipart mime
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.BodyApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://localhost:3000");
+
+ BodyApi apiInstance = new BodyApi(defaultClient);
+ List files = Arrays.asList(); // List |
+ try {
+ String result = apiInstance.testBodyMultipartFormdataArrayOfBinary(files);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling BodyApi#testBodyMultipartFormdataArrayOfBinary");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **files** | **List<File>**| | |
+
+### Return type
+
+**String**
+
+### Authorization
+
+No authorization required
### HTTP request headers
@@ -602,13 +210,13 @@ public class Example {
| **200** | Successful operation | - |
-## uploadFileWithRequiredFile
+## testBodyMultipartFormdataSingleBinary
-> ModelApiResponse uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata)
-
-uploads an image (required)
+> String testBodyMultipartFormdataSingleBinary(myFile)
+Test single binary in multipart mime
+Test single binary in multipart mime
### Example
@@ -617,28 +225,21 @@ uploads an image (required)
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
-import org.openapitools.client.auth.*;
import org.openapitools.client.models.*;
-import org.openapitools.client.api.PetApi;
+import org.openapitools.client.api.BodyApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:3000");
-
- // Configure OAuth2 access token for authorization: petstore_auth
- OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
- petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
- PetApi apiInstance = new PetApi(defaultClient);
- Long petId = 56L; // Long | ID of pet to update
- File requiredFile = new File("/path/to/file"); // File | file to upload
- String additionalMetadata = "additionalMetadata_example"; // String | Additional data to pass to server
+ BodyApi apiInstance = new BodyApi(defaultClient);
+ File myFile = new File("/path/to/file"); // File |
try {
- ModelApiResponse result = apiInstance.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata);
+ String result = apiInstance.testBodyMultipartFormdataSingleBinary(myFile);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling PetApi#uploadFileWithRequiredFile");
+ System.err.println("Exception when calling BodyApi#testBodyMultipartFormdataSingleBinary");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
@@ -653,26 +254,354 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
-| **petId** | **Long**| ID of pet to update | |
-| **requiredFile** | **File**| file to upload | |
-| **additionalMetadata** | **String**| Additional data to pass to server | [optional] |
+| **myFile** | **File**| | [optional] |
### Return type
-[**ModelApiResponse**](ModelApiResponse.md)
+**String**
### Authorization
-[petstore_auth](../README.md#petstore_auth)
+No authorization required
### HTTP request headers
- **Content-Type**: multipart/form-data
+- **Accept**: text/plain
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Successful operation | - |
+
+
+## testEchoBodyAllOfPet
+
+> Pet testEchoBodyAllOfPet(pet)
+
+Test body parameter(s)
+
+Test body parameter(s)
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.BodyApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://localhost:3000");
+
+ BodyApi apiInstance = new BodyApi(defaultClient);
+ Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
+ try {
+ Pet result = apiInstance.testEchoBodyAllOfPet(pet);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling BodyApi#testEchoBodyAllOfPet");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | [optional] |
+
+### Return type
+
+[**Pet**](Pet.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: application/json
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | successful operation | - |
+| **200** | Successful operation | - |
+
+
+## testEchoBodyFreeFormObjectResponseString
+
+> String testEchoBodyFreeFormObjectResponseString(body)
+
+Test free form object
+
+Test free form object
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.BodyApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://localhost:3000");
+
+ BodyApi apiInstance = new BodyApi(defaultClient);
+ Object body = null; // Object | Free form object
+ try {
+ String result = apiInstance.testEchoBodyFreeFormObjectResponseString(body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling BodyApi#testEchoBodyFreeFormObjectResponseString");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **body** | **Object**| Free form object | [optional] |
+
+### Return type
+
+**String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: application/json
+- **Accept**: text/plain
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Successful operation | - |
+
+
+## testEchoBodyPet
+
+> Pet testEchoBodyPet(pet)
+
+Test body parameter(s)
+
+Test body parameter(s)
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.BodyApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://localhost:3000");
+
+ BodyApi apiInstance = new BodyApi(defaultClient);
+ Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
+ try {
+ Pet result = apiInstance.testEchoBodyPet(pet);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling BodyApi#testEchoBodyPet");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | [optional] |
+
+### Return type
+
+[**Pet**](Pet.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: application/json
+- **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Successful operation | - |
+
+
+## testEchoBodyPetResponseString
+
+> String testEchoBodyPetResponseString(pet)
+
+Test empty response body
+
+Test empty response body
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.BodyApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://localhost:3000");
+
+ BodyApi apiInstance = new BodyApi(defaultClient);
+ Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
+ try {
+ String result = apiInstance.testEchoBodyPetResponseString(pet);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling BodyApi#testEchoBodyPetResponseString");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | [optional] |
+
+### Return type
+
+**String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: application/json
+- **Accept**: text/plain
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Successful operation | - |
+
+
+## testEchoBodyTagResponseString
+
+> String testEchoBodyTagResponseString(tag)
+
+Test empty json (request body)
+
+Test empty json (request body)
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.BodyApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://localhost:3000");
+
+ BodyApi apiInstance = new BodyApi(defaultClient);
+ Tag tag = new Tag(); // Tag | Tag object
+ try {
+ String result = apiInstance.testEchoBodyTagResponseString(tag);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling BodyApi#testEchoBodyTagResponseString");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **tag** | [**Tag**](Tag.md)| Tag object | [optional] |
+
+### Return type
+
+**String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: application/json
+- **Accept**: text/plain
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Successful operation | - |
diff --git a/samples/client/petstore/java/resteasy-echo/docs/Capitalization.md b/samples/client/petstore/java/resteasy-echo/docs/Capitalization.md
deleted file mode 100644
index 82a812711de..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/Capitalization.md
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-# Capitalization
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**smallCamel** | **String** | | [optional] |
-|**capitalCamel** | **String** | | [optional] |
-|**smallSnake** | **String** | | [optional] |
-|**capitalSnake** | **String** | | [optional] |
-|**scAETHFlowPoints** | **String** | | [optional] |
-|**ATT_NAME** | **String** | Name of the pet | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/Cat.md b/samples/client/petstore/java/resteasy-echo/docs/Cat.md
deleted file mode 100644
index 390dd519c8c..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/Cat.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-# Cat
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**declawed** | **Boolean** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/Category.md b/samples/client/petstore/java/resteasy-echo/docs/Category.md
index ab6d1ec334d..7289ebf585b 100644
--- a/samples/client/petstore/java/resteasy-echo/docs/Category.md
+++ b/samples/client/petstore/java/resteasy-echo/docs/Category.md
@@ -8,7 +8,7 @@
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**id** | **Long** | | [optional] |
-|**name** | **String** | | |
+|**name** | **String** | | [optional] |
diff --git a/samples/client/petstore/java/resteasy-echo/docs/ChildWithNullable.md b/samples/client/petstore/java/resteasy-echo/docs/ChildWithNullable.md
deleted file mode 100644
index 73c0dd6d473..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/ChildWithNullable.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-# ChildWithNullable
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**otherProperty** | **String** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/ClassModel.md b/samples/client/petstore/java/resteasy-echo/docs/ClassModel.md
deleted file mode 100644
index af46dea1f6c..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/ClassModel.md
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-# ClassModel
-
-Model for testing model with \"_class\" property
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**propertyClass** | **String** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/Client.md b/samples/client/petstore/java/resteasy-echo/docs/Client.md
deleted file mode 100644
index ef07b4ab8b9..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/Client.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-# Client
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**client** | **String** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/DataQuery.md b/samples/client/petstore/java/resteasy-echo/docs/DataQuery.md
new file mode 100644
index 00000000000..338c467b2d5
--- /dev/null
+++ b/samples/client/petstore/java/resteasy-echo/docs/DataQuery.md
@@ -0,0 +1,15 @@
+
+
+# DataQuery
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**suffix** | **String** | test suffix | [optional] |
+|**text** | **String** | Some text containing white spaces | [optional] |
+|**date** | **OffsetDateTime** | A date | [optional] |
+
+
+
diff --git a/samples/client/petstore/java/resteasy-echo/docs/DefaultApi.md b/samples/client/petstore/java/resteasy-echo/docs/DefaultApi.md
deleted file mode 100644
index 52373dc3685..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/DefaultApi.md
+++ /dev/null
@@ -1,69 +0,0 @@
-# DefaultApi
-
-All URIs are relative to *http://localhost:3000*
-
-| Method | HTTP request | Description |
-|------------- | ------------- | -------------|
-| [**fooGet**](DefaultApi.md#fooGet) | **GET** /foo | |
-
-
-
-## fooGet
-
-> FooGetDefaultResponse fooGet()
-
-
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.DefaultApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- DefaultApi apiInstance = new DefaultApi(defaultClient);
- try {
- FooGetDefaultResponse result = apiInstance.fooGet();
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling DefaultApi#fooGet");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-This endpoint does not need any parameter.
-
-### Return type
-
-[**FooGetDefaultResponse**](FooGetDefaultResponse.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
-- **Content-Type**: Not defined
-- **Accept**: application/json
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **0** | response | - |
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/DefaultValue.md b/samples/client/petstore/java/resteasy-echo/docs/DefaultValue.md
new file mode 100644
index 00000000000..20a9b8ee250
--- /dev/null
+++ b/samples/client/petstore/java/resteasy-echo/docs/DefaultValue.md
@@ -0,0 +1,31 @@
+
+
+# DefaultValue
+
+to test the default value of properties
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**arrayStringEnumRefDefault** | **List<StringEnumRef>** | | [optional] |
+|**arrayStringEnumDefault** | [**List<ArrayStringEnumDefaultEnum>**](#List<ArrayStringEnumDefaultEnum>) | | [optional] |
+|**arrayStringDefault** | **List<String>** | | [optional] |
+|**arrayIntegerDefault** | **List<Integer>** | | [optional] |
+|**arrayString** | **List<String>** | | [optional] |
+|**arrayStringNullable** | **List<String>** | | [optional] |
+|**arrayStringExtensionNullable** | **List<String>** | | [optional] |
+|**stringNullable** | **String** | | [optional] |
+
+
+
+## Enum: List<ArrayStringEnumDefaultEnum>
+
+| Name | Value |
+|---- | -----|
+| SUCCESS | "success" |
+| FAILURE | "failure" |
+| UNCLASSIFIED | "unclassified" |
+
+
+
diff --git a/samples/client/petstore/java/resteasy-echo/docs/DeprecatedObject.md b/samples/client/petstore/java/resteasy-echo/docs/DeprecatedObject.md
deleted file mode 100644
index 48de1d62442..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/DeprecatedObject.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-# DeprecatedObject
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**name** | **String** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/Dog.md b/samples/client/petstore/java/resteasy-echo/docs/Dog.md
deleted file mode 100644
index 972c981c0d0..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/Dog.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-# Dog
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**breed** | **String** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/EnumArrays.md b/samples/client/petstore/java/resteasy-echo/docs/EnumArrays.md
deleted file mode 100644
index b2222d5beb2..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/EnumArrays.md
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
-# EnumArrays
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**justSymbol** | [**JustSymbolEnum**](#JustSymbolEnum) | | [optional] |
-|**arrayEnum** | [**List<ArrayEnumEnum>**](#List<ArrayEnumEnum>) | | [optional] |
-
-
-
-## Enum: JustSymbolEnum
-
-| Name | Value |
-|---- | -----|
-| GREATER_THAN_OR_EQUAL_TO | ">=" |
-| DOLLAR | "$" |
-
-
-
-## Enum: List<ArrayEnumEnum>
-
-| Name | Value |
-|---- | -----|
-| FISH | "fish" |
-| CRAB | "crab" |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/EnumClass.md b/samples/client/petstore/java/resteasy-echo/docs/EnumClass.md
deleted file mode 100644
index b314590a759..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/EnumClass.md
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-# EnumClass
-
-## Enum
-
-
-* `_ABC` (value: `"_abc"`)
-
-* `_EFG` (value: `"-efg"`)
-
-* `_XYZ_` (value: `"(xyz)"`)
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/EnumTest.md b/samples/client/petstore/java/resteasy-echo/docs/EnumTest.md
deleted file mode 100644
index 380a2aef0bc..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/EnumTest.md
+++ /dev/null
@@ -1,58 +0,0 @@
-
-
-# EnumTest
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**enumString** | [**EnumStringEnum**](#EnumStringEnum) | | [optional] |
-|**enumStringRequired** | [**EnumStringRequiredEnum**](#EnumStringRequiredEnum) | | |
-|**enumInteger** | [**EnumIntegerEnum**](#EnumIntegerEnum) | | [optional] |
-|**enumNumber** | [**EnumNumberEnum**](#EnumNumberEnum) | | [optional] |
-|**outerEnum** | **OuterEnum** | | [optional] |
-|**outerEnumInteger** | **OuterEnumInteger** | | [optional] |
-|**outerEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional] |
-|**outerEnumIntegerDefaultValue** | **OuterEnumIntegerDefaultValue** | | [optional] |
-
-
-
-## Enum: EnumStringEnum
-
-| Name | Value |
-|---- | -----|
-| UPPER | "UPPER" |
-| LOWER | "lower" |
-| EMPTY | "" |
-
-
-
-## Enum: EnumStringRequiredEnum
-
-| Name | Value |
-|---- | -----|
-| UPPER | "UPPER" |
-| LOWER | "lower" |
-| EMPTY | "" |
-
-
-
-## Enum: EnumIntegerEnum
-
-| Name | Value |
-|---- | -----|
-| NUMBER_1 | 1 |
-| NUMBER_MINUS_1 | -1 |
-
-
-
-## Enum: EnumNumberEnum
-
-| Name | Value |
-|---- | -----|
-| NUMBER_1_DOT_1 | 1.1 |
-| NUMBER_MINUS_1_DOT_2 | -1.2 |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/FakeApi.md b/samples/client/petstore/java/resteasy-echo/docs/FakeApi.md
deleted file mode 100644
index d8409218bfd..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/FakeApi.md
+++ /dev/null
@@ -1,1409 +0,0 @@
-# FakeApi
-
-All URIs are relative to *http://localhost:3000*
-
-| Method | HTTP request | Description |
-|------------- | ------------- | -------------|
-| [**fakeBigDecimalMap**](FakeApi.md#fakeBigDecimalMap) | **GET** /fake/BigDecimalMap | |
-| [**fakeHealthGet**](FakeApi.md#fakeHealthGet) | **GET** /fake/health | Health check endpoint |
-| [**fakeHttpSignatureTest**](FakeApi.md#fakeHttpSignatureTest) | **GET** /fake/http-signature-test | test http signature authentication |
-| [**fakeOuterBooleanSerialize**](FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean | |
-| [**fakeOuterCompositeSerialize**](FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite | |
-| [**fakeOuterNumberSerialize**](FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number | |
-| [**fakeOuterStringSerialize**](FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string | |
-| [**fakePropertyEnumIntegerSerialize**](FakeApi.md#fakePropertyEnumIntegerSerialize) | **POST** /fake/property/enum-int | |
-| [**testBodyWithBinary**](FakeApi.md#testBodyWithBinary) | **PUT** /fake/body-with-binary | |
-| [**testBodyWithFileSchema**](FakeApi.md#testBodyWithFileSchema) | **PUT** /fake/body-with-file-schema | |
-| [**testBodyWithQueryParams**](FakeApi.md#testBodyWithQueryParams) | **PUT** /fake/body-with-query-params | |
-| [**testClientModel**](FakeApi.md#testClientModel) | **PATCH** /fake | To test \"client\" model |
-| [**testEndpointParameters**](FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 |
-| [**testEnumParameters**](FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters |
-| [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) |
-| [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties |
-| [**testInlineFreeformAdditionalProperties**](FakeApi.md#testInlineFreeformAdditionalProperties) | **POST** /fake/inline-freeform-additionalProperties | test inline free-form additionalProperties |
-| [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data |
-| [**testNullable**](FakeApi.md#testNullable) | **POST** /fake/nullable | test nullable parent property |
-| [**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | |
-
-
-
-## fakeBigDecimalMap
-
-> FakeBigDecimalMap200Response fakeBigDecimalMap()
-
-
-
-for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.FakeApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- FakeApi apiInstance = new FakeApi(defaultClient);
- try {
- FakeBigDecimalMap200Response result = apiInstance.fakeBigDecimalMap();
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling FakeApi#fakeBigDecimalMap");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-This endpoint does not need any parameter.
-
-### Return type
-
-[**FakeBigDecimalMap200Response**](FakeBigDecimalMap200Response.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
-- **Content-Type**: Not defined
-- **Accept**: */*
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | successful operation | - |
-
-
-## fakeHealthGet
-
-> HealthCheckResult fakeHealthGet()
-
-Health check endpoint
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.FakeApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- FakeApi apiInstance = new FakeApi(defaultClient);
- try {
- HealthCheckResult result = apiInstance.fakeHealthGet();
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling FakeApi#fakeHealthGet");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-This endpoint does not need any parameter.
-
-### Return type
-
-[**HealthCheckResult**](HealthCheckResult.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
-- **Content-Type**: Not defined
-- **Accept**: application/json
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | The instance started successfully | - |
-
-
-## fakeHttpSignatureTest
-
-> fakeHttpSignatureTest(pet, query1, header1)
-
-test http signature authentication
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.auth.*;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.FakeApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
-
- FakeApi apiInstance = new FakeApi(defaultClient);
- Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
- String query1 = "query1_example"; // String | query parameter
- String header1 = "header1_example"; // String | header parameter
- try {
- apiInstance.fakeHttpSignatureTest(pet, query1, header1);
- } catch (ApiException e) {
- System.err.println("Exception when calling FakeApi#fakeHttpSignatureTest");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | |
-| **query1** | **String**| query parameter | [optional] |
-| **header1** | **String**| header parameter | [optional] |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-[http_signature_test](../README.md#http_signature_test)
-
-### HTTP request headers
-
-- **Content-Type**: application/json, application/xml
-- **Accept**: Not defined
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | The instance started successfully | - |
-
-
-## fakeOuterBooleanSerialize
-
-> Boolean fakeOuterBooleanSerialize(body)
-
-
-
-Test serialization of outer boolean types
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.FakeApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- FakeApi apiInstance = new FakeApi(defaultClient);
- Boolean body = true; // Boolean | Input boolean as post body
- try {
- Boolean result = apiInstance.fakeOuterBooleanSerialize(body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling FakeApi#fakeOuterBooleanSerialize");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **body** | **Boolean**| Input boolean as post body | [optional] |
-
-### Return type
-
-**Boolean**
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
-- **Content-Type**: application/json
-- **Accept**: */*
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | Output boolean | - |
-
-
-## fakeOuterCompositeSerialize
-
-> OuterComposite fakeOuterCompositeSerialize(outerComposite)
-
-
-
-Test serialization of object with outer number type
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.FakeApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- FakeApi apiInstance = new FakeApi(defaultClient);
- OuterComposite outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body
- try {
- OuterComposite result = apiInstance.fakeOuterCompositeSerialize(outerComposite);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] |
-
-### Return type
-
-[**OuterComposite**](OuterComposite.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
-- **Content-Type**: application/json
-- **Accept**: */*
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | Output composite | - |
-
-
-## fakeOuterNumberSerialize
-
-> BigDecimal fakeOuterNumberSerialize(body)
-
-
-
-Test serialization of outer number types
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.FakeApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- FakeApi apiInstance = new FakeApi(defaultClient);
- BigDecimal body = new BigDecimal(78); // BigDecimal | Input number as post body
- try {
- BigDecimal result = apiInstance.fakeOuterNumberSerialize(body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling FakeApi#fakeOuterNumberSerialize");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **body** | **BigDecimal**| Input number as post body | [optional] |
-
-### Return type
-
-[**BigDecimal**](BigDecimal.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
-- **Content-Type**: application/json
-- **Accept**: */*
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | Output number | - |
-
-
-## fakeOuterStringSerialize
-
-> String fakeOuterStringSerialize(body)
-
-
-
-Test serialization of outer string types
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.FakeApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- FakeApi apiInstance = new FakeApi(defaultClient);
- String body = "body_example"; // String | Input string as post body
- try {
- String result = apiInstance.fakeOuterStringSerialize(body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **body** | **String**| Input string as post body | [optional] |
-
-### Return type
-
-**String**
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
-- **Content-Type**: application/json
-- **Accept**: */*
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | Output string | - |
-
-
-## fakePropertyEnumIntegerSerialize
-
-> OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty)
-
-
-
-Test serialization of enum (int) properties with examples
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.FakeApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- FakeApi apiInstance = new FakeApi(defaultClient);
- OuterObjectWithEnumProperty outerObjectWithEnumProperty = new OuterObjectWithEnumProperty(); // OuterObjectWithEnumProperty | Input enum (int) as post body
- try {
- OuterObjectWithEnumProperty result = apiInstance.fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling FakeApi#fakePropertyEnumIntegerSerialize");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **outerObjectWithEnumProperty** | [**OuterObjectWithEnumProperty**](OuterObjectWithEnumProperty.md)| Input enum (int) as post body | |
-
-### Return type
-
-[**OuterObjectWithEnumProperty**](OuterObjectWithEnumProperty.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
-- **Content-Type**: application/json
-- **Accept**: */*
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | Output enum (int) | - |
-
-
-## testBodyWithBinary
-
-> testBodyWithBinary(body)
-
-
-
-For this test, the body has to be a binary file.
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.FakeApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- FakeApi apiInstance = new FakeApi(defaultClient);
- File body = new File("/path/to/file"); // File | image to upload
- try {
- apiInstance.testBodyWithBinary(body);
- } catch (ApiException e) {
- System.err.println("Exception when calling FakeApi#testBodyWithBinary");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **body** | **File**| image to upload | |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
-- **Content-Type**: image/png
-- **Accept**: Not defined
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | Success | - |
-
-
-## testBodyWithFileSchema
-
-> testBodyWithFileSchema(fileSchemaTestClass)
-
-
-
-For this test, the body for this request must reference a schema named `File`.
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.FakeApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- FakeApi apiInstance = new FakeApi(defaultClient);
- FileSchemaTestClass fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass |
- try {
- apiInstance.testBodyWithFileSchema(fileSchemaTestClass);
- } catch (ApiException e) {
- System.err.println("Exception when calling FakeApi#testBodyWithFileSchema");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
-- **Content-Type**: application/json
-- **Accept**: Not defined
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | Success | - |
-
-
-## testBodyWithQueryParams
-
-> testBodyWithQueryParams(query, user)
-
-
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.FakeApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- FakeApi apiInstance = new FakeApi(defaultClient);
- String query = "query_example"; // String |
- User user = new User(); // User |
- try {
- apiInstance.testBodyWithQueryParams(query, user);
- } catch (ApiException e) {
- System.err.println("Exception when calling FakeApi#testBodyWithQueryParams");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **query** | **String**| | |
-| **user** | [**User**](User.md)| | |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
-- **Content-Type**: application/json
-- **Accept**: Not defined
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | Success | - |
-
-
-## testClientModel
-
-> Client testClientModel(client)
-
-To test \"client\" model
-
-To test \"client\" model
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.FakeApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- FakeApi apiInstance = new FakeApi(defaultClient);
- Client client = new Client(); // Client | client model
- try {
- Client result = apiInstance.testClientModel(client);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling FakeApi#testClientModel");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **client** | [**Client**](Client.md)| client model | |
-
-### Return type
-
-[**Client**](Client.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
-- **Content-Type**: application/json
-- **Accept**: application/json
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | successful operation | - |
-
-
-## testEndpointParameters
-
-> testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback)
-
-Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
-
-Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.auth.*;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.FakeApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- // Configure HTTP basic authorization: http_basic_test
- HttpBasicAuth http_basic_test = (HttpBasicAuth) defaultClient.getAuthentication("http_basic_test");
- http_basic_test.setUsername("YOUR USERNAME");
- http_basic_test.setPassword("YOUR PASSWORD");
-
- FakeApi apiInstance = new FakeApi(defaultClient);
- BigDecimal number = new BigDecimal(78); // BigDecimal | None
- Double _double = 3.4D; // Double | None
- String patternWithoutDelimiter = "patternWithoutDelimiter_example"; // String | None
- byte[] _byte = null; // byte[] | None
- Integer integer = 56; // Integer | None
- Integer int32 = 56; // Integer | None
- Long int64 = 56L; // Long | None
- Float _float = 3.4F; // Float | None
- String string = "string_example"; // String | None
- File binary = new File("/path/to/file"); // File | None
- LocalDate date = LocalDate.now(); // LocalDate | None
- OffsetDateTime dateTime = OffsetDateTime.now(); // OffsetDateTime | None
- String password = "password_example"; // String | None
- String paramCallback = "paramCallback_example"; // String | None
- try {
- apiInstance.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
- } catch (ApiException e) {
- System.err.println("Exception when calling FakeApi#testEndpointParameters");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **number** | **BigDecimal**| None | |
-| **_double** | **Double**| None | |
-| **patternWithoutDelimiter** | **String**| None | |
-| **_byte** | **byte[]**| None | |
-| **integer** | **Integer**| None | [optional] |
-| **int32** | **Integer**| None | [optional] |
-| **int64** | **Long**| None | [optional] |
-| **_float** | **Float**| None | [optional] |
-| **string** | **String**| None | [optional] |
-| **binary** | **File**| None | [optional] |
-| **date** | **LocalDate**| None | [optional] |
-| **dateTime** | **OffsetDateTime**| None | [optional] |
-| **password** | **String**| None | [optional] |
-| **paramCallback** | **String**| None | [optional] |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-[http_basic_test](../README.md#http_basic_test)
-
-### HTTP request headers
-
-- **Content-Type**: application/x-www-form-urlencoded
-- **Accept**: Not defined
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **400** | Invalid username supplied | - |
-| **404** | User not found | - |
-
-
-## testEnumParameters
-
-> testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString)
-
-To test enum parameters
-
-To test enum parameters
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.FakeApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- FakeApi apiInstance = new FakeApi(defaultClient);
- List enumHeaderStringArray = Arrays.asList("$"); // List | Header parameter enum test (string array)
- String enumHeaderString = "_abc"; // String | Header parameter enum test (string)
- List enumQueryStringArray = Arrays.asList("$"); // List | Query parameter enum test (string array)
- String enumQueryString = "_abc"; // String | Query parameter enum test (string)
- Integer enumQueryInteger = 1; // Integer | Query parameter enum test (double)
- Double enumQueryDouble = 1.1D; // Double | Query parameter enum test (double)
- List enumQueryModelArray = Arrays.asList(-efg); // List |
- List enumFormStringArray = Arrays.asList("$"); // List | Form parameter enum test (string array)
- String enumFormString = "_abc"; // String | Form parameter enum test (string)
- try {
- apiInstance.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString);
- } catch (ApiException e) {
- System.err.println("Exception when calling FakeApi#testEnumParameters");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **enumHeaderStringArray** | [**List<String>**](String.md)| Header parameter enum test (string array) | [optional] [enum: >, $] |
-| **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] |
-| **enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: >, $] |
-| **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] |
-| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] |
-| **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] |
-| **enumQueryModelArray** | [**List<EnumClass>**](EnumClass.md)| | [optional] |
-| **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [enum: >, $] |
-| **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
-- **Content-Type**: application/x-www-form-urlencoded
-- **Accept**: Not defined
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **400** | Invalid request | - |
-| **404** | Not found | - |
-
-
-## testGroupParameters
-
-> testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group)
-
-Fake endpoint to test group parameters (optional)
-
-Fake endpoint to test group parameters (optional)
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.auth.*;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.FakeApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- // Configure HTTP bearer authorization: bearer_test
- HttpBearerAuth bearer_test = (HttpBearerAuth) defaultClient.getAuthentication("bearer_test");
- bearer_test.setBearerToken("BEARER TOKEN");
-
- FakeApi apiInstance = new FakeApi(defaultClient);
- Integer requiredStringGroup = 56; // Integer | Required String in group parameters
- Boolean requiredBooleanGroup = true; // Boolean | Required Boolean in group parameters
- Long requiredInt64Group = 56L; // Long | Required Integer in group parameters
- Integer stringGroup = 56; // Integer | String in group parameters
- Boolean booleanGroup = true; // Boolean | Boolean in group parameters
- Long int64Group = 56L; // Long | Integer in group parameters
- try {
- apiInstance.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
- } catch (ApiException e) {
- System.err.println("Exception when calling FakeApi#testGroupParameters");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **requiredStringGroup** | **Integer**| Required String in group parameters | |
-| **requiredBooleanGroup** | **Boolean**| Required Boolean in group parameters | |
-| **requiredInt64Group** | **Long**| Required Integer in group parameters | |
-| **stringGroup** | **Integer**| String in group parameters | [optional] |
-| **booleanGroup** | **Boolean**| Boolean in group parameters | [optional] |
-| **int64Group** | **Long**| Integer in group parameters | [optional] |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-[bearer_test](../README.md#bearer_test)
-
-### HTTP request headers
-
-- **Content-Type**: Not defined
-- **Accept**: Not defined
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **400** | Something wrong | - |
-
-
-## testInlineAdditionalProperties
-
-> testInlineAdditionalProperties(requestBody)
-
-test inline additionalProperties
-
-
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.FakeApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- FakeApi apiInstance = new FakeApi(defaultClient);
- Map requestBody = new HashMap(); // Map | request body
- try {
- apiInstance.testInlineAdditionalProperties(requestBody);
- } catch (ApiException e) {
- System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **requestBody** | [**Map<String, String>**](String.md)| request body | |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
-- **Content-Type**: application/json
-- **Accept**: Not defined
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | successful operation | - |
-
-
-## testInlineFreeformAdditionalProperties
-
-> testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest)
-
-test inline free-form additionalProperties
-
-
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.FakeApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- FakeApi apiInstance = new FakeApi(defaultClient);
- TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest = new TestInlineFreeformAdditionalPropertiesRequest(); // TestInlineFreeformAdditionalPropertiesRequest | request body
- try {
- apiInstance.testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest);
- } catch (ApiException e) {
- System.err.println("Exception when calling FakeApi#testInlineFreeformAdditionalProperties");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **testInlineFreeformAdditionalPropertiesRequest** | [**TestInlineFreeformAdditionalPropertiesRequest**](TestInlineFreeformAdditionalPropertiesRequest.md)| request body | |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
-- **Content-Type**: application/json
-- **Accept**: Not defined
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | successful operation | - |
-
-
-## testJsonFormData
-
-> testJsonFormData(param, param2)
-
-test json serialization of form data
-
-
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.FakeApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- FakeApi apiInstance = new FakeApi(defaultClient);
- String param = "param_example"; // String | field1
- String param2 = "param2_example"; // String | field2
- try {
- apiInstance.testJsonFormData(param, param2);
- } catch (ApiException e) {
- System.err.println("Exception when calling FakeApi#testJsonFormData");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **param** | **String**| field1 | |
-| **param2** | **String**| field2 | |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
-- **Content-Type**: application/x-www-form-urlencoded
-- **Accept**: Not defined
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | successful operation | - |
-
-
-## testNullable
-
-> testNullable(childWithNullable)
-
-test nullable parent property
-
-
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.FakeApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- FakeApi apiInstance = new FakeApi(defaultClient);
- ChildWithNullable childWithNullable = new ChildWithNullable(); // ChildWithNullable | request body
- try {
- apiInstance.testNullable(childWithNullable);
- } catch (ApiException e) {
- System.err.println("Exception when calling FakeApi#testNullable");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **childWithNullable** | [**ChildWithNullable**](ChildWithNullable.md)| request body | |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
-- **Content-Type**: application/json
-- **Accept**: Not defined
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | successful operation | - |
-
-
-## testQueryParameterCollectionFormat
-
-> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language)
-
-
-
-To test the collection format in query parameters
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.FakeApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- FakeApi apiInstance = new FakeApi(defaultClient);
- List pipe = Arrays.asList(); // List |
- List ioutil = Arrays.asList(); // List |
- List http = Arrays.asList(); // List |
- List url = Arrays.asList(); // List |
- List context = Arrays.asList(); // List |
- String allowEmpty = "allowEmpty_example"; // String |
- Map language = new HashMap(); // Map |
- try {
- apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language);
- } catch (ApiException e) {
- System.err.println("Exception when calling FakeApi#testQueryParameterCollectionFormat");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **pipe** | [**List<String>**](String.md)| | |
-| **ioutil** | [**List<String>**](String.md)| | |
-| **http** | [**List<String>**](String.md)| | |
-| **url** | [**List<String>**](String.md)| | |
-| **context** | [**List<String>**](String.md)| | |
-| **allowEmpty** | **String**| | |
-| **language** | [**Map<String, String>**](String.md)| | [optional] |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
-- **Content-Type**: Not defined
-- **Accept**: Not defined
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | Success | - |
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/FakeBigDecimalMap200Response.md b/samples/client/petstore/java/resteasy-echo/docs/FakeBigDecimalMap200Response.md
deleted file mode 100644
index 475be1d2d73..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/FakeBigDecimalMap200Response.md
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-# FakeBigDecimalMap200Response
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**someId** | **BigDecimal** | | [optional] |
-|**someMap** | **Map<String, BigDecimal>** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/FakeClassnameTags123Api.md b/samples/client/petstore/java/resteasy-echo/docs/FakeClassnameTags123Api.md
deleted file mode 100644
index 8829af70c1f..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/FakeClassnameTags123Api.md
+++ /dev/null
@@ -1,82 +0,0 @@
-# FakeClassnameTags123Api
-
-All URIs are relative to *http://localhost:3000*
-
-| Method | HTTP request | Description |
-|------------- | ------------- | -------------|
-| [**testClassname**](FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case |
-
-
-
-## testClassname
-
-> Client testClassname(client)
-
-To test class name in snake case
-
-To test class name in snake case
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.auth.*;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.FakeClassnameTags123Api;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- // Configure API key authorization: api_key_query
- ApiKeyAuth api_key_query = (ApiKeyAuth) defaultClient.getAuthentication("api_key_query");
- api_key_query.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //api_key_query.setApiKeyPrefix("Token");
-
- FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api(defaultClient);
- Client client = new Client(); // Client | client model
- try {
- Client result = apiInstance.testClassname(client);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling FakeClassnameTags123Api#testClassname");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **client** | [**Client**](Client.md)| client model | |
-
-### Return type
-
-[**Client**](Client.md)
-
-### Authorization
-
-[api_key_query](../README.md#api_key_query)
-
-### HTTP request headers
-
-- **Content-Type**: application/json
-- **Accept**: application/json
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | successful operation | - |
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/FileSchemaTestClass.md b/samples/client/petstore/java/resteasy-echo/docs/FileSchemaTestClass.md
deleted file mode 100644
index 85d1a063669..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/FileSchemaTestClass.md
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-# FileSchemaTestClass
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**_file** | [**ModelFile**](ModelFile.md) | | [optional] |
-|**files** | [**List<ModelFile>**](ModelFile.md) | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/Foo.md b/samples/client/petstore/java/resteasy-echo/docs/Foo.md
deleted file mode 100644
index 6b3f0556528..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/Foo.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-# Foo
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**bar** | **String** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/FooGetDefaultResponse.md b/samples/client/petstore/java/resteasy-echo/docs/FooGetDefaultResponse.md
deleted file mode 100644
index ff3d7a3a56c..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/FooGetDefaultResponse.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-# FooGetDefaultResponse
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**string** | [**Foo**](Foo.md) | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/FormApi.md b/samples/client/petstore/java/resteasy-echo/docs/FormApi.md
new file mode 100644
index 00000000000..1f3ad73e938
--- /dev/null
+++ b/samples/client/petstore/java/resteasy-echo/docs/FormApi.md
@@ -0,0 +1,156 @@
+# FormApi
+
+All URIs are relative to *http://localhost:3000*
+
+| Method | HTTP request | Description |
+|------------- | ------------- | -------------|
+| [**testFormIntegerBooleanString**](FormApi.md#testFormIntegerBooleanString) | **POST** /form/integer/boolean/string | Test form parameter(s) |
+| [**testFormOneof**](FormApi.md#testFormOneof) | **POST** /form/oneof | Test form parameter(s) for oneOf schema |
+
+
+
+## testFormIntegerBooleanString
+
+> String testFormIntegerBooleanString(integerForm, booleanForm, stringForm)
+
+Test form parameter(s)
+
+Test form parameter(s)
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.FormApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://localhost:3000");
+
+ FormApi apiInstance = new FormApi(defaultClient);
+ Integer integerForm = 56; // Integer |
+ Boolean booleanForm = true; // Boolean |
+ String stringForm = "stringForm_example"; // String |
+ try {
+ String result = apiInstance.testFormIntegerBooleanString(integerForm, booleanForm, stringForm);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling FormApi#testFormIntegerBooleanString");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **integerForm** | **Integer**| | [optional] |
+| **booleanForm** | **Boolean**| | [optional] |
+| **stringForm** | **String**| | [optional] |
+
+### Return type
+
+**String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: application/x-www-form-urlencoded
+- **Accept**: text/plain
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Successful operation | - |
+
+
+## testFormOneof
+
+> String testFormOneof(form1, form2, form3, form4, id, name)
+
+Test form parameter(s) for oneOf schema
+
+Test form parameter(s) for oneOf schema
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.FormApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://localhost:3000");
+
+ FormApi apiInstance = new FormApi(defaultClient);
+ String form1 = "form1_example"; // String |
+ Integer form2 = 56; // Integer |
+ String form3 = "form3_example"; // String |
+ Boolean form4 = true; // Boolean |
+ Long id = 56L; // Long |
+ String name = "name_example"; // String |
+ try {
+ String result = apiInstance.testFormOneof(form1, form2, form3, form4, id, name);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling FormApi#testFormOneof");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **form1** | **String**| | [optional] |
+| **form2** | **Integer**| | [optional] |
+| **form3** | **String**| | [optional] |
+| **form4** | **Boolean**| | [optional] |
+| **id** | **Long**| | [optional] |
+| **name** | **String**| | [optional] |
+
+### Return type
+
+**String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: application/x-www-form-urlencoded
+- **Accept**: text/plain
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Successful operation | - |
+
diff --git a/samples/client/petstore/java/resteasy-echo/docs/FormatTest.md b/samples/client/petstore/java/resteasy-echo/docs/FormatTest.md
deleted file mode 100644
index 01b8c777ae0..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/FormatTest.md
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-# FormatTest
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**integer** | **Integer** | | [optional] |
-|**int32** | **Integer** | | [optional] |
-|**int64** | **Long** | | [optional] |
-|**number** | **BigDecimal** | | |
-|**_float** | **Float** | | [optional] |
-|**_double** | **Double** | | [optional] |
-|**decimal** | **BigDecimal** | | [optional] |
-|**string** | **String** | | [optional] |
-|**_byte** | **byte[]** | | |
-|**binary** | **File** | | [optional] |
-|**date** | **LocalDate** | | |
-|**dateTime** | **OffsetDateTime** | | [optional] |
-|**uuid** | **UUID** | | [optional] |
-|**password** | **String** | | |
-|**patternWithDigits** | **String** | A string that is a 10 digit number. Can have leading zeros. | [optional] |
-|**patternWithDigitsAndDelimiter** | **String** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/HasOnlyReadOnly.md b/samples/client/petstore/java/resteasy-echo/docs/HasOnlyReadOnly.md
deleted file mode 100644
index 29da5205dbb..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/HasOnlyReadOnly.md
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-# HasOnlyReadOnly
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**bar** | **String** | | [optional] [readonly] |
-|**foo** | **String** | | [optional] [readonly] |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/HeaderApi.md b/samples/client/petstore/java/resteasy-echo/docs/HeaderApi.md
new file mode 100644
index 00000000000..e30880043fa
--- /dev/null
+++ b/samples/client/petstore/java/resteasy-echo/docs/HeaderApi.md
@@ -0,0 +1,83 @@
+# HeaderApi
+
+All URIs are relative to *http://localhost:3000*
+
+| Method | HTTP request | Description |
+|------------- | ------------- | -------------|
+| [**testHeaderIntegerBooleanStringEnums**](HeaderApi.md#testHeaderIntegerBooleanStringEnums) | **GET** /header/integer/boolean/string/enums | Test header parameter(s) |
+
+
+
+## testHeaderIntegerBooleanStringEnums
+
+> String testHeaderIntegerBooleanStringEnums(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader)
+
+Test header parameter(s)
+
+Test header parameter(s)
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.HeaderApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://localhost:3000");
+
+ HeaderApi apiInstance = new HeaderApi(defaultClient);
+ Integer integerHeader = 56; // Integer |
+ Boolean booleanHeader = true; // Boolean |
+ String stringHeader = "stringHeader_example"; // String |
+ String enumNonrefStringHeader = "success"; // String |
+ StringEnumRef enumRefStringHeader = StringEnumRef.fromValue("success"); // StringEnumRef |
+ try {
+ String result = apiInstance.testHeaderIntegerBooleanStringEnums(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling HeaderApi#testHeaderIntegerBooleanStringEnums");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **integerHeader** | **Integer**| | [optional] |
+| **booleanHeader** | **Boolean**| | [optional] |
+| **stringHeader** | **String**| | [optional] |
+| **enumNonrefStringHeader** | **String**| | [optional] [enum: success, failure, unclassified] |
+| **enumRefStringHeader** | [**StringEnumRef**](.md)| | [optional] [enum: success, failure, unclassified] |
+
+### Return type
+
+**String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: text/plain
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Successful operation | - |
+
diff --git a/samples/client/petstore/java/resteasy-echo/docs/HealthCheckResult.md b/samples/client/petstore/java/resteasy-echo/docs/HealthCheckResult.md
deleted file mode 100644
index 4885e6f1cad..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/HealthCheckResult.md
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-# HealthCheckResult
-
-Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model.
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**nullableMessage** | **String** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/MapTest.md b/samples/client/petstore/java/resteasy-echo/docs/MapTest.md
deleted file mode 100644
index 54380188e1d..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/MapTest.md
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-# MapTest
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**mapMapOfString** | **Map<String, Map<String, String>>** | | [optional] |
-|**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional] |
-|**directMap** | **Map<String, Boolean>** | | [optional] |
-|**indirectMap** | **Map<String, Boolean>** | | [optional] |
-
-
-
-## Enum: Map<String, InnerEnum>
-
-| Name | Value |
-|---- | -----|
-| UPPER | "UPPER" |
-| LOWER | "lower" |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/java/resteasy-echo/docs/MixedPropertiesAndAdditionalPropertiesClass.md
deleted file mode 100644
index a5ddf0faa6a..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/MixedPropertiesAndAdditionalPropertiesClass.md
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-# MixedPropertiesAndAdditionalPropertiesClass
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**uuid** | **UUID** | | [optional] |
-|**dateTime** | **OffsetDateTime** | | [optional] |
-|**map** | [**Map<String, Animal>**](Animal.md) | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/Model200Response.md b/samples/client/petstore/java/resteasy-echo/docs/Model200Response.md
deleted file mode 100644
index 109411580c6..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/Model200Response.md
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-# Model200Response
-
-Model for testing model name starting with number
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**name** | **Integer** | | [optional] |
-|**propertyClass** | **String** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/ModelApiResponse.md b/samples/client/petstore/java/resteasy-echo/docs/ModelApiResponse.md
deleted file mode 100644
index e374c2dd2de..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/ModelApiResponse.md
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-# ModelApiResponse
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**code** | **Integer** | | [optional] |
-|**type** | **String** | | [optional] |
-|**message** | **String** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/ModelFile.md b/samples/client/petstore/java/resteasy-echo/docs/ModelFile.md
deleted file mode 100644
index adcde984f52..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/ModelFile.md
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-# ModelFile
-
-Must be named `File` for test.
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**sourceURI** | **String** | Test capitalization | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/ModelList.md b/samples/client/petstore/java/resteasy-echo/docs/ModelList.md
deleted file mode 100644
index f93ab7dde8d..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/ModelList.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-# ModelList
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**_123list** | **String** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/ModelReturn.md b/samples/client/petstore/java/resteasy-echo/docs/ModelReturn.md
deleted file mode 100644
index 0bd356861eb..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/ModelReturn.md
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-# ModelReturn
-
-Model for testing reserved words
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**_return** | **Integer** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/Name.md b/samples/client/petstore/java/resteasy-echo/docs/Name.md
deleted file mode 100644
index c901d943530..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/Name.md
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-# Name
-
-Model for testing model name same as property name
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**name** | **Integer** | | |
-|**snakeCase** | **Integer** | | [optional] [readonly] |
-|**property** | **String** | | [optional] |
-|**_123number** | **Integer** | | [optional] [readonly] |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/NullableClass.md b/samples/client/petstore/java/resteasy-echo/docs/NullableClass.md
deleted file mode 100644
index fa98c5c6d98..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/NullableClass.md
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-# NullableClass
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**integerProp** | **Integer** | | [optional] |
-|**numberProp** | **BigDecimal** | | [optional] |
-|**booleanProp** | **Boolean** | | [optional] |
-|**stringProp** | **String** | | [optional] |
-|**dateProp** | **LocalDate** | | [optional] |
-|**datetimeProp** | **OffsetDateTime** | | [optional] |
-|**arrayNullableProp** | **List<Object>** | | [optional] |
-|**arrayAndItemsNullableProp** | **List<Object>** | | [optional] |
-|**arrayItemsNullable** | **List<Object>** | | [optional] |
-|**objectNullableProp** | **Map<String, Object>** | | [optional] |
-|**objectAndItemsNullableProp** | **Map<String, Object>** | | [optional] |
-|**objectItemsNullable** | **Map<String, Object>** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/NumberOnly.md b/samples/client/petstore/java/resteasy-echo/docs/NumberOnly.md
deleted file mode 100644
index b8ed1a4cfae..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/NumberOnly.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-# NumberOnly
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**justNumber** | **BigDecimal** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/NumberPropertiesOnly.md b/samples/client/petstore/java/resteasy-echo/docs/NumberPropertiesOnly.md
new file mode 100644
index 00000000000..7e153538475
--- /dev/null
+++ b/samples/client/petstore/java/resteasy-echo/docs/NumberPropertiesOnly.md
@@ -0,0 +1,15 @@
+
+
+# NumberPropertiesOnly
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**number** | **BigDecimal** | | [optional] |
+|**_float** | **Float** | | [optional] |
+|**_double** | **Double** | | [optional] |
+
+
+
diff --git a/samples/client/petstore/java/resteasy-echo/docs/ObjectWithDeprecatedFields.md b/samples/client/petstore/java/resteasy-echo/docs/ObjectWithDeprecatedFields.md
deleted file mode 100644
index f1cf571f4c0..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/ObjectWithDeprecatedFields.md
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-# ObjectWithDeprecatedFields
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**uuid** | **String** | | [optional] |
-|**id** | **BigDecimal** | | [optional] |
-|**deprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional] |
-|**bars** | **List<String>** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/Order.md b/samples/client/petstore/java/resteasy-echo/docs/Order.md
deleted file mode 100644
index 27af32855c5..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/Order.md
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-# Order
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**id** | **Long** | | [optional] |
-|**petId** | **Long** | | [optional] |
-|**quantity** | **Integer** | | [optional] |
-|**shipDate** | **OffsetDateTime** | | [optional] |
-|**status** | [**StatusEnum**](#StatusEnum) | Order Status | [optional] |
-|**complete** | **Boolean** | | [optional] |
-
-
-
-## Enum: StatusEnum
-
-| Name | Value |
-|---- | -----|
-| PLACED | "placed" |
-| APPROVED | "approved" |
-| DELIVERED | "delivered" |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/OuterComposite.md b/samples/client/petstore/java/resteasy-echo/docs/OuterComposite.md
deleted file mode 100644
index 98b56e0763f..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/OuterComposite.md
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-# OuterComposite
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**myNumber** | **BigDecimal** | | [optional] |
-|**myString** | **String** | | [optional] |
-|**myBoolean** | **Boolean** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/OuterEnum.md b/samples/client/petstore/java/resteasy-echo/docs/OuterEnum.md
deleted file mode 100644
index 1f9b723eb8e..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/OuterEnum.md
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-# OuterEnum
-
-## Enum
-
-
-* `PLACED` (value: `"placed"`)
-
-* `APPROVED` (value: `"approved"`)
-
-* `DELIVERED` (value: `"delivered"`)
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/OuterEnumDefaultValue.md b/samples/client/petstore/java/resteasy-echo/docs/OuterEnumDefaultValue.md
deleted file mode 100644
index cbc7f4ba54d..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/OuterEnumDefaultValue.md
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-# OuterEnumDefaultValue
-
-## Enum
-
-
-* `PLACED` (value: `"placed"`)
-
-* `APPROVED` (value: `"approved"`)
-
-* `DELIVERED` (value: `"delivered"`)
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/OuterEnumInteger.md b/samples/client/petstore/java/resteasy-echo/docs/OuterEnumInteger.md
deleted file mode 100644
index f71dea30ad0..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/OuterEnumInteger.md
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-# OuterEnumInteger
-
-## Enum
-
-
-* `NUMBER_0` (value: `0`)
-
-* `NUMBER_1` (value: `1`)
-
-* `NUMBER_2` (value: `2`)
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/OuterEnumIntegerDefaultValue.md b/samples/client/petstore/java/resteasy-echo/docs/OuterEnumIntegerDefaultValue.md
deleted file mode 100644
index 99e6389f427..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/OuterEnumIntegerDefaultValue.md
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-# OuterEnumIntegerDefaultValue
-
-## Enum
-
-
-* `NUMBER_0` (value: `0`)
-
-* `NUMBER_1` (value: `1`)
-
-* `NUMBER_2` (value: `2`)
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/OuterObjectWithEnumProperty.md b/samples/client/petstore/java/resteasy-echo/docs/OuterObjectWithEnumProperty.md
deleted file mode 100644
index 0fafaaa2715..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/OuterObjectWithEnumProperty.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-# OuterObjectWithEnumProperty
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**value** | **OuterEnumInteger** | | |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/ParentWithNullable.md b/samples/client/petstore/java/resteasy-echo/docs/ParentWithNullable.md
deleted file mode 100644
index b8fcf6b42e8..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/ParentWithNullable.md
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-# ParentWithNullable
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**type** | [**TypeEnum**](#TypeEnum) | | [optional] |
-|**nullableProperty** | **String** | | [optional] |
-
-
-
-## Enum: TypeEnum
-
-| Name | Value |
-|---- | -----|
-| CHILDWITHNULLABLE | "ChildWithNullable" |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/PathApi.md b/samples/client/petstore/java/resteasy-echo/docs/PathApi.md
new file mode 100644
index 00000000000..e9a539e8c3e
--- /dev/null
+++ b/samples/client/petstore/java/resteasy-echo/docs/PathApi.md
@@ -0,0 +1,81 @@
+# PathApi
+
+All URIs are relative to *http://localhost:3000*
+
+| Method | HTTP request | Description |
+|------------- | ------------- | -------------|
+| [**testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath**](PathApi.md#testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath) | **GET** /path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path} | Test path parameter(s) |
+
+
+
+## testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath
+
+> String testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath)
+
+Test path parameter(s)
+
+Test path parameter(s)
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.PathApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://localhost:3000");
+
+ PathApi apiInstance = new PathApi(defaultClient);
+ String pathString = "pathString_example"; // String |
+ Integer pathInteger = 56; // Integer |
+ String enumNonrefStringPath = "success"; // String |
+ StringEnumRef enumRefStringPath = StringEnumRef.fromValue("success"); // StringEnumRef |
+ try {
+ String result = apiInstance.testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling PathApi#testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **pathString** | **String**| | |
+| **pathInteger** | **Integer**| | |
+| **enumNonrefStringPath** | **String**| | [enum: success, failure, unclassified] |
+| **enumRefStringPath** | [**StringEnumRef**](.md)| | [enum: success, failure, unclassified] |
+
+### Return type
+
+**String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: text/plain
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Successful operation | - |
+
diff --git a/samples/client/petstore/java/resteasy-echo/docs/Pet.md b/samples/client/petstore/java/resteasy-echo/docs/Pet.md
index 54af77a9f5a..82aa8a25ed7 100644
--- a/samples/client/petstore/java/resteasy-echo/docs/Pet.md
+++ b/samples/client/petstore/java/resteasy-echo/docs/Pet.md
@@ -8,9 +8,9 @@
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**id** | **Long** | | [optional] |
-|**category** | [**Category**](Category.md) | | [optional] |
|**name** | **String** | | |
-|**photoUrls** | **Set<String>** | | |
+|**category** | [**Category**](Category.md) | | [optional] |
+|**photoUrls** | **List<String>** | | |
|**tags** | [**List<Tag>**](Tag.md) | | [optional] |
|**status** | [**StatusEnum**](#StatusEnum) | pet status in the store | [optional] |
diff --git a/samples/client/petstore/java/resteasy-echo/docs/Query.md b/samples/client/petstore/java/resteasy-echo/docs/Query.md
new file mode 100644
index 00000000000..99c6fd6faa5
--- /dev/null
+++ b/samples/client/petstore/java/resteasy-echo/docs/Query.md
@@ -0,0 +1,24 @@
+
+
+# Query
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**id** | **Long** | Query | [optional] |
+|**outcomes** | [**List<OutcomesEnum>**](#List<OutcomesEnum>) | | [optional] |
+
+
+
+## Enum: List<OutcomesEnum>
+
+| Name | Value |
+|---- | -----|
+| SUCCESS | "SUCCESS" |
+| FAILURE | "FAILURE" |
+| SKIPPED | "SKIPPED" |
+
+
+
diff --git a/samples/client/petstore/java/resteasy-echo/docs/UserApi.md b/samples/client/petstore/java/resteasy-echo/docs/QueryApi.md
similarity index 51%
rename from samples/client/petstore/java/resteasy-echo/docs/UserApi.md
rename to samples/client/petstore/java/resteasy-echo/docs/QueryApi.md
index 8ad69e3dda3..2606c8e62ca 100644
--- a/samples/client/petstore/java/resteasy-echo/docs/UserApi.md
+++ b/samples/client/petstore/java/resteasy-echo/docs/QueryApi.md
@@ -1,27 +1,27 @@
-# UserApi
+# QueryApi
All URIs are relative to *http://localhost:3000*
| Method | HTTP request | Description |
|------------- | ------------- | -------------|
-| [**createUser**](UserApi.md#createUser) | **POST** /user | Create user |
-| [**createUsersWithArrayInput**](UserApi.md#createUsersWithArrayInput) | **POST** /user/createWithArray | Creates list of users with given input array |
-| [**createUsersWithListInput**](UserApi.md#createUsersWithListInput) | **POST** /user/createWithList | Creates list of users with given input array |
-| [**deleteUser**](UserApi.md#deleteUser) | **DELETE** /user/{username} | Delete user |
-| [**getUserByName**](UserApi.md#getUserByName) | **GET** /user/{username} | Get user by user name |
-| [**loginUser**](UserApi.md#loginUser) | **GET** /user/login | Logs user into the system |
-| [**logoutUser**](UserApi.md#logoutUser) | **GET** /user/logout | Logs out current logged in user session |
-| [**updateUser**](UserApi.md#updateUser) | **PUT** /user/{username} | Updated user |
+| [**testEnumRefString**](QueryApi.md#testEnumRefString) | **GET** /query/enum_ref_string | Test query parameter(s) |
+| [**testQueryDatetimeDateString**](QueryApi.md#testQueryDatetimeDateString) | **GET** /query/datetime/date/string | Test query parameter(s) |
+| [**testQueryIntegerBooleanString**](QueryApi.md#testQueryIntegerBooleanString) | **GET** /query/integer/boolean/string | Test query parameter(s) |
+| [**testQueryStyleDeepObjectExplodeTrueObject**](QueryApi.md#testQueryStyleDeepObjectExplodeTrueObject) | **GET** /query/style_deepObject/explode_true/object | Test query parameter(s) |
+| [**testQueryStyleDeepObjectExplodeTrueObjectAllOf**](QueryApi.md#testQueryStyleDeepObjectExplodeTrueObjectAllOf) | **GET** /query/style_deepObject/explode_true/object/allOf | Test query parameter(s) |
+| [**testQueryStyleFormExplodeTrueArrayString**](QueryApi.md#testQueryStyleFormExplodeTrueArrayString) | **GET** /query/style_form/explode_true/array_string | Test query parameter(s) |
+| [**testQueryStyleFormExplodeTrueObject**](QueryApi.md#testQueryStyleFormExplodeTrueObject) | **GET** /query/style_form/explode_true/object | Test query parameter(s) |
+| [**testQueryStyleFormExplodeTrueObjectAllOf**](QueryApi.md#testQueryStyleFormExplodeTrueObjectAllOf) | **GET** /query/style_form/explode_true/object/allOf | Test query parameter(s) |
-## createUser
+## testEnumRefString
-> createUser(user)
+> String testEnumRefString(enumNonrefStringQuery, enumRefStringQuery)
-Create user
+Test query parameter(s)
-This can only be done by the logged in user.
+Test query parameter(s)
### Example
@@ -31,281 +31,21 @@ import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.models.*;
-import org.openapitools.client.api.UserApi;
+import org.openapitools.client.api.QueryApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:3000");
- UserApi apiInstance = new UserApi(defaultClient);
- User user = new User(); // User | Created user object
+ QueryApi apiInstance = new QueryApi(defaultClient);
+ String enumNonrefStringQuery = "success"; // String |
+ StringEnumRef enumRefStringQuery = StringEnumRef.fromValue("success"); // StringEnumRef |
try {
- apiInstance.createUser(user);
- } catch (ApiException e) {
- System.err.println("Exception when calling UserApi#createUser");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **user** | [**User**](User.md)| Created user object | |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
-- **Content-Type**: application/json
-- **Accept**: Not defined
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **0** | successful operation | - |
-
-
-## createUsersWithArrayInput
-
-> createUsersWithArrayInput(user)
-
-Creates list of users with given input array
-
-
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.UserApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- UserApi apiInstance = new UserApi(defaultClient);
- List user = Arrays.asList(); // List | List of user object
- try {
- apiInstance.createUsersWithArrayInput(user);
- } catch (ApiException e) {
- System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **user** | [**List<User>**](User.md)| List of user object | |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
-- **Content-Type**: application/json
-- **Accept**: Not defined
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **0** | successful operation | - |
-
-
-## createUsersWithListInput
-
-> createUsersWithListInput(user)
-
-Creates list of users with given input array
-
-
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.UserApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- UserApi apiInstance = new UserApi(defaultClient);
- List user = Arrays.asList(); // List | List of user object
- try {
- apiInstance.createUsersWithListInput(user);
- } catch (ApiException e) {
- System.err.println("Exception when calling UserApi#createUsersWithListInput");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **user** | [**List<User>**](User.md)| List of user object | |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
-- **Content-Type**: application/json
-- **Accept**: Not defined
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **0** | successful operation | - |
-
-
-## deleteUser
-
-> deleteUser(username)
-
-Delete user
-
-This can only be done by the logged in user.
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.UserApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- UserApi apiInstance = new UserApi(defaultClient);
- String username = "username_example"; // String | The name that needs to be deleted
- try {
- apiInstance.deleteUser(username);
- } catch (ApiException e) {
- System.err.println("Exception when calling UserApi#deleteUser");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **username** | **String**| The name that needs to be deleted | |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
-- **Content-Type**: Not defined
-- **Accept**: Not defined
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **400** | Invalid username supplied | - |
-| **404** | User not found | - |
-
-
-## getUserByName
-
-> User getUserByName(username)
-
-Get user by user name
-
-
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.UserApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- UserApi apiInstance = new UserApi(defaultClient);
- String username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing.
- try {
- User result = apiInstance.getUserByName(username);
+ String result = apiInstance.testEnumRefString(enumNonrefStringQuery, enumRefStringQuery);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling UserApi#getUserByName");
+ System.err.println("Exception when calling QueryApi#testEnumRefString");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
@@ -320,77 +60,8 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
-| **username** | **String**| The name that needs to be fetched. Use user1 for testing. | |
-
-### Return type
-
-[**User**](User.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
-- **Content-Type**: Not defined
-- **Accept**: application/xml, application/json
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | successful operation | - |
-| **400** | Invalid username supplied | - |
-| **404** | User not found | - |
-
-
-## loginUser
-
-> String loginUser(username, password)
-
-Logs user into the system
-
-
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.UserApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- UserApi apiInstance = new UserApi(defaultClient);
- String username = "username_example"; // String | The user name for login
- String password = "password_example"; // String | The password for login in clear text
- try {
- String result = apiInstance.loginUser(username, password);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling UserApi#loginUser");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **username** | **String**| The user name for login | |
-| **password** | **String**| The password for login in clear text | |
+| **enumNonrefStringQuery** | **String**| | [optional] [enum: success, failure, unclassified] |
+| **enumRefStringQuery** | [**StringEnumRef**](.md)| | [optional] [enum: success, failure, unclassified] |
### Return type
@@ -403,23 +74,22 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
-- **Accept**: application/xml, application/json
+- **Accept**: text/plain
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | successful operation | * X-Rate-Limit - calls per hour allowed by the user
* X-Expires-After - date in UTC when token expires
|
-| **400** | Invalid username/password supplied | - |
+| **200** | Successful operation | - |
-## logoutUser
+## testQueryDatetimeDateString
-> logoutUser()
-
-Logs out current logged in user session
+> String testQueryDatetimeDateString(datetimeQuery, dateQuery, stringQuery)
+Test query parameter(s)
+Test query parameter(s)
### Example
@@ -429,81 +99,22 @@ import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.models.*;
-import org.openapitools.client.api.UserApi;
+import org.openapitools.client.api.QueryApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:3000");
- UserApi apiInstance = new UserApi(defaultClient);
+ QueryApi apiInstance = new QueryApi(defaultClient);
+ OffsetDateTime datetimeQuery = OffsetDateTime.now(); // OffsetDateTime |
+ LocalDate dateQuery = LocalDate.now(); // LocalDate |
+ String stringQuery = "stringQuery_example"; // String |
try {
- apiInstance.logoutUser();
+ String result = apiInstance.testQueryDatetimeDateString(datetimeQuery, dateQuery, stringQuery);
+ System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling UserApi#logoutUser");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-This endpoint does not need any parameter.
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
-- **Content-Type**: Not defined
-- **Accept**: Not defined
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **0** | successful operation | - |
-
-
-## updateUser
-
-> updateUser(username, user)
-
-Updated user
-
-This can only be done by the logged in user.
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.UserApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- UserApi apiInstance = new UserApi(defaultClient);
- String username = "username_example"; // String | name that need to be deleted
- User user = new User(); // User | Updated user object
- try {
- apiInstance.updateUser(username, user);
- } catch (ApiException e) {
- System.err.println("Exception when calling UserApi#updateUser");
+ System.err.println("Exception when calling QueryApi#testQueryDatetimeDateString");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
@@ -518,12 +129,13 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
-| **username** | **String**| name that need to be deleted | |
-| **user** | [**User**](User.md)| Updated user object | |
+| **datetimeQuery** | **OffsetDateTime**| | [optional] |
+| **dateQuery** | **LocalDate**| | [optional] |
+| **stringQuery** | **String**| | [optional] |
### Return type
-null (empty response body)
+**String**
### Authorization
@@ -531,13 +143,412 @@ No authorization required
### HTTP request headers
-- **Content-Type**: application/json
-- **Accept**: Not defined
+- **Content-Type**: Not defined
+- **Accept**: text/plain
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **400** | Invalid user supplied | - |
-| **404** | User not found | - |
+| **200** | Successful operation | - |
+
+
+## testQueryIntegerBooleanString
+
+> String testQueryIntegerBooleanString(integerQuery, booleanQuery, stringQuery)
+
+Test query parameter(s)
+
+Test query parameter(s)
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.QueryApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://localhost:3000");
+
+ QueryApi apiInstance = new QueryApi(defaultClient);
+ Integer integerQuery = 56; // Integer |
+ Boolean booleanQuery = true; // Boolean |
+ String stringQuery = "stringQuery_example"; // String |
+ try {
+ String result = apiInstance.testQueryIntegerBooleanString(integerQuery, booleanQuery, stringQuery);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling QueryApi#testQueryIntegerBooleanString");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **integerQuery** | **Integer**| | [optional] |
+| **booleanQuery** | **Boolean**| | [optional] |
+| **stringQuery** | **String**| | [optional] |
+
+### Return type
+
+**String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: text/plain
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Successful operation | - |
+
+
+## testQueryStyleDeepObjectExplodeTrueObject
+
+> String testQueryStyleDeepObjectExplodeTrueObject(queryObject)
+
+Test query parameter(s)
+
+Test query parameter(s)
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.QueryApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://localhost:3000");
+
+ QueryApi apiInstance = new QueryApi(defaultClient);
+ Pet queryObject = new Pet(); // Pet |
+ try {
+ String result = apiInstance.testQueryStyleDeepObjectExplodeTrueObject(queryObject);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling QueryApi#testQueryStyleDeepObjectExplodeTrueObject");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **queryObject** | [**Pet**](.md)| | [optional] |
+
+### Return type
+
+**String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: text/plain
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Successful operation | - |
+
+
+## testQueryStyleDeepObjectExplodeTrueObjectAllOf
+
+> String testQueryStyleDeepObjectExplodeTrueObjectAllOf(queryObject)
+
+Test query parameter(s)
+
+Test query parameter(s)
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.QueryApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://localhost:3000");
+
+ QueryApi apiInstance = new QueryApi(defaultClient);
+ TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject = new TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(); // TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter |
+ try {
+ String result = apiInstance.testQueryStyleDeepObjectExplodeTrueObjectAllOf(queryObject);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling QueryApi#testQueryStyleDeepObjectExplodeTrueObjectAllOf");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **queryObject** | [**TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter**](.md)| | [optional] |
+
+### Return type
+
+**String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: text/plain
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Successful operation | - |
+
+
+## testQueryStyleFormExplodeTrueArrayString
+
+> String testQueryStyleFormExplodeTrueArrayString(queryObject)
+
+Test query parameter(s)
+
+Test query parameter(s)
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.QueryApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://localhost:3000");
+
+ QueryApi apiInstance = new QueryApi(defaultClient);
+ TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject = new TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(); // TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter |
+ try {
+ String result = apiInstance.testQueryStyleFormExplodeTrueArrayString(queryObject);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling QueryApi#testQueryStyleFormExplodeTrueArrayString");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **queryObject** | [**TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter**](.md)| | [optional] |
+
+### Return type
+
+**String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: text/plain
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Successful operation | - |
+
+
+## testQueryStyleFormExplodeTrueObject
+
+> String testQueryStyleFormExplodeTrueObject(queryObject)
+
+Test query parameter(s)
+
+Test query parameter(s)
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.QueryApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://localhost:3000");
+
+ QueryApi apiInstance = new QueryApi(defaultClient);
+ Pet queryObject = new Pet(); // Pet |
+ try {
+ String result = apiInstance.testQueryStyleFormExplodeTrueObject(queryObject);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling QueryApi#testQueryStyleFormExplodeTrueObject");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **queryObject** | [**Pet**](.md)| | [optional] |
+
+### Return type
+
+**String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: text/plain
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Successful operation | - |
+
+
+## testQueryStyleFormExplodeTrueObjectAllOf
+
+> String testQueryStyleFormExplodeTrueObjectAllOf(queryObject)
+
+Test query parameter(s)
+
+Test query parameter(s)
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.QueryApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://localhost:3000");
+
+ QueryApi apiInstance = new QueryApi(defaultClient);
+ DataQuery queryObject = new DataQuery(); // DataQuery |
+ try {
+ String result = apiInstance.testQueryStyleFormExplodeTrueObjectAllOf(queryObject);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling QueryApi#testQueryStyleFormExplodeTrueObjectAllOf");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **queryObject** | [**DataQuery**](.md)| | [optional] |
+
+### Return type
+
+**String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: text/plain
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Successful operation | - |
diff --git a/samples/client/petstore/java/resteasy-echo/docs/ReadOnlyFirst.md b/samples/client/petstore/java/resteasy-echo/docs/ReadOnlyFirst.md
deleted file mode 100644
index ad6af7ee155..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/ReadOnlyFirst.md
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-# ReadOnlyFirst
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**bar** | **String** | | [optional] [readonly] |
-|**baz** | **String** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/SingleRefType.md b/samples/client/petstore/java/resteasy-echo/docs/SingleRefType.md
deleted file mode 100644
index cc269bb871f..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/SingleRefType.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-# SingleRefType
-
-## Enum
-
-
-* `ADMIN` (value: `"admin"`)
-
-* `USER` (value: `"user"`)
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/SpecialModelName.md b/samples/client/petstore/java/resteasy-echo/docs/SpecialModelName.md
deleted file mode 100644
index 4b6a06e3622..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/SpecialModelName.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-# SpecialModelName
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**$specialPropertyName** | **Long** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/StoreApi.md b/samples/client/petstore/java/resteasy-echo/docs/StoreApi.md
deleted file mode 100644
index 9cb3a78fb32..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/StoreApi.md
+++ /dev/null
@@ -1,282 +0,0 @@
-# StoreApi
-
-All URIs are relative to *http://localhost:3000*
-
-| Method | HTTP request | Description |
-|------------- | ------------- | -------------|
-| [**deleteOrder**](StoreApi.md#deleteOrder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID |
-| [**getInventory**](StoreApi.md#getInventory) | **GET** /store/inventory | Returns pet inventories by status |
-| [**getOrderById**](StoreApi.md#getOrderById) | **GET** /store/order/{order_id} | Find purchase order by ID |
-| [**placeOrder**](StoreApi.md#placeOrder) | **POST** /store/order | Place an order for a pet |
-
-
-
-## deleteOrder
-
-> deleteOrder(orderId)
-
-Delete purchase order by ID
-
-For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.StoreApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- StoreApi apiInstance = new StoreApi(defaultClient);
- String orderId = "orderId_example"; // String | ID of the order that needs to be deleted
- try {
- apiInstance.deleteOrder(orderId);
- } catch (ApiException e) {
- System.err.println("Exception when calling StoreApi#deleteOrder");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **orderId** | **String**| ID of the order that needs to be deleted | |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
-- **Content-Type**: Not defined
-- **Accept**: Not defined
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **400** | Invalid ID supplied | - |
-| **404** | Order not found | - |
-
-
-## getInventory
-
-> Map<String, Integer> getInventory()
-
-Returns pet inventories by status
-
-Returns a map of status codes to quantities
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.auth.*;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.StoreApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- // Configure API key authorization: api_key
- ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
- api_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //api_key.setApiKeyPrefix("Token");
-
- StoreApi apiInstance = new StoreApi(defaultClient);
- try {
- Map result = apiInstance.getInventory();
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling StoreApi#getInventory");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-This endpoint does not need any parameter.
-
-### Return type
-
-**Map<String, Integer>**
-
-### Authorization
-
-[api_key](../README.md#api_key)
-
-### HTTP request headers
-
-- **Content-Type**: Not defined
-- **Accept**: application/json
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | successful operation | - |
-
-
-## getOrderById
-
-> Order getOrderById(orderId)
-
-Find purchase order by ID
-
-For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.StoreApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- StoreApi apiInstance = new StoreApi(defaultClient);
- Long orderId = 56L; // Long | ID of pet that needs to be fetched
- try {
- Order result = apiInstance.getOrderById(orderId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling StoreApi#getOrderById");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **orderId** | **Long**| ID of pet that needs to be fetched | |
-
-### Return type
-
-[**Order**](Order.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
-- **Content-Type**: Not defined
-- **Accept**: application/xml, application/json
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | successful operation | - |
-| **400** | Invalid ID supplied | - |
-| **404** | Order not found | - |
-
-
-## placeOrder
-
-> Order placeOrder(order)
-
-Place an order for a pet
-
-
-
-### Example
-
-```java
-// Import classes:
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiException;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.models.*;
-import org.openapitools.client.api.StoreApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost:3000");
-
- StoreApi apiInstance = new StoreApi(defaultClient);
- Order order = new Order(); // Order | order placed for purchasing the pet
- try {
- Order result = apiInstance.placeOrder(order);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling StoreApi#placeOrder");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **order** | [**Order**](Order.md)| order placed for purchasing the pet | |
-
-### Return type
-
-[**Order**](Order.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
-- **Content-Type**: application/json
-- **Accept**: application/xml, application/json
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | successful operation | - |
-| **400** | Invalid Order | - |
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/StringEnumRef.md b/samples/client/petstore/java/resteasy-echo/docs/StringEnumRef.md
new file mode 100644
index 00000000000..dff22ecf074
--- /dev/null
+++ b/samples/client/petstore/java/resteasy-echo/docs/StringEnumRef.md
@@ -0,0 +1,15 @@
+
+
+# StringEnumRef
+
+## Enum
+
+
+* `SUCCESS` (value: `"success"`)
+
+* `FAILURE` (value: `"failure"`)
+
+* `UNCLASSIFIED` (value: `"unclassified"`)
+
+
+
diff --git a/samples/client/petstore/java/resteasy-echo/docs/TestInlineFreeformAdditionalPropertiesRequest.md b/samples/client/petstore/java/resteasy-echo/docs/TestInlineFreeformAdditionalPropertiesRequest.md
deleted file mode 100644
index dc066e6c7da..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/TestInlineFreeformAdditionalPropertiesRequest.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-# TestInlineFreeformAdditionalPropertiesRequest
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**someProperty** | **String** | | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md b/samples/client/petstore/java/resteasy-echo/docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md
new file mode 100644
index 00000000000..a756a343e8a
--- /dev/null
+++ b/samples/client/petstore/java/resteasy-echo/docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md
@@ -0,0 +1,16 @@
+
+
+# TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**size** | **String** | | [optional] |
+|**color** | **String** | | [optional] |
+|**id** | **Long** | | [optional] |
+|**name** | **String** | | [optional] |
+
+
+
diff --git a/samples/client/petstore/java/resteasy-echo/docs/ArrayOfNumberOnly.md b/samples/client/petstore/java/resteasy-echo/docs/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md
similarity index 50%
rename from samples/client/petstore/java/resteasy-echo/docs/ArrayOfNumberOnly.md
rename to samples/client/petstore/java/resteasy-echo/docs/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md
index a5753530aad..9235e80fb82 100644
--- a/samples/client/petstore/java/resteasy-echo/docs/ArrayOfNumberOnly.md
+++ b/samples/client/petstore/java/resteasy-echo/docs/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md
@@ -1,13 +1,13 @@
-# ArrayOfNumberOnly
+# TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter
## Properties
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
-|**arrayNumber** | **List<BigDecimal>** | | [optional] |
+|**values** | **List<String>** | | [optional] |
diff --git a/samples/client/petstore/java/resteasy-echo/docs/User.md b/samples/client/petstore/java/resteasy-echo/docs/User.md
deleted file mode 100644
index 08813e4b10b..00000000000
--- a/samples/client/petstore/java/resteasy-echo/docs/User.md
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-# User
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**id** | **Long** | | [optional] |
-|**username** | **String** | | [optional] |
-|**firstName** | **String** | | [optional] |
-|**lastName** | **String** | | [optional] |
-|**email** | **String** | | [optional] |
-|**password** | **String** | | [optional] |
-|**phone** | **String** | | [optional] |
-|**userStatus** | **Integer** | User Status | [optional] |
-
-
-
diff --git a/samples/client/petstore/java/resteasy-echo/pom.xml b/samples/client/petstore/java/resteasy-echo/pom.xml
index 79248dcdd8d..67f2e7229e8 100644
--- a/samples/client/petstore/java/resteasy-echo/pom.xml
+++ b/samples/client/petstore/java/resteasy-echo/pom.xml
@@ -5,7 +5,7 @@
petstore-resteasy-echo
jar
petstore-resteasy-echo
- 1.0.0
+ 0.1.0
scm:git:git@github.com:openapitools/openapi-generator.git
scm:git:git@github.com:openapitools/openapi-generator.git
@@ -15,7 +15,7 @@
Unlicense
- https://www.apache.org/licenses/LICENSE-2.0.html
+ http://www.apache.org/licenses/LICENSE-2.0.html
repo
diff --git a/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/ApiClient.java b/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/ApiClient.java
index b979fd2111b..44a553eb4d5 100644
--- a/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/ApiClient.java
+++ b/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/ApiClient.java
@@ -46,7 +46,6 @@ import org.openapitools.client.auth.Authentication;
import org.openapitools.client.auth.HttpBasicAuth;
import org.openapitools.client.auth.HttpBearerAuth;
import org.openapitools.client.auth.ApiKeyAuth;
-import org.openapitools.client.auth.OAuth;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ApiClient extends JavaTimeFormatter {
@@ -78,15 +77,12 @@ public class ApiClient extends JavaTimeFormatter {
this.json.setDateFormat((DateFormat) dateFormat.clone());
// Set default User-Agent.
- setUserAgent("OpenAPI-Generator/1.0.0/java");
+ setUserAgent("OpenAPI-Generator/0.1.0/java");
// Setup authentications (key: authentication name, value: authentication).
authentications = new HashMap();
- authentications.put("petstore_auth", new OAuth());
- authentications.put("api_key", new ApiKeyAuth("header", "api_key"));
- authentications.put("api_key_query", new ApiKeyAuth("query", "api_key_query"));
- authentications.put("http_basic_test", new HttpBasicAuth());
- authentications.put("bearer_test", new HttpBearerAuth("bearer"));
+ authentications.put("http_auth", new HttpBasicAuth());
+ authentications.put("http_bearer_auth", new HttpBearerAuth("bearer"));
// Prevent the authentications from being modified.
authentications = Collections.unmodifiableMap(authentications);
}
@@ -207,20 +203,6 @@ public class ApiClient extends JavaTimeFormatter {
throw new RuntimeException("No API key authentication configured!");
}
- /**
- * Helper method to set access token for the first OAuth2 authentication.
- * @param accessToken the access token
- */
- public void setAccessToken(String accessToken) {
- for (Authentication auth : authentications.values()) {
- if (auth instanceof OAuth) {
- ((OAuth) auth).setAccessToken(accessToken);
- return;
- }
- }
- throw new RuntimeException("No OAuth2 authentication configured!");
- }
-
/**
* Set the User-Agent header's value (by adding to the default header map).
* @param userAgent the User-Agent header value
diff --git a/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/ApiException.java b/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/ApiException.java
index 942dacc1d30..53d011b4ce5 100644
--- a/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/ApiException.java
+++ b/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/ApiException.java
@@ -1,9 +1,9 @@
/*
- * OpenAPI Petstore
- * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ * Echo Server API
+ * Echo Server API
*
- * The version of the OpenAPI document: 1.0.0
- *
+ * The version of the OpenAPI document: 0.1.0
+ * Contact: team@openapitools.org
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/Configuration.java b/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/Configuration.java
index 6ce5a1404df..73125b18c8f 100644
--- a/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/Configuration.java
+++ b/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/Configuration.java
@@ -1,9 +1,9 @@
/*
- * OpenAPI Petstore
- * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ * Echo Server API
+ * Echo Server API
*
- * The version of the OpenAPI document: 1.0.0
- *
+ * The version of the OpenAPI document: 0.1.0
+ * Contact: team@openapitools.org
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -15,7 +15,7 @@ package org.openapitools.client;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Configuration {
- public static final String VERSION = "1.0.0";
+ public static final String VERSION = "0.1.0";
private static ApiClient defaultApiClient = new ApiClient();
diff --git a/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/JavaTimeFormatter.java b/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/JavaTimeFormatter.java
index fde767b8e2f..b51199a21b0 100644
--- a/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/JavaTimeFormatter.java
+++ b/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/JavaTimeFormatter.java
@@ -1,9 +1,9 @@
/*
- * OpenAPI Petstore
- * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ * Echo Server API
+ * Echo Server API
*
- * The version of the OpenAPI document: 1.0.0
- *
+ * The version of the OpenAPI document: 0.1.0
+ * Contact: team@openapitools.org
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/Pair.java b/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/Pair.java
index 25b5a1b0879..6518a0948d8 100644
--- a/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/Pair.java
+++ b/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/Pair.java
@@ -1,9 +1,9 @@
/*
- * OpenAPI Petstore
- * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ * Echo Server API
+ * Echo Server API
*
- * The version of the OpenAPI document: 1.0.0
- *
+ * The version of the OpenAPI document: 0.1.0
+ * Contact: team@openapitools.org
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/RFC3339DateFormat.java b/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/RFC3339DateFormat.java
index f94cba613ba..22bbe68c49f 100644
--- a/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/RFC3339DateFormat.java
+++ b/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/RFC3339DateFormat.java
@@ -1,9 +1,9 @@
/*
- * OpenAPI Petstore
- * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ * Echo Server API
+ * Echo Server API
*
- * The version of the OpenAPI document: 1.0.0
- *
+ * The version of the OpenAPI document: 0.1.0
+ * Contact: team@openapitools.org
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/StringUtil.java b/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/StringUtil.java
index 4dc60597910..d6c3fc8a968 100644
--- a/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/StringUtil.java
+++ b/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/StringUtil.java
@@ -1,9 +1,9 @@
/*
- * OpenAPI Petstore
- * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ * Echo Server API
+ * Echo Server API
*
- * The version of the OpenAPI document: 1.0.0
- *
+ * The version of the OpenAPI document: 0.1.0
+ * Contact: team@openapitools.org
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
deleted file mode 100644
index 375fa787060..00000000000
--- a/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
+++ /dev/null
@@ -1,80 +0,0 @@
-package org.openapitools.client.api;
-
-import org.openapitools.client.ApiException;
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.Pair;
-
-import javax.ws.rs.core.GenericType;
-
-import org.openapitools.client.model.Client;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class AnotherFakeApi {
- private ApiClient apiClient;
-
- public AnotherFakeApi() {
- this(Configuration.getDefaultApiClient());
- }
-
- public AnotherFakeApi(ApiClient apiClient) {
- this.apiClient = apiClient;
- }
-
- public ApiClient getApiClient() {
- return apiClient;
- }
-
- public void setApiClient(ApiClient apiClient) {
- this.apiClient = apiClient;
- }
-
- /**
- * To test special tags
- * To test special tags and operation ID starting with number
- * @param client client model (required)
- * @return a {@code Client}
- * @throws ApiException if fails to make API call
- */
- public Client call123testSpecialTags(Client client) throws ApiException {
- Object localVarPostBody = client;
-
- // verify the required parameter 'client' is set
- if (client == null) {
- throw new ApiException(400, "Missing the required parameter 'client' when calling call123testSpecialTags");
- }
-
- // create path and map variables
- String localVarPath = "/another-fake/dummy".replaceAll("\\{format\\}","json");
-
- // query params
- List localVarQueryParams = new ArrayList();
- Map localVarHeaderParams = new HashMap();
- Map localVarCookieParams = new HashMap();
- Map localVarFormParams = new HashMap();
-
-
-
-
-
- final String[] localVarAccepts = {
- "application/json"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
-
- final String[] localVarContentTypes = {
- "application/json"
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
-
- String[] localVarAuthNames = new String[] { };
-
- GenericType localVarReturnType = new GenericType() {};
- return apiClient.invokeAPI(localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
-}
diff --git a/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/api/AuthApi.java b/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/api/AuthApi.java
new file mode 100644
index 00000000000..b054205b206
--- /dev/null
+++ b/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/api/AuthApi.java
@@ -0,0 +1,110 @@
+package org.openapitools.client.api;
+
+import org.openapitools.client.ApiException;
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.Pair;
+
+import javax.ws.rs.core.GenericType;
+
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+public class AuthApi {
+ private ApiClient apiClient;
+
+ public AuthApi() {
+ this(Configuration.getDefaultApiClient());
+ }
+
+ public AuthApi(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ public ApiClient getApiClient() {
+ return apiClient;
+ }
+
+ public void setApiClient(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ /**
+ * To test HTTP basic authentication
+ * To test HTTP basic authentication
+ * @return a {@code String}
+ * @throws ApiException if fails to make API call
+ */
+ public String testAuthHttpBasic() throws ApiException {
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/auth/http/basic".replaceAll("\\{format\\}","json");
+
+ // query params
+ List localVarQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+
+
+
+
+ final String[] localVarAccepts = {
+ "text/plain"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { "http_auth" };
+
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ }
+ /**
+ * To test HTTP bearer authentication
+ * To test HTTP bearer authentication
+ * @return a {@code String}
+ * @throws ApiException if fails to make API call
+ */
+ public String testAuthHttpBearer() throws ApiException {
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/auth/http/bearer".replaceAll("\\{format\\}","json");
+
+ // query params
+ List localVarQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+
+
+
+
+ final String[] localVarAccepts = {
+ "text/plain"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { "http_bearer_auth" };
+
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ }
+}
diff --git a/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/api/BodyApi.java b/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/api/BodyApi.java
new file mode 100644
index 00000000000..fde7ad5e99c
--- /dev/null
+++ b/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/api/BodyApi.java
@@ -0,0 +1,389 @@
+package org.openapitools.client.api;
+
+import org.openapitools.client.ApiException;
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.Pair;
+
+import javax.ws.rs.core.GenericType;
+
+import java.io.File;
+import org.openapitools.client.model.Pet;
+import org.openapitools.client.model.Tag;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+public class BodyApi {
+ private ApiClient apiClient;
+
+ public BodyApi() {
+ this(Configuration.getDefaultApiClient());
+ }
+
+ public BodyApi(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ public ApiClient getApiClient() {
+ return apiClient;
+ }
+
+ public void setApiClient(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ /**
+ * Test binary (gif) response body
+ * Test binary (gif) response body
+ * @return a {@code File}
+ * @throws ApiException if fails to make API call
+ */
+ public File testBinaryGif() throws ApiException {
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/binary/gif".replaceAll("\\{format\\}","json");
+
+ // query params
+ List localVarQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+
+
+
+
+ final String[] localVarAccepts = {
+ "image/gif"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { };
+
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ }
+ /**
+ * Test body parameter(s)
+ * Test body parameter(s)
+ * @param body (optional)
+ * @return a {@code String}
+ * @throws ApiException if fails to make API call
+ */
+ public String testBodyApplicationOctetstreamBinary(File body) throws ApiException {
+ Object localVarPostBody = body;
+
+ // create path and map variables
+ String localVarPath = "/body/application/octetstream/binary".replaceAll("\\{format\\}","json");
+
+ // query params
+ List localVarQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+
+
+
+
+ final String[] localVarAccepts = {
+ "text/plain"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+ "application/octet-stream"
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { };
+
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ }
+ /**
+ * Test array of binary in multipart mime
+ * Test array of binary in multipart mime
+ * @param files (required)
+ * @return a {@code String}
+ * @throws ApiException if fails to make API call
+ */
+ public String testBodyMultipartFormdataArrayOfBinary(List files) throws ApiException {
+ Object localVarPostBody = null;
+
+ // verify the required parameter 'files' is set
+ if (files == null) {
+ throw new ApiException(400, "Missing the required parameter 'files' when calling testBodyMultipartFormdataArrayOfBinary");
+ }
+
+ // create path and map variables
+ String localVarPath = "/body/application/octetstream/array_of_binary".replaceAll("\\{format\\}","json");
+
+ // query params
+ List localVarQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+
+
+
+ if (files != null)
+ localVarFormParams.put("files", files);
+
+ final String[] localVarAccepts = {
+ "text/plain"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+ "multipart/form-data"
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { };
+
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ }
+ /**
+ * Test single binary in multipart mime
+ * Test single binary in multipart mime
+ * @param myFile (optional)
+ * @return a {@code String}
+ * @throws ApiException if fails to make API call
+ */
+ public String testBodyMultipartFormdataSingleBinary(File myFile) throws ApiException {
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/body/application/octetstream/single_binary".replaceAll("\\{format\\}","json");
+
+ // query params
+ List localVarQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+
+
+
+ if (myFile != null)
+ localVarFormParams.put("my-file", myFile);
+
+ final String[] localVarAccepts = {
+ "text/plain"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+ "multipart/form-data"
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { };
+
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ }
+ /**
+ * Test body parameter(s)
+ * Test body parameter(s)
+ * @param pet Pet object that needs to be added to the store (optional)
+ * @return a {@code Pet}
+ * @throws ApiException if fails to make API call
+ */
+ public Pet testEchoBodyAllOfPet(Pet pet) throws ApiException {
+ Object localVarPostBody = pet;
+
+ // create path and map variables
+ String localVarPath = "/echo/body/allOf/Pet".replaceAll("\\{format\\}","json");
+
+ // query params
+ List localVarQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+
+
+
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { };
+
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ }
+ /**
+ * Test free form object
+ * Test free form object
+ * @param body Free form object (optional)
+ * @return a {@code String}
+ * @throws ApiException if fails to make API call
+ */
+ public String testEchoBodyFreeFormObjectResponseString(Object body) throws ApiException {
+ Object localVarPostBody = body;
+
+ // create path and map variables
+ String localVarPath = "/echo/body/FreeFormObject/response_string".replaceAll("\\{format\\}","json");
+
+ // query params
+ List localVarQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+
+
+
+
+ final String[] localVarAccepts = {
+ "text/plain"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { };
+
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ }
+ /**
+ * Test body parameter(s)
+ * Test body parameter(s)
+ * @param pet Pet object that needs to be added to the store (optional)
+ * @return a {@code Pet}
+ * @throws ApiException if fails to make API call
+ */
+ public Pet testEchoBodyPet(Pet pet) throws ApiException {
+ Object localVarPostBody = pet;
+
+ // create path and map variables
+ String localVarPath = "/echo/body/Pet".replaceAll("\\{format\\}","json");
+
+ // query params
+ List localVarQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+
+
+
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { };
+
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ }
+ /**
+ * Test empty response body
+ * Test empty response body
+ * @param pet Pet object that needs to be added to the store (optional)
+ * @return a {@code String}
+ * @throws ApiException if fails to make API call
+ */
+ public String testEchoBodyPetResponseString(Pet pet) throws ApiException {
+ Object localVarPostBody = pet;
+
+ // create path and map variables
+ String localVarPath = "/echo/body/Pet/response_string".replaceAll("\\{format\\}","json");
+
+ // query params
+ List localVarQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+
+
+
+
+ final String[] localVarAccepts = {
+ "text/plain"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { };
+
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ }
+ /**
+ * Test empty json (request body)
+ * Test empty json (request body)
+ * @param tag Tag object (optional)
+ * @return a {@code String}
+ * @throws ApiException if fails to make API call
+ */
+ public String testEchoBodyTagResponseString(Tag tag) throws ApiException {
+ Object localVarPostBody = tag;
+
+ // create path and map variables
+ String localVarPath = "/echo/body/Tag/response_string".replaceAll("\\{format\\}","json");
+
+ // query params
+ List localVarQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+
+
+
+
+ final String[] localVarAccepts = {
+ "text/plain"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { };
+
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ }
+}
diff --git a/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/api/FakeApi.java
deleted file mode 100644
index f9093377f76..00000000000
--- a/samples/client/petstore/java/resteasy-echo/src/main/java/org/openapitools/client/api/FakeApi.java
+++ /dev/null
@@ -1,1022 +0,0 @@
-package org.openapitools.client.api;
-
-import org.openapitools.client.ApiException;
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.Pair;
-
-import javax.ws.rs.core.GenericType;
-
-import java.math.BigDecimal;
-import org.openapitools.client.model.ChildWithNullable;
-import org.openapitools.client.model.Client;
-import org.openapitools.client.model.EnumClass;
-import org.openapitools.client.model.FakeBigDecimalMap200Response;
-import java.io.File;
-import org.openapitools.client.model.FileSchemaTestClass;
-import org.openapitools.client.model.HealthCheckResult;
-import java.time.LocalDate;
-import java.time.OffsetDateTime;
-import org.openapitools.client.model.OuterComposite;
-import org.openapitools.client.model.OuterObjectWithEnumProperty;
-import org.openapitools.client.model.Pet;
-import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest;
-import org.openapitools.client.model.User;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class FakeApi {
- private ApiClient apiClient;
-
- public FakeApi() {
- this(Configuration.getDefaultApiClient());
- }
-
- public FakeApi(ApiClient apiClient) {
- this.apiClient = apiClient;
- }
-
- public ApiClient getApiClient() {
- return apiClient;
- }
-
- public void setApiClient(ApiClient apiClient) {
- this.apiClient = apiClient;
- }
-
- /**
- *
- * for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys
- * @return a {@code FakeBigDecimalMap200Response}
- * @throws ApiException if fails to make API call
- */
- public FakeBigDecimalMap200Response fakeBigDecimalMap() throws ApiException {
- Object localVarPostBody = null;
-
- // create path and map variables
- String localVarPath = "/fake/BigDecimalMap".replaceAll("\\{format\\}","json");
-
- // query params
- List localVarQueryParams = new ArrayList();
- Map localVarHeaderParams = new HashMap();
- Map localVarCookieParams = new HashMap();
- Map localVarFormParams = new HashMap();
-
-
-
-
-
- final String[] localVarAccepts = {
- "*/*"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
-
- final String[] localVarContentTypes = {
-
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
-
- String[] localVarAuthNames = new String[] { };
-
- GenericType localVarReturnType = new GenericType() {};
- return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
- /**
- * Health check endpoint
- *
- * @return a {@code HealthCheckResult}
- * @throws ApiException if fails to make API call
- */
- public HealthCheckResult fakeHealthGet() throws ApiException {
- Object localVarPostBody = null;
-
- // create path and map variables
- String localVarPath = "/fake/health".replaceAll("\\{format\\}","json");
-
- // query params
- List localVarQueryParams = new ArrayList();
- Map localVarHeaderParams = new HashMap();
- Map localVarCookieParams = new HashMap();
- Map localVarFormParams = new HashMap