|
13 | 13 | import org.openapitools.client.model.XmlItem; |
14 | 14 |
|
15 | 15 | import java.util.ArrayList; |
| 16 | +import java.util.Collections; |
16 | 17 | import java.util.HashMap; |
17 | 18 | import java.util.List; |
18 | 19 | import java.util.Locale; |
@@ -69,7 +70,7 @@ public void createXmlItem(XmlItem xmlItem) throws RestClientException { |
69 | 70 | throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'xmlItem' when calling createXmlItem"); |
70 | 71 | } |
71 | 72 |
|
72 | | - String path = UriComponentsBuilder.fromPath("/fake/create_xml_item").build().toUriString(); |
| 73 | + String path = apiClient.expandPath("/fake/create_xml_item", Collections.<String, Object>emptyMap()); |
73 | 74 |
|
74 | 75 | final MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<String, String>(); |
75 | 76 | final HttpHeaders headerParams = new HttpHeaders(); |
@@ -98,7 +99,7 @@ public void createXmlItem(XmlItem xmlItem) throws RestClientException { |
98 | 99 | public Boolean fakeOuterBooleanSerialize(Boolean body) throws RestClientException { |
99 | 100 | Object postBody = body; |
100 | 101 |
|
101 | | - String path = UriComponentsBuilder.fromPath("/fake/outer/boolean").build().toUriString(); |
| 102 | + String path = apiClient.expandPath("/fake/outer/boolean", Collections.<String, Object>emptyMap()); |
102 | 103 |
|
103 | 104 | final MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<String, String>(); |
104 | 105 | final HttpHeaders headerParams = new HttpHeaders(); |
@@ -127,7 +128,7 @@ public Boolean fakeOuterBooleanSerialize(Boolean body) throws RestClientExceptio |
127 | 128 | public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws RestClientException { |
128 | 129 | Object postBody = body; |
129 | 130 |
|
130 | | - String path = UriComponentsBuilder.fromPath("/fake/outer/composite").build().toUriString(); |
| 131 | + String path = apiClient.expandPath("/fake/outer/composite", Collections.<String, Object>emptyMap()); |
131 | 132 |
|
132 | 133 | final MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<String, String>(); |
133 | 134 | final HttpHeaders headerParams = new HttpHeaders(); |
@@ -156,7 +157,7 @@ public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws Re |
156 | 157 | public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws RestClientException { |
157 | 158 | Object postBody = body; |
158 | 159 |
|
159 | | - String path = UriComponentsBuilder.fromPath("/fake/outer/number").build().toUriString(); |
| 160 | + String path = apiClient.expandPath("/fake/outer/number", Collections.<String, Object>emptyMap()); |
160 | 161 |
|
161 | 162 | final MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<String, String>(); |
162 | 163 | final HttpHeaders headerParams = new HttpHeaders(); |
@@ -185,7 +186,7 @@ public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws RestClientExc |
185 | 186 | public String fakeOuterStringSerialize(String body) throws RestClientException { |
186 | 187 | Object postBody = body; |
187 | 188 |
|
188 | | - String path = UriComponentsBuilder.fromPath("/fake/outer/string").build().toUriString(); |
| 189 | + String path = apiClient.expandPath("/fake/outer/string", Collections.<String, Object>emptyMap()); |
189 | 190 |
|
190 | 191 | final MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<String, String>(); |
191 | 192 | final HttpHeaders headerParams = new HttpHeaders(); |
@@ -218,7 +219,7 @@ public void testBodyWithFileSchema(FileSchemaTestClass body) throws RestClientEx |
218 | 219 | throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling testBodyWithFileSchema"); |
219 | 220 | } |
220 | 221 |
|
221 | | - String path = UriComponentsBuilder.fromPath("/fake/body-with-file-schema").build().toUriString(); |
| 222 | + String path = apiClient.expandPath("/fake/body-with-file-schema", Collections.<String, Object>emptyMap()); |
222 | 223 |
|
223 | 224 | final MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<String, String>(); |
224 | 225 | final HttpHeaders headerParams = new HttpHeaders(); |
@@ -257,7 +258,7 @@ public void testBodyWithQueryParams(String query, User body) throws RestClientEx |
257 | 258 | throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling testBodyWithQueryParams"); |
258 | 259 | } |
259 | 260 |
|
260 | | - String path = UriComponentsBuilder.fromPath("/fake/body-with-query-params").build().toUriString(); |
| 261 | + String path = apiClient.expandPath("/fake/body-with-query-params", Collections.<String, Object>emptyMap()); |
261 | 262 |
|
262 | 263 | final MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<String, String>(); |
263 | 264 | final HttpHeaders headerParams = new HttpHeaders(); |
@@ -293,7 +294,7 @@ public Client testClientModel(Client body) throws RestClientException { |
293 | 294 | throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling testClientModel"); |
294 | 295 | } |
295 | 296 |
|
296 | | - String path = UriComponentsBuilder.fromPath("/fake").build().toUriString(); |
| 297 | + String path = apiClient.expandPath("/fake", Collections.<String, Object>emptyMap()); |
297 | 298 |
|
298 | 299 | final MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<String, String>(); |
299 | 300 | final HttpHeaders headerParams = new HttpHeaders(); |
@@ -357,7 +358,7 @@ public void testEndpointParameters(BigDecimal number, Double _double, String pat |
357 | 358 | throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter '_byte' when calling testEndpointParameters"); |
358 | 359 | } |
359 | 360 |
|
360 | | - String path = UriComponentsBuilder.fromPath("/fake").build().toUriString(); |
| 361 | + String path = apiClient.expandPath("/fake", Collections.<String, Object>emptyMap()); |
361 | 362 |
|
362 | 363 | final MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<String, String>(); |
363 | 364 | final HttpHeaders headerParams = new HttpHeaders(); |
@@ -422,7 +423,7 @@ public void testEndpointParameters(BigDecimal number, Double _double, String pat |
422 | 423 | public void testEnumParameters(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<String> enumFormStringArray, String enumFormString) throws RestClientException { |
423 | 424 | Object postBody = null; |
424 | 425 |
|
425 | | - String path = UriComponentsBuilder.fromPath("/fake").build().toUriString(); |
| 426 | + String path = apiClient.expandPath("/fake", Collections.<String, Object>emptyMap()); |
426 | 427 |
|
427 | 428 | final MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<String, String>(); |
428 | 429 | final HttpHeaders headerParams = new HttpHeaders(); |
@@ -485,7 +486,7 @@ public void testGroupParameters(Integer requiredStringGroup, Boolean requiredBoo |
485 | 486 | throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'requiredInt64Group' when calling testGroupParameters"); |
486 | 487 | } |
487 | 488 |
|
488 | | - String path = UriComponentsBuilder.fromPath("/fake").build().toUriString(); |
| 489 | + String path = apiClient.expandPath("/fake", Collections.<String, Object>emptyMap()); |
489 | 490 |
|
490 | 491 | final MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<String, String>(); |
491 | 492 | final HttpHeaders headerParams = new HttpHeaders(); |
@@ -526,7 +527,7 @@ public void testInlineAdditionalProperties(Map<String, String> param) throws Res |
526 | 527 | throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'param' when calling testInlineAdditionalProperties"); |
527 | 528 | } |
528 | 529 |
|
529 | | - String path = UriComponentsBuilder.fromPath("/fake/inline-additionalProperties").build().toUriString(); |
| 530 | + String path = apiClient.expandPath("/fake/inline-additionalProperties", Collections.<String, Object>emptyMap()); |
530 | 531 |
|
531 | 532 | final MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<String, String>(); |
532 | 533 | final HttpHeaders headerParams = new HttpHeaders(); |
@@ -565,7 +566,7 @@ public void testJsonFormData(String param, String param2) throws RestClientExcep |
565 | 566 | throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'param2' when calling testJsonFormData"); |
566 | 567 | } |
567 | 568 |
|
568 | | - String path = UriComponentsBuilder.fromPath("/fake/jsonFormData").build().toUriString(); |
| 569 | + String path = apiClient.expandPath("/fake/jsonFormData", Collections.<String, Object>emptyMap()); |
569 | 570 |
|
570 | 571 | final MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<String, String>(); |
571 | 572 | final HttpHeaders headerParams = new HttpHeaders(); |
|
0 commit comments