mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-08 00:20:51 +00:00
Java API invocation flexibility (#18078)
* add direct invocation methods for java (httpclient) * add direct invocation methods for java (resttemplate) * handle methods only if endpoints exist for api client * preserve previous newline to minimize changes * update httpclient/resttemplate samples * add common methods in base class * regenerate samples with base class
This commit is contained in:
parent
da1187fc8d
commit
b59957a095
@ -569,6 +569,10 @@ public class JavaClientCodegen extends AbstractJavaCodegen
|
|||||||
supportingFiles.add(new SupportingFile("auth/Authentication.mustache", authFolder, "Authentication.java"));
|
supportingFiles.add(new SupportingFile("auth/Authentication.mustache", authFolder, "Authentication.java"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (APACHE.equals(getLibrary()) || RESTTEMPLATE.equals(getLibrary())) {
|
||||||
|
supportingFiles.add(new SupportingFile("BaseApi.mustache", invokerFolder, "BaseApi.java"));
|
||||||
|
}
|
||||||
|
|
||||||
if (FEIGN.equals(getLibrary())) {
|
if (FEIGN.equals(getLibrary())) {
|
||||||
if (getSerializationLibrary() == null) {
|
if (getSerializationLibrary() == null) {
|
||||||
LOGGER.info("No serializationLibrary configured, using '{}' as fallback", SERIALIZATION_LIBRARY_JACKSON);
|
LOGGER.info("No serializationLibrary configured, using '{}' as fallback", SERIALIZATION_LIBRARY_JACKSON);
|
||||||
|
@ -916,15 +916,11 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Build full URL by concatenating base path, the given sub path and query parameters.
|
* Returns the URL of the client as defined by the server (if exists) or the base path.
|
||||||
*
|
*
|
||||||
* @param path The sub path
|
* @return The URL for the client.
|
||||||
* @param queryParams The query parameters
|
|
||||||
* @param collectionQueryParams The collection query parameters
|
|
||||||
* @param urlQueryDeepObject URL query string of the deep object parameters
|
|
||||||
* @return The full URL
|
|
||||||
*/
|
*/
|
||||||
private String buildUrl(String path, List<Pair> queryParams, List<Pair> collectionQueryParams, String urlQueryDeepObject) {
|
public String getBaseURL() {
|
||||||
String baseURL;
|
String baseURL;
|
||||||
if (serverIndex != null) {
|
if (serverIndex != null) {
|
||||||
if (serverIndex < 0 || serverIndex >= servers.size()) {
|
if (serverIndex < 0 || serverIndex >= servers.size()) {
|
||||||
@ -936,6 +932,20 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} {
|
|||||||
} else {
|
} else {
|
||||||
baseURL = basePath;
|
baseURL = basePath;
|
||||||
}
|
}
|
||||||
|
return baseURL;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Build full URL by concatenating base URL, the given sub path and query parameters.
|
||||||
|
*
|
||||||
|
* @param path The sub path
|
||||||
|
* @param queryParams The query parameters
|
||||||
|
* @param collectionQueryParams The collection query parameters
|
||||||
|
* @param urlQueryDeepObject URL query string of the deep object parameters
|
||||||
|
* @return The full URL
|
||||||
|
*/
|
||||||
|
private String buildUrl(String path, List<Pair> queryParams, List<Pair> collectionQueryParams, String urlQueryDeepObject) {
|
||||||
|
String baseURL = getBaseURL();
|
||||||
|
|
||||||
final StringBuilder url = new StringBuilder();
|
final StringBuilder url = new StringBuilder();
|
||||||
url.append(baseURL).append(path);
|
url.append(baseURL).append(path);
|
||||||
|
110
modules/openapi-generator/src/main/resources/Java/libraries/apache-httpclient/BaseApi.mustache
vendored
Normal file
110
modules/openapi-generator/src/main/resources/Java/libraries/apache-httpclient/BaseApi.mustache
vendored
Normal file
@ -0,0 +1,110 @@
|
|||||||
|
{{>licenseInfo}}
|
||||||
|
package {{invokerPackage}};
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.core.type.TypeReference;
|
||||||
|
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
{{>generatedAnnotation}}
|
||||||
|
public abstract class BaseApi {
|
||||||
|
|
||||||
|
protected ApiClient apiClient;
|
||||||
|
|
||||||
|
public BaseApi() {
|
||||||
|
this(Configuration.getDefaultApiClient());
|
||||||
|
}
|
||||||
|
|
||||||
|
public BaseApi(ApiClient apiClient) {
|
||||||
|
this.apiClient = apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ApiClient getApiClient() {
|
||||||
|
return apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setApiClient(ApiClient apiClient) {
|
||||||
|
this.apiClient = apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @throws ApiException if fails to make API call.
|
||||||
|
*/
|
||||||
|
public void invokeAPI(String url, String method) throws ApiException {
|
||||||
|
invokeAPI(url, method, null, null, Collections.emptyMap());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param additionalHeaders Additional headers for the request.
|
||||||
|
* @throws ApiException if fails to make API call.
|
||||||
|
*/
|
||||||
|
public void invokeAPI(String url, String method, Map<String, String> additionalHeaders) throws ApiException {
|
||||||
|
invokeAPI(url, method, null, null, additionalHeaders);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param request The request object.
|
||||||
|
* @throws ApiException if fails to make API call.
|
||||||
|
*/
|
||||||
|
public void invokeAPI(String url, String method, Object request) throws ApiException {
|
||||||
|
invokeAPI(url, method, request, null, Collections.emptyMap());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param request The request object.
|
||||||
|
* @param additionalHeaders Additional headers for the request.
|
||||||
|
* @throws ApiException if fails to make API call.
|
||||||
|
*/
|
||||||
|
public void invokeAPI(String url, String method, Object request, Map<String, String> additionalHeaders) throws ApiException {
|
||||||
|
invokeAPI(url, method, request, null, additionalHeaders);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param returnType The return type.
|
||||||
|
* @return The API response in the specified type.
|
||||||
|
* @throws ApiException if fails to make API call.
|
||||||
|
*/
|
||||||
|
public <T> T invokeAPI(String url, String method, TypeReference<T> returnType) throws ApiException {
|
||||||
|
return invokeAPI(url, method, null, returnType, Collections.emptyMap());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param request The request object.
|
||||||
|
* @param returnType The return type.
|
||||||
|
* @return The API response in the specified type.
|
||||||
|
* @throws ApiException if fails to make API call.
|
||||||
|
*/
|
||||||
|
public <T> T invokeAPI(String url, String method, Object request, TypeReference<T> returnType) throws ApiException {
|
||||||
|
return invokeAPI(url, method, request, returnType, Collections.emptyMap());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param request The request object.
|
||||||
|
* @param returnType The return type.
|
||||||
|
* @param additionalHeaders Additional headers for the request.
|
||||||
|
* @return The API response in the specified type.
|
||||||
|
* @throws ApiException if fails to make API call.
|
||||||
|
*/
|
||||||
|
public abstract <T> T invokeAPI(String url, String method, Object request, TypeReference<T> returnType, Map<String, String> additionalHeaders) throws ApiException;
|
||||||
|
}
|
@ -5,6 +5,7 @@ import com.fasterxml.jackson.core.type.TypeReference;
|
|||||||
|
|
||||||
import {{invokerPackage}}.ApiException;
|
import {{invokerPackage}}.ApiException;
|
||||||
import {{invokerPackage}}.ApiClient;
|
import {{invokerPackage}}.ApiClient;
|
||||||
|
import {{invokerPackage}}.BaseApi;
|
||||||
import {{invokerPackage}}.Configuration;
|
import {{invokerPackage}}.Configuration;
|
||||||
{{#models.0}}
|
{{#models.0}}
|
||||||
import {{modelPackage}}.*;
|
import {{modelPackage}}.*;
|
||||||
@ -24,25 +25,14 @@ import java.util.StringJoiner;
|
|||||||
|
|
||||||
{{>generatedAnnotation}}
|
{{>generatedAnnotation}}
|
||||||
{{#operations}}
|
{{#operations}}
|
||||||
public class {{classname}} {
|
public class {{classname}} extends BaseApi {
|
||||||
|
|
||||||
|
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public {{classname}}() {
|
public {{classname}}() {
|
||||||
this(Configuration.getDefaultApiClient());
|
super(Configuration.getDefaultApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public {{classname}}(ApiClient apiClient) {
|
public {{classname}}(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
{{#operation}}
|
{{#operation}}
|
||||||
@ -201,6 +191,48 @@ public class {{classname}} {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{{#-last}}
|
||||||
|
@Override
|
||||||
|
public <T> T invokeAPI(String url, String method, Object request, TypeReference<T> returnType, Map<String, String> additionalHeaders) throws ApiException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBaseURL(), "");
|
||||||
|
StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
|
||||||
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
|
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||||
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
|
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
||||||
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
localVarHeaderParams.putAll(additionalHeaders);
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
{{#produces}}"{{{mediaType}}}"{{^-last}}, {{/-last}}{{/produces}}
|
||||||
|
};
|
||||||
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
{{#consumes}}"{{{mediaType}}}"{{^-last}}, {{/-last}}{{/consumes}}
|
||||||
|
};
|
||||||
|
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { {{#authMethods}}"{{name}}"{{^-last}}, {{/-last}}{{/authMethods}} };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(
|
||||||
|
localVarPath,
|
||||||
|
method,
|
||||||
|
localVarQueryParams,
|
||||||
|
localVarCollectionQueryParams,
|
||||||
|
localVarQueryStringJoiner.toString(),
|
||||||
|
request,
|
||||||
|
localVarHeaderParams,
|
||||||
|
localVarCookieParams,
|
||||||
|
localVarFormParams,
|
||||||
|
localVarAccept,
|
||||||
|
localVarContentType,
|
||||||
|
localVarAuthNames,
|
||||||
|
returnType
|
||||||
|
);
|
||||||
|
}
|
||||||
|
{{/-last}}
|
||||||
{{/operation}}
|
{{/operation}}
|
||||||
}
|
}
|
||||||
{{/operations}}
|
{{/operations}}
|
||||||
|
74
modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/BaseApi.mustache
vendored
Normal file
74
modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/BaseApi.mustache
vendored
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
package {{invokerPackage}};
|
||||||
|
|
||||||
|
import org.springframework.web.client.RestClientException;
|
||||||
|
import org.springframework.core.ParameterizedTypeReference;
|
||||||
|
import org.springframework.http.HttpMethod;
|
||||||
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
|
{{>generatedAnnotation}}
|
||||||
|
public abstract class BaseApi {
|
||||||
|
|
||||||
|
protected ApiClient apiClient;
|
||||||
|
|
||||||
|
public BaseApi() {
|
||||||
|
this(new ApiClient());
|
||||||
|
}
|
||||||
|
|
||||||
|
public BaseApi(ApiClient apiClient) {
|
||||||
|
this.apiClient = apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ApiClient getApiClient() {
|
||||||
|
return apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setApiClient(ApiClient apiClient) {
|
||||||
|
this.apiClient = apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @return ResponseEntity<Void>
|
||||||
|
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||||
|
*/
|
||||||
|
public ResponseEntity<Void> invokeAPI(String url, HttpMethod method) throws RestClientException {
|
||||||
|
return invokeAPI(url, method, null, new ParameterizedTypeReference<Void>() {});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param request The request object.
|
||||||
|
* @return ResponseEntity<Void>
|
||||||
|
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||||
|
*/
|
||||||
|
public ResponseEntity<Void> invokeAPI(String url, HttpMethod method, Object request) throws RestClientException {
|
||||||
|
return invokeAPI(url, method, request, new ParameterizedTypeReference<Void>() {});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param returnType The return type.
|
||||||
|
* @return ResponseEntity in the specified type.
|
||||||
|
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||||
|
*/
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
return invokeAPI(url, method, null, returnType);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param request The request object.
|
||||||
|
* @param returnType The return type.
|
||||||
|
* @return ResponseEntity in the specified type.
|
||||||
|
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||||
|
*/
|
||||||
|
public abstract <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException;
|
||||||
|
}
|
@ -1,6 +1,7 @@
|
|||||||
package {{package}};
|
package {{package}};
|
||||||
|
|
||||||
import {{invokerPackage}}.ApiClient;
|
import {{invokerPackage}}.ApiClient;
|
||||||
|
import {{invokerPackage}}.BaseApi;
|
||||||
|
|
||||||
{{#imports}}import {{import}};
|
{{#imports}}import {{import}};
|
||||||
{{/imports}}
|
{{/imports}}
|
||||||
@ -31,26 +32,17 @@ import org.springframework.http.ResponseEntity;
|
|||||||
@Component("{{package}}.{{classname}}")
|
@Component("{{package}}.{{classname}}")
|
||||||
{{/generateClientAsBean}}
|
{{/generateClientAsBean}}
|
||||||
{{#operations}}
|
{{#operations}}
|
||||||
public class {{classname}} {
|
public class {{classname}} extends BaseApi {
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public {{classname}}() {
|
public {{classname}}() {
|
||||||
this(new ApiClient());
|
super(new ApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
{{#generateClientAsBean}}
|
{{#generateClientAsBean}}
|
||||||
@Autowired
|
@Autowired
|
||||||
{{/generateClientAsBean}}
|
{{/generateClientAsBean}}
|
||||||
public {{classname}}(ApiClient apiClient) {
|
public {{classname}}(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
{{#operation}}
|
{{#operation}}
|
||||||
@ -159,6 +151,33 @@ public class {{classname}} {
|
|||||||
{{#returnType}}ParameterizedTypeReference<{{#returnType}}{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{.}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{.}}}{{/isResponseFile}}{{/returnType}}> localReturnType = new ParameterizedTypeReference<{{#returnType}}{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{.}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{.}}}{{/isResponseFile}}{{/returnType}}>() {};{{/returnType}}{{^returnType}}ParameterizedTypeReference<Void> localReturnType = new ParameterizedTypeReference<Void>() {};{{/returnType}}
|
{{#returnType}}ParameterizedTypeReference<{{#returnType}}{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{.}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{.}}}{{/isResponseFile}}{{/returnType}}> localReturnType = new ParameterizedTypeReference<{{#returnType}}{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{.}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{.}}}{{/isResponseFile}}{{/returnType}}>() {};{{/returnType}}{{^returnType}}ParameterizedTypeReference<Void> localReturnType = new ParameterizedTypeReference<Void>() {};{{/returnType}}
|
||||||
return apiClient.invokeAPI("{{{path}}}", HttpMethod.{{httpMethod}}, {{#hasPathParams}}uriVariables{{/hasPathParams}}{{^hasPathParams}}Collections.<String, Object>emptyMap(){{/hasPathParams}}, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
return apiClient.invokeAPI("{{{path}}}", HttpMethod.{{httpMethod}}, {{#hasPathParams}}uriVariables{{/hasPathParams}}{{^hasPathParams}}Collections.<String, Object>emptyMap(){{/hasPathParams}}, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||||
}
|
}
|
||||||
|
{{#-last}}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBasePath(), "");
|
||||||
|
Object localVarPostBody = request;
|
||||||
|
|
||||||
|
final Map<String, Object> uriVariables = new HashMap<String, Object>();
|
||||||
|
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||||
|
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||||
|
|
||||||
|
final String[] localVarAccepts = { {{#hasProduces}}
|
||||||
|
{{#produces}}"{{{mediaType}}}"{{^-last}}, {{/-last}}{{/produces}}
|
||||||
|
{{/hasProduces}} };
|
||||||
|
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
final String[] localVarContentTypes = { {{#hasConsumes}}
|
||||||
|
{{#consumes}}"{{{mediaType}}}"{{^-last}}, {{/-last}}{{/consumes}}
|
||||||
|
{{/hasConsumes}} };
|
||||||
|
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { {{#authMethods}}"{{name}}"{{^-last}}, {{/-last}}{{/authMethods}} };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(localVarPath, method, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, returnType);
|
||||||
|
}
|
||||||
|
{{/-last}}
|
||||||
{{/operation}}
|
{{/operation}}
|
||||||
}
|
}
|
||||||
{{/operations}}
|
{{/operations}}
|
||||||
|
@ -56,7 +56,7 @@ public class ApacheHttpClientCodegenTest {
|
|||||||
DefaultGenerator generator = new DefaultGenerator();
|
DefaultGenerator generator = new DefaultGenerator();
|
||||||
List<File> files = generator.opts(clientOptInput).generate();
|
List<File> files = generator.opts(clientOptInput).generate();
|
||||||
|
|
||||||
Assert.assertEquals(files.size(), 41);
|
Assert.assertEquals(files.size(), 42);
|
||||||
validateJavaSourceFiles(files);
|
validateJavaSourceFiles(files);
|
||||||
|
|
||||||
TestUtils.assertFileContains(Paths.get(output + "/src/main/java/xyz/abcdef/api/DefaultApi.java"),
|
TestUtils.assertFileContains(Paths.get(output + "/src/main/java/xyz/abcdef/api/DefaultApi.java"),
|
||||||
|
@ -33,6 +33,7 @@ settings.gradle
|
|||||||
src/main/AndroidManifest.xml
|
src/main/AndroidManifest.xml
|
||||||
src/main/java/org/openapitools/client/ApiClient.java
|
src/main/java/org/openapitools/client/ApiClient.java
|
||||||
src/main/java/org/openapitools/client/ApiException.java
|
src/main/java/org/openapitools/client/ApiException.java
|
||||||
|
src/main/java/org/openapitools/client/BaseApi.java
|
||||||
src/main/java/org/openapitools/client/Configuration.java
|
src/main/java/org/openapitools/client/Configuration.java
|
||||||
src/main/java/org/openapitools/client/JavaTimeFormatter.java
|
src/main/java/org/openapitools/client/JavaTimeFormatter.java
|
||||||
src/main/java/org/openapitools/client/Pair.java
|
src/main/java/org/openapitools/client/Pair.java
|
||||||
|
@ -834,15 +834,11 @@ public class ApiClient extends JavaTimeFormatter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Build full URL by concatenating base path, the given sub path and query parameters.
|
* Returns the URL of the client as defined by the server (if exists) or the base path.
|
||||||
*
|
*
|
||||||
* @param path The sub path
|
* @return The URL for the client.
|
||||||
* @param queryParams The query parameters
|
|
||||||
* @param collectionQueryParams The collection query parameters
|
|
||||||
* @param urlQueryDeepObject URL query string of the deep object parameters
|
|
||||||
* @return The full URL
|
|
||||||
*/
|
*/
|
||||||
private String buildUrl(String path, List<Pair> queryParams, List<Pair> collectionQueryParams, String urlQueryDeepObject) {
|
public String getBaseURL() {
|
||||||
String baseURL;
|
String baseURL;
|
||||||
if (serverIndex != null) {
|
if (serverIndex != null) {
|
||||||
if (serverIndex < 0 || serverIndex >= servers.size()) {
|
if (serverIndex < 0 || serverIndex >= servers.size()) {
|
||||||
@ -854,6 +850,20 @@ public class ApiClient extends JavaTimeFormatter {
|
|||||||
} else {
|
} else {
|
||||||
baseURL = basePath;
|
baseURL = basePath;
|
||||||
}
|
}
|
||||||
|
return baseURL;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Build full URL by concatenating base URL, the given sub path and query parameters.
|
||||||
|
*
|
||||||
|
* @param path The sub path
|
||||||
|
* @param queryParams The query parameters
|
||||||
|
* @param collectionQueryParams The collection query parameters
|
||||||
|
* @param urlQueryDeepObject URL query string of the deep object parameters
|
||||||
|
* @return The full URL
|
||||||
|
*/
|
||||||
|
private String buildUrl(String path, List<Pair> queryParams, List<Pair> collectionQueryParams, String urlQueryDeepObject) {
|
||||||
|
String baseURL = getBaseURL();
|
||||||
|
|
||||||
final StringBuilder url = new StringBuilder();
|
final StringBuilder url = new StringBuilder();
|
||||||
url.append(baseURL).append(path);
|
url.append(baseURL).append(path);
|
||||||
|
@ -0,0 +1,121 @@
|
|||||||
|
/*
|
||||||
|
* Echo Server API
|
||||||
|
* Echo Server API
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.openapitools.client;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.core.type.TypeReference;
|
||||||
|
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
|
public abstract class BaseApi {
|
||||||
|
|
||||||
|
protected ApiClient apiClient;
|
||||||
|
|
||||||
|
public BaseApi() {
|
||||||
|
this(Configuration.getDefaultApiClient());
|
||||||
|
}
|
||||||
|
|
||||||
|
public BaseApi(ApiClient apiClient) {
|
||||||
|
this.apiClient = apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ApiClient getApiClient() {
|
||||||
|
return apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setApiClient(ApiClient apiClient) {
|
||||||
|
this.apiClient = apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @throws ApiException if fails to make API call.
|
||||||
|
*/
|
||||||
|
public void invokeAPI(String url, String method) throws ApiException {
|
||||||
|
invokeAPI(url, method, null, null, Collections.emptyMap());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param additionalHeaders Additional headers for the request.
|
||||||
|
* @throws ApiException if fails to make API call.
|
||||||
|
*/
|
||||||
|
public void invokeAPI(String url, String method, Map<String, String> additionalHeaders) throws ApiException {
|
||||||
|
invokeAPI(url, method, null, null, additionalHeaders);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param request The request object.
|
||||||
|
* @throws ApiException if fails to make API call.
|
||||||
|
*/
|
||||||
|
public void invokeAPI(String url, String method, Object request) throws ApiException {
|
||||||
|
invokeAPI(url, method, request, null, Collections.emptyMap());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param request The request object.
|
||||||
|
* @param additionalHeaders Additional headers for the request.
|
||||||
|
* @throws ApiException if fails to make API call.
|
||||||
|
*/
|
||||||
|
public void invokeAPI(String url, String method, Object request, Map<String, String> additionalHeaders) throws ApiException {
|
||||||
|
invokeAPI(url, method, request, null, additionalHeaders);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param returnType The return type.
|
||||||
|
* @return The API response in the specified type.
|
||||||
|
* @throws ApiException if fails to make API call.
|
||||||
|
*/
|
||||||
|
public <T> T invokeAPI(String url, String method, TypeReference<T> returnType) throws ApiException {
|
||||||
|
return invokeAPI(url, method, null, returnType, Collections.emptyMap());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param request The request object.
|
||||||
|
* @param returnType The return type.
|
||||||
|
* @return The API response in the specified type.
|
||||||
|
* @throws ApiException if fails to make API call.
|
||||||
|
*/
|
||||||
|
public <T> T invokeAPI(String url, String method, Object request, TypeReference<T> returnType) throws ApiException {
|
||||||
|
return invokeAPI(url, method, request, returnType, Collections.emptyMap());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param request The request object.
|
||||||
|
* @param returnType The return type.
|
||||||
|
* @param additionalHeaders Additional headers for the request.
|
||||||
|
* @return The API response in the specified type.
|
||||||
|
* @throws ApiException if fails to make API call.
|
||||||
|
*/
|
||||||
|
public abstract <T> T invokeAPI(String url, String method, Object request, TypeReference<T> returnType, Map<String, String> additionalHeaders) throws ApiException;
|
||||||
|
}
|
@ -16,6 +16,7 @@ import com.fasterxml.jackson.core.type.TypeReference;
|
|||||||
|
|
||||||
import org.openapitools.client.ApiException;
|
import org.openapitools.client.ApiException;
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
import org.openapitools.client.Configuration;
|
import org.openapitools.client.Configuration;
|
||||||
import org.openapitools.client.Pair;
|
import org.openapitools.client.Pair;
|
||||||
|
|
||||||
@ -29,25 +30,14 @@ import java.util.Map;
|
|||||||
import java.util.StringJoiner;
|
import java.util.StringJoiner;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class AuthApi {
|
public class AuthApi extends BaseApi {
|
||||||
|
|
||||||
|
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public AuthApi() {
|
public AuthApi() {
|
||||||
this(Configuration.getDefaultApiClient());
|
super(Configuration.getDefaultApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public AuthApi(ApiClient apiClient) {
|
public AuthApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -184,4 +174,44 @@ public class AuthApi {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> T invokeAPI(String url, String method, Object request, TypeReference<T> returnType, Map<String, String> additionalHeaders) throws ApiException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBaseURL(), "");
|
||||||
|
StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
|
||||||
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
|
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||||
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
|
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
||||||
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
localVarHeaderParams.putAll(additionalHeaders);
|
||||||
|
|
||||||
|
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" };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(
|
||||||
|
localVarPath,
|
||||||
|
method,
|
||||||
|
localVarQueryParams,
|
||||||
|
localVarCollectionQueryParams,
|
||||||
|
localVarQueryStringJoiner.toString(),
|
||||||
|
request,
|
||||||
|
localVarHeaderParams,
|
||||||
|
localVarCookieParams,
|
||||||
|
localVarFormParams,
|
||||||
|
localVarAccept,
|
||||||
|
localVarContentType,
|
||||||
|
localVarAuthNames,
|
||||||
|
returnType
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@ import com.fasterxml.jackson.core.type.TypeReference;
|
|||||||
|
|
||||||
import org.openapitools.client.ApiException;
|
import org.openapitools.client.ApiException;
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
import org.openapitools.client.Configuration;
|
import org.openapitools.client.Configuration;
|
||||||
import org.openapitools.client.Pair;
|
import org.openapitools.client.Pair;
|
||||||
|
|
||||||
@ -33,25 +34,14 @@ import java.util.Map;
|
|||||||
import java.util.StringJoiner;
|
import java.util.StringJoiner;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class BodyApi {
|
public class BodyApi extends BaseApi {
|
||||||
|
|
||||||
|
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public BodyApi() {
|
public BodyApi() {
|
||||||
this(Configuration.getDefaultApiClient());
|
super(Configuration.getDefaultApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public BodyApi(ApiClient apiClient) {
|
public BodyApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -751,4 +741,44 @@ public class BodyApi {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> T invokeAPI(String url, String method, Object request, TypeReference<T> returnType, Map<String, String> additionalHeaders) throws ApiException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBaseURL(), "");
|
||||||
|
StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
|
||||||
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
|
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||||
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
|
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
||||||
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
localVarHeaderParams.putAll(additionalHeaders);
|
||||||
|
|
||||||
|
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[] { };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(
|
||||||
|
localVarPath,
|
||||||
|
method,
|
||||||
|
localVarQueryParams,
|
||||||
|
localVarCollectionQueryParams,
|
||||||
|
localVarQueryStringJoiner.toString(),
|
||||||
|
request,
|
||||||
|
localVarHeaderParams,
|
||||||
|
localVarCookieParams,
|
||||||
|
localVarFormParams,
|
||||||
|
localVarAccept,
|
||||||
|
localVarContentType,
|
||||||
|
localVarAuthNames,
|
||||||
|
returnType
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@ import com.fasterxml.jackson.core.type.TypeReference;
|
|||||||
|
|
||||||
import org.openapitools.client.ApiException;
|
import org.openapitools.client.ApiException;
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
import org.openapitools.client.Configuration;
|
import org.openapitools.client.Configuration;
|
||||||
import org.openapitools.client.Pair;
|
import org.openapitools.client.Pair;
|
||||||
|
|
||||||
@ -29,25 +30,14 @@ import java.util.Map;
|
|||||||
import java.util.StringJoiner;
|
import java.util.StringJoiner;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class FormApi {
|
public class FormApi extends BaseApi {
|
||||||
|
|
||||||
|
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public FormApi() {
|
public FormApi() {
|
||||||
this(Configuration.getDefaultApiClient());
|
super(Configuration.getDefaultApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public FormApi(ApiClient apiClient) {
|
public FormApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -220,4 +210,44 @@ if (name != null)
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> T invokeAPI(String url, String method, Object request, TypeReference<T> returnType, Map<String, String> additionalHeaders) throws ApiException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBaseURL(), "");
|
||||||
|
StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
|
||||||
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
|
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||||
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
|
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
||||||
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
localVarHeaderParams.putAll(additionalHeaders);
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
"text/plain"
|
||||||
|
};
|
||||||
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
"application/x-www-form-urlencoded"
|
||||||
|
};
|
||||||
|
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(
|
||||||
|
localVarPath,
|
||||||
|
method,
|
||||||
|
localVarQueryParams,
|
||||||
|
localVarCollectionQueryParams,
|
||||||
|
localVarQueryStringJoiner.toString(),
|
||||||
|
request,
|
||||||
|
localVarHeaderParams,
|
||||||
|
localVarCookieParams,
|
||||||
|
localVarFormParams,
|
||||||
|
localVarAccept,
|
||||||
|
localVarContentType,
|
||||||
|
localVarAuthNames,
|
||||||
|
returnType
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@ import com.fasterxml.jackson.core.type.TypeReference;
|
|||||||
|
|
||||||
import org.openapitools.client.ApiException;
|
import org.openapitools.client.ApiException;
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
import org.openapitools.client.Configuration;
|
import org.openapitools.client.Configuration;
|
||||||
import org.openapitools.client.Pair;
|
import org.openapitools.client.Pair;
|
||||||
|
|
||||||
@ -30,25 +31,14 @@ import java.util.Map;
|
|||||||
import java.util.StringJoiner;
|
import java.util.StringJoiner;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class HeaderApi {
|
public class HeaderApi extends BaseApi {
|
||||||
|
|
||||||
|
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public HeaderApi() {
|
public HeaderApi() {
|
||||||
this(Configuration.getDefaultApiClient());
|
super(Configuration.getDefaultApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public HeaderApi(ApiClient apiClient) {
|
public HeaderApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -138,4 +128,44 @@ if (enumRefStringHeader != null)
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> T invokeAPI(String url, String method, Object request, TypeReference<T> returnType, Map<String, String> additionalHeaders) throws ApiException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBaseURL(), "");
|
||||||
|
StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
|
||||||
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
|
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||||
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
|
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
||||||
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
localVarHeaderParams.putAll(additionalHeaders);
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
"text/plain"
|
||||||
|
};
|
||||||
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
|
||||||
|
};
|
||||||
|
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(
|
||||||
|
localVarPath,
|
||||||
|
method,
|
||||||
|
localVarQueryParams,
|
||||||
|
localVarCollectionQueryParams,
|
||||||
|
localVarQueryStringJoiner.toString(),
|
||||||
|
request,
|
||||||
|
localVarHeaderParams,
|
||||||
|
localVarCookieParams,
|
||||||
|
localVarFormParams,
|
||||||
|
localVarAccept,
|
||||||
|
localVarContentType,
|
||||||
|
localVarAuthNames,
|
||||||
|
returnType
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@ import com.fasterxml.jackson.core.type.TypeReference;
|
|||||||
|
|
||||||
import org.openapitools.client.ApiException;
|
import org.openapitools.client.ApiException;
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
import org.openapitools.client.Configuration;
|
import org.openapitools.client.Configuration;
|
||||||
import org.openapitools.client.Pair;
|
import org.openapitools.client.Pair;
|
||||||
|
|
||||||
@ -30,25 +31,14 @@ import java.util.Map;
|
|||||||
import java.util.StringJoiner;
|
import java.util.StringJoiner;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class PathApi {
|
public class PathApi extends BaseApi {
|
||||||
|
|
||||||
|
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public PathApi() {
|
public PathApi() {
|
||||||
this(Configuration.getDefaultApiClient());
|
super(Configuration.getDefaultApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public PathApi(ApiClient apiClient) {
|
public PathApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -150,4 +140,44 @@ public class PathApi {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> T invokeAPI(String url, String method, Object request, TypeReference<T> returnType, Map<String, String> additionalHeaders) throws ApiException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBaseURL(), "");
|
||||||
|
StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
|
||||||
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
|
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||||
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
|
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
||||||
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
localVarHeaderParams.putAll(additionalHeaders);
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
"text/plain"
|
||||||
|
};
|
||||||
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
|
||||||
|
};
|
||||||
|
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(
|
||||||
|
localVarPath,
|
||||||
|
method,
|
||||||
|
localVarQueryParams,
|
||||||
|
localVarCollectionQueryParams,
|
||||||
|
localVarQueryStringJoiner.toString(),
|
||||||
|
request,
|
||||||
|
localVarHeaderParams,
|
||||||
|
localVarCookieParams,
|
||||||
|
localVarFormParams,
|
||||||
|
localVarAccept,
|
||||||
|
localVarContentType,
|
||||||
|
localVarAuthNames,
|
||||||
|
returnType
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@ import com.fasterxml.jackson.core.type.TypeReference;
|
|||||||
|
|
||||||
import org.openapitools.client.ApiException;
|
import org.openapitools.client.ApiException;
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
import org.openapitools.client.Configuration;
|
import org.openapitools.client.Configuration;
|
||||||
import org.openapitools.client.Pair;
|
import org.openapitools.client.Pair;
|
||||||
|
|
||||||
@ -36,25 +37,14 @@ import java.util.Map;
|
|||||||
import java.util.StringJoiner;
|
import java.util.StringJoiner;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class QueryApi {
|
public class QueryApi extends BaseApi {
|
||||||
|
|
||||||
|
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public QueryApi() {
|
public QueryApi() {
|
||||||
this(Configuration.getDefaultApiClient());
|
super(Configuration.getDefaultApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public QueryApi(ApiClient apiClient) {
|
public QueryApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -779,4 +769,44 @@ public class QueryApi {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> T invokeAPI(String url, String method, Object request, TypeReference<T> returnType, Map<String, String> additionalHeaders) throws ApiException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBaseURL(), "");
|
||||||
|
StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
|
||||||
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
|
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||||
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
|
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
||||||
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
localVarHeaderParams.putAll(additionalHeaders);
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
"text/plain"
|
||||||
|
};
|
||||||
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
|
||||||
|
};
|
||||||
|
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(
|
||||||
|
localVarPath,
|
||||||
|
method,
|
||||||
|
localVarQueryParams,
|
||||||
|
localVarCollectionQueryParams,
|
||||||
|
localVarQueryStringJoiner.toString(),
|
||||||
|
request,
|
||||||
|
localVarHeaderParams,
|
||||||
|
localVarCookieParams,
|
||||||
|
localVarFormParams,
|
||||||
|
localVarAccept,
|
||||||
|
localVarContentType,
|
||||||
|
localVarAuthNames,
|
||||||
|
returnType
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -32,6 +32,7 @@ pom.xml
|
|||||||
settings.gradle
|
settings.gradle
|
||||||
src/main/AndroidManifest.xml
|
src/main/AndroidManifest.xml
|
||||||
src/main/java/org/openapitools/client/ApiClient.java
|
src/main/java/org/openapitools/client/ApiClient.java
|
||||||
|
src/main/java/org/openapitools/client/BaseApi.java
|
||||||
src/main/java/org/openapitools/client/JavaTimeFormatter.java
|
src/main/java/org/openapitools/client/JavaTimeFormatter.java
|
||||||
src/main/java/org/openapitools/client/RFC3339DateFormat.java
|
src/main/java/org/openapitools/client/RFC3339DateFormat.java
|
||||||
src/main/java/org/openapitools/client/ServerConfiguration.java
|
src/main/java/org/openapitools/client/ServerConfiguration.java
|
||||||
|
@ -0,0 +1,74 @@
|
|||||||
|
package org.openapitools.client;
|
||||||
|
|
||||||
|
import org.springframework.web.client.RestClientException;
|
||||||
|
import org.springframework.core.ParameterizedTypeReference;
|
||||||
|
import org.springframework.http.HttpMethod;
|
||||||
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
|
public abstract class BaseApi {
|
||||||
|
|
||||||
|
protected ApiClient apiClient;
|
||||||
|
|
||||||
|
public BaseApi() {
|
||||||
|
this(new ApiClient());
|
||||||
|
}
|
||||||
|
|
||||||
|
public BaseApi(ApiClient apiClient) {
|
||||||
|
this.apiClient = apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ApiClient getApiClient() {
|
||||||
|
return apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setApiClient(ApiClient apiClient) {
|
||||||
|
this.apiClient = apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @return ResponseEntity<Void>
|
||||||
|
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||||
|
*/
|
||||||
|
public ResponseEntity<Void> invokeAPI(String url, HttpMethod method) throws RestClientException {
|
||||||
|
return invokeAPI(url, method, null, new ParameterizedTypeReference<Void>() {});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param request The request object.
|
||||||
|
* @return ResponseEntity<Void>
|
||||||
|
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||||
|
*/
|
||||||
|
public ResponseEntity<Void> invokeAPI(String url, HttpMethod method, Object request) throws RestClientException {
|
||||||
|
return invokeAPI(url, method, request, new ParameterizedTypeReference<Void>() {});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param returnType The return type.
|
||||||
|
* @return ResponseEntity in the specified type.
|
||||||
|
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||||
|
*/
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
return invokeAPI(url, method, null, returnType);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param request The request object.
|
||||||
|
* @param returnType The return type.
|
||||||
|
* @return ResponseEntity in the specified type.
|
||||||
|
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||||
|
*/
|
||||||
|
public abstract <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException;
|
||||||
|
}
|
@ -1,6 +1,7 @@
|
|||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
|
|
||||||
|
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
@ -25,23 +26,14 @@ import org.springframework.http.MediaType;
|
|||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class AuthApi {
|
public class AuthApi extends BaseApi {
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public AuthApi() {
|
public AuthApi() {
|
||||||
this(new ApiClient());
|
super(new ApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public AuthApi(ApiClient apiClient) {
|
public AuthApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -122,4 +114,27 @@ public class AuthApi {
|
|||||||
ParameterizedTypeReference<String> localReturnType = new ParameterizedTypeReference<String>() {};
|
ParameterizedTypeReference<String> localReturnType = new ParameterizedTypeReference<String>() {};
|
||||||
return apiClient.invokeAPI("/auth/http/bearer", HttpMethod.POST, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
return apiClient.invokeAPI("/auth/http/bearer", HttpMethod.POST, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBasePath(), "");
|
||||||
|
Object localVarPostBody = request;
|
||||||
|
|
||||||
|
final Map<String, Object> uriVariables = new HashMap<String, Object>();
|
||||||
|
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||||
|
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
"text/plain"
|
||||||
|
};
|
||||||
|
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
final String[] localVarContentTypes = { };
|
||||||
|
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { "http_bearer_auth" };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(localVarPath, method, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, returnType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import org.openapitools.client.model.Pet;
|
import org.openapitools.client.model.Pet;
|
||||||
@ -29,23 +30,14 @@ import org.springframework.http.MediaType;
|
|||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class BodyApi {
|
public class BodyApi extends BaseApi {
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public BodyApi() {
|
public BodyApi() {
|
||||||
this(new ApiClient());
|
super(new ApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public BodyApi(ApiClient apiClient) {
|
public BodyApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -485,4 +477,29 @@ public class BodyApi {
|
|||||||
ParameterizedTypeReference<String> localReturnType = new ParameterizedTypeReference<String>() {};
|
ParameterizedTypeReference<String> localReturnType = new ParameterizedTypeReference<String>() {};
|
||||||
return apiClient.invokeAPI("/echo/body/Tag/response_string", HttpMethod.POST, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
return apiClient.invokeAPI("/echo/body/Tag/response_string", HttpMethod.POST, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBasePath(), "");
|
||||||
|
Object localVarPostBody = request;
|
||||||
|
|
||||||
|
final Map<String, Object> uriVariables = new HashMap<String, Object>();
|
||||||
|
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||||
|
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
"text/plain"
|
||||||
|
};
|
||||||
|
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
"application/json"
|
||||||
|
};
|
||||||
|
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(localVarPath, method, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, returnType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
|
|
||||||
|
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
@ -25,23 +26,14 @@ import org.springframework.http.MediaType;
|
|||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class FormApi {
|
public class FormApi extends BaseApi {
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public FormApi() {
|
public FormApi() {
|
||||||
this(new ApiClient());
|
super(new ApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public FormApi(ApiClient apiClient) {
|
public FormApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -164,4 +156,29 @@ public class FormApi {
|
|||||||
ParameterizedTypeReference<String> localReturnType = new ParameterizedTypeReference<String>() {};
|
ParameterizedTypeReference<String> localReturnType = new ParameterizedTypeReference<String>() {};
|
||||||
return apiClient.invokeAPI("/form/oneof", HttpMethod.POST, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
return apiClient.invokeAPI("/form/oneof", HttpMethod.POST, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBasePath(), "");
|
||||||
|
Object localVarPostBody = request;
|
||||||
|
|
||||||
|
final Map<String, Object> uriVariables = new HashMap<String, Object>();
|
||||||
|
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||||
|
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
"text/plain"
|
||||||
|
};
|
||||||
|
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
"application/x-www-form-urlencoded"
|
||||||
|
};
|
||||||
|
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(localVarPath, method, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, returnType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
|
|
||||||
import org.openapitools.client.model.StringEnumRef;
|
import org.openapitools.client.model.StringEnumRef;
|
||||||
|
|
||||||
@ -26,23 +27,14 @@ import org.springframework.http.MediaType;
|
|||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class HeaderApi {
|
public class HeaderApi extends BaseApi {
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public HeaderApi() {
|
public HeaderApi() {
|
||||||
this(new ApiClient());
|
super(new ApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public HeaderApi(ApiClient apiClient) {
|
public HeaderApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -105,4 +97,27 @@ public class HeaderApi {
|
|||||||
ParameterizedTypeReference<String> localReturnType = new ParameterizedTypeReference<String>() {};
|
ParameterizedTypeReference<String> localReturnType = new ParameterizedTypeReference<String>() {};
|
||||||
return apiClient.invokeAPI("/header/integer/boolean/string/enums", HttpMethod.GET, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
return apiClient.invokeAPI("/header/integer/boolean/string/enums", HttpMethod.GET, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBasePath(), "");
|
||||||
|
Object localVarPostBody = request;
|
||||||
|
|
||||||
|
final Map<String, Object> uriVariables = new HashMap<String, Object>();
|
||||||
|
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||||
|
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
"text/plain"
|
||||||
|
};
|
||||||
|
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
final String[] localVarContentTypes = { };
|
||||||
|
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(localVarPath, method, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, returnType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
|
|
||||||
import org.openapitools.client.model.StringEnumRef;
|
import org.openapitools.client.model.StringEnumRef;
|
||||||
|
|
||||||
@ -26,23 +27,14 @@ import org.springframework.http.MediaType;
|
|||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class PathApi {
|
public class PathApi extends BaseApi {
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public PathApi() {
|
public PathApi() {
|
||||||
this(new ApiClient());
|
super(new ApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public PathApi(ApiClient apiClient) {
|
public PathApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -118,4 +110,27 @@ public class PathApi {
|
|||||||
ParameterizedTypeReference<String> localReturnType = new ParameterizedTypeReference<String>() {};
|
ParameterizedTypeReference<String> localReturnType = new ParameterizedTypeReference<String>() {};
|
||||||
return apiClient.invokeAPI("/path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path}", HttpMethod.GET, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
return apiClient.invokeAPI("/path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path}", HttpMethod.GET, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBasePath(), "");
|
||||||
|
Object localVarPostBody = request;
|
||||||
|
|
||||||
|
final Map<String, Object> uriVariables = new HashMap<String, Object>();
|
||||||
|
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||||
|
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
"text/plain"
|
||||||
|
};
|
||||||
|
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
final String[] localVarContentTypes = { };
|
||||||
|
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(localVarPath, method, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, returnType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
|
|
||||||
import org.openapitools.client.model.DataQuery;
|
import org.openapitools.client.model.DataQuery;
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
@ -32,23 +33,14 @@ import org.springframework.http.MediaType;
|
|||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class QueryApi {
|
public class QueryApi extends BaseApi {
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public QueryApi() {
|
public QueryApi() {
|
||||||
this(new ApiClient());
|
super(new ApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public QueryApi(ApiClient apiClient) {
|
public QueryApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -522,4 +514,27 @@ public class QueryApi {
|
|||||||
ParameterizedTypeReference<String> localReturnType = new ParameterizedTypeReference<String>() {};
|
ParameterizedTypeReference<String> localReturnType = new ParameterizedTypeReference<String>() {};
|
||||||
return apiClient.invokeAPI("/query/style_form/explode_true/object/allOf", HttpMethod.GET, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
return apiClient.invokeAPI("/query/style_form/explode_true/object/allOf", HttpMethod.GET, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBasePath(), "");
|
||||||
|
Object localVarPostBody = request;
|
||||||
|
|
||||||
|
final Map<String, Object> uriVariables = new HashMap<String, Object>();
|
||||||
|
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||||
|
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
"text/plain"
|
||||||
|
};
|
||||||
|
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
final String[] localVarContentTypes = { };
|
||||||
|
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(localVarPath, method, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, returnType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@ pom.xml
|
|||||||
settings.gradle
|
settings.gradle
|
||||||
src/main/AndroidManifest.xml
|
src/main/AndroidManifest.xml
|
||||||
src/main/java/org/openapitools/client/ApiClient.java
|
src/main/java/org/openapitools/client/ApiClient.java
|
||||||
|
src/main/java/org/openapitools/client/BaseApi.java
|
||||||
src/main/java/org/openapitools/client/JavaTimeFormatter.java
|
src/main/java/org/openapitools/client/JavaTimeFormatter.java
|
||||||
src/main/java/org/openapitools/client/RFC3339DateFormat.java
|
src/main/java/org/openapitools/client/RFC3339DateFormat.java
|
||||||
src/main/java/org/openapitools/client/ServerConfiguration.java
|
src/main/java/org/openapitools/client/ServerConfiguration.java
|
||||||
|
@ -0,0 +1,74 @@
|
|||||||
|
package org.openapitools.client;
|
||||||
|
|
||||||
|
import org.springframework.web.client.RestClientException;
|
||||||
|
import org.springframework.core.ParameterizedTypeReference;
|
||||||
|
import org.springframework.http.HttpMethod;
|
||||||
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
|
public abstract class BaseApi {
|
||||||
|
|
||||||
|
protected ApiClient apiClient;
|
||||||
|
|
||||||
|
public BaseApi() {
|
||||||
|
this(new ApiClient());
|
||||||
|
}
|
||||||
|
|
||||||
|
public BaseApi(ApiClient apiClient) {
|
||||||
|
this.apiClient = apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ApiClient getApiClient() {
|
||||||
|
return apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setApiClient(ApiClient apiClient) {
|
||||||
|
this.apiClient = apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @return ResponseEntity<Void>
|
||||||
|
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||||
|
*/
|
||||||
|
public ResponseEntity<Void> invokeAPI(String url, HttpMethod method) throws RestClientException {
|
||||||
|
return invokeAPI(url, method, null, new ParameterizedTypeReference<Void>() {});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param request The request object.
|
||||||
|
* @return ResponseEntity<Void>
|
||||||
|
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||||
|
*/
|
||||||
|
public ResponseEntity<Void> invokeAPI(String url, HttpMethod method, Object request) throws RestClientException {
|
||||||
|
return invokeAPI(url, method, request, new ParameterizedTypeReference<Void>() {});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param returnType The return type.
|
||||||
|
* @return ResponseEntity in the specified type.
|
||||||
|
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||||
|
*/
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
return invokeAPI(url, method, null, returnType);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param request The request object.
|
||||||
|
* @param returnType The return type.
|
||||||
|
* @return ResponseEntity in the specified type.
|
||||||
|
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||||
|
*/
|
||||||
|
public abstract <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException;
|
||||||
|
}
|
@ -1,6 +1,7 @@
|
|||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
||||||
@ -26,23 +27,14 @@ import org.springframework.http.MediaType;
|
|||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class ResourceApi {
|
public class ResourceApi extends BaseApi {
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public ResourceApi() {
|
public ResourceApi() {
|
||||||
this(new ApiClient());
|
super(new ApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public ResourceApi(ApiClient apiClient) {
|
public ResourceApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -84,4 +76,27 @@ public class ResourceApi {
|
|||||||
ParameterizedTypeReference<org.springframework.core.io.Resource> localReturnType = new ParameterizedTypeReference<org.springframework.core.io.Resource>() {};
|
ParameterizedTypeReference<org.springframework.core.io.Resource> localReturnType = new ParameterizedTypeReference<org.springframework.core.io.Resource>() {};
|
||||||
return apiClient.invokeAPI("/resource", HttpMethod.GET, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
return apiClient.invokeAPI("/resource", HttpMethod.GET, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBasePath(), "");
|
||||||
|
Object localVarPostBody = request;
|
||||||
|
|
||||||
|
final Map<String, Object> uriVariables = new HashMap<String, Object>();
|
||||||
|
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||||
|
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
"application/octet-stream"
|
||||||
|
};
|
||||||
|
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
final String[] localVarContentTypes = { };
|
||||||
|
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(localVarPath, method, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, returnType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -73,6 +73,7 @@ settings.gradle
|
|||||||
src/main/AndroidManifest.xml
|
src/main/AndroidManifest.xml
|
||||||
src/main/java/org/openapitools/client/ApiClient.java
|
src/main/java/org/openapitools/client/ApiClient.java
|
||||||
src/main/java/org/openapitools/client/ApiException.java
|
src/main/java/org/openapitools/client/ApiException.java
|
||||||
|
src/main/java/org/openapitools/client/BaseApi.java
|
||||||
src/main/java/org/openapitools/client/Configuration.java
|
src/main/java/org/openapitools/client/Configuration.java
|
||||||
src/main/java/org/openapitools/client/JavaTimeFormatter.java
|
src/main/java/org/openapitools/client/JavaTimeFormatter.java
|
||||||
src/main/java/org/openapitools/client/Pair.java
|
src/main/java/org/openapitools/client/Pair.java
|
||||||
|
@ -927,15 +927,11 @@ public class ApiClient extends JavaTimeFormatter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Build full URL by concatenating base path, the given sub path and query parameters.
|
* Returns the URL of the client as defined by the server (if exists) or the base path.
|
||||||
*
|
*
|
||||||
* @param path The sub path
|
* @return The URL for the client.
|
||||||
* @param queryParams The query parameters
|
|
||||||
* @param collectionQueryParams The collection query parameters
|
|
||||||
* @param urlQueryDeepObject URL query string of the deep object parameters
|
|
||||||
* @return The full URL
|
|
||||||
*/
|
*/
|
||||||
private String buildUrl(String path, List<Pair> queryParams, List<Pair> collectionQueryParams, String urlQueryDeepObject) {
|
public String getBaseURL() {
|
||||||
String baseURL;
|
String baseURL;
|
||||||
if (serverIndex != null) {
|
if (serverIndex != null) {
|
||||||
if (serverIndex < 0 || serverIndex >= servers.size()) {
|
if (serverIndex < 0 || serverIndex >= servers.size()) {
|
||||||
@ -947,6 +943,20 @@ public class ApiClient extends JavaTimeFormatter {
|
|||||||
} else {
|
} else {
|
||||||
baseURL = basePath;
|
baseURL = basePath;
|
||||||
}
|
}
|
||||||
|
return baseURL;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Build full URL by concatenating base URL, the given sub path and query parameters.
|
||||||
|
*
|
||||||
|
* @param path The sub path
|
||||||
|
* @param queryParams The query parameters
|
||||||
|
* @param collectionQueryParams The collection query parameters
|
||||||
|
* @param urlQueryDeepObject URL query string of the deep object parameters
|
||||||
|
* @return The full URL
|
||||||
|
*/
|
||||||
|
private String buildUrl(String path, List<Pair> queryParams, List<Pair> collectionQueryParams, String urlQueryDeepObject) {
|
||||||
|
String baseURL = getBaseURL();
|
||||||
|
|
||||||
final StringBuilder url = new StringBuilder();
|
final StringBuilder url = new StringBuilder();
|
||||||
url.append(baseURL).append(path);
|
url.append(baseURL).append(path);
|
||||||
|
@ -0,0 +1,121 @@
|
|||||||
|
/*
|
||||||
|
* 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: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.openapitools.client;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.core.type.TypeReference;
|
||||||
|
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
|
public abstract class BaseApi {
|
||||||
|
|
||||||
|
protected ApiClient apiClient;
|
||||||
|
|
||||||
|
public BaseApi() {
|
||||||
|
this(Configuration.getDefaultApiClient());
|
||||||
|
}
|
||||||
|
|
||||||
|
public BaseApi(ApiClient apiClient) {
|
||||||
|
this.apiClient = apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ApiClient getApiClient() {
|
||||||
|
return apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setApiClient(ApiClient apiClient) {
|
||||||
|
this.apiClient = apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @throws ApiException if fails to make API call.
|
||||||
|
*/
|
||||||
|
public void invokeAPI(String url, String method) throws ApiException {
|
||||||
|
invokeAPI(url, method, null, null, Collections.emptyMap());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param additionalHeaders Additional headers for the request.
|
||||||
|
* @throws ApiException if fails to make API call.
|
||||||
|
*/
|
||||||
|
public void invokeAPI(String url, String method, Map<String, String> additionalHeaders) throws ApiException {
|
||||||
|
invokeAPI(url, method, null, null, additionalHeaders);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param request The request object.
|
||||||
|
* @throws ApiException if fails to make API call.
|
||||||
|
*/
|
||||||
|
public void invokeAPI(String url, String method, Object request) throws ApiException {
|
||||||
|
invokeAPI(url, method, request, null, Collections.emptyMap());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param request The request object.
|
||||||
|
* @param additionalHeaders Additional headers for the request.
|
||||||
|
* @throws ApiException if fails to make API call.
|
||||||
|
*/
|
||||||
|
public void invokeAPI(String url, String method, Object request, Map<String, String> additionalHeaders) throws ApiException {
|
||||||
|
invokeAPI(url, method, request, null, additionalHeaders);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param returnType The return type.
|
||||||
|
* @return The API response in the specified type.
|
||||||
|
* @throws ApiException if fails to make API call.
|
||||||
|
*/
|
||||||
|
public <T> T invokeAPI(String url, String method, TypeReference<T> returnType) throws ApiException {
|
||||||
|
return invokeAPI(url, method, null, returnType, Collections.emptyMap());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param request The request object.
|
||||||
|
* @param returnType The return type.
|
||||||
|
* @return The API response in the specified type.
|
||||||
|
* @throws ApiException if fails to make API call.
|
||||||
|
*/
|
||||||
|
public <T> T invokeAPI(String url, String method, Object request, TypeReference<T> returnType) throws ApiException {
|
||||||
|
return invokeAPI(url, method, request, returnType, Collections.emptyMap());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param request The request object.
|
||||||
|
* @param returnType The return type.
|
||||||
|
* @param additionalHeaders Additional headers for the request.
|
||||||
|
* @return The API response in the specified type.
|
||||||
|
* @throws ApiException if fails to make API call.
|
||||||
|
*/
|
||||||
|
public abstract <T> T invokeAPI(String url, String method, Object request, TypeReference<T> returnType, Map<String, String> additionalHeaders) throws ApiException;
|
||||||
|
}
|
@ -16,6 +16,7 @@ import com.fasterxml.jackson.core.type.TypeReference;
|
|||||||
|
|
||||||
import org.openapitools.client.ApiException;
|
import org.openapitools.client.ApiException;
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
import org.openapitools.client.Configuration;
|
import org.openapitools.client.Configuration;
|
||||||
import org.openapitools.client.Pair;
|
import org.openapitools.client.Pair;
|
||||||
|
|
||||||
@ -30,25 +31,14 @@ import java.util.Map;
|
|||||||
import java.util.StringJoiner;
|
import java.util.StringJoiner;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class AnotherFakeApi {
|
public class AnotherFakeApi extends BaseApi {
|
||||||
|
|
||||||
|
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public AnotherFakeApi() {
|
public AnotherFakeApi() {
|
||||||
this(Configuration.getDefaultApiClient());
|
super(Configuration.getDefaultApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public AnotherFakeApi(ApiClient apiClient) {
|
public AnotherFakeApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -125,4 +115,44 @@ public class AnotherFakeApi {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> T invokeAPI(String url, String method, Object request, TypeReference<T> returnType, Map<String, String> additionalHeaders) throws ApiException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBaseURL(), "");
|
||||||
|
StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
|
||||||
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
|
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||||
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
|
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
||||||
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
localVarHeaderParams.putAll(additionalHeaders);
|
||||||
|
|
||||||
|
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[] { };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(
|
||||||
|
localVarPath,
|
||||||
|
method,
|
||||||
|
localVarQueryParams,
|
||||||
|
localVarCollectionQueryParams,
|
||||||
|
localVarQueryStringJoiner.toString(),
|
||||||
|
request,
|
||||||
|
localVarHeaderParams,
|
||||||
|
localVarCookieParams,
|
||||||
|
localVarFormParams,
|
||||||
|
localVarAccept,
|
||||||
|
localVarContentType,
|
||||||
|
localVarAuthNames,
|
||||||
|
returnType
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@ import com.fasterxml.jackson.core.type.TypeReference;
|
|||||||
|
|
||||||
import org.openapitools.client.ApiException;
|
import org.openapitools.client.ApiException;
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
import org.openapitools.client.Configuration;
|
import org.openapitools.client.Configuration;
|
||||||
import org.openapitools.client.Pair;
|
import org.openapitools.client.Pair;
|
||||||
|
|
||||||
@ -30,25 +31,14 @@ import java.util.Map;
|
|||||||
import java.util.StringJoiner;
|
import java.util.StringJoiner;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class DefaultApi {
|
public class DefaultApi extends BaseApi {
|
||||||
|
|
||||||
|
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public DefaultApi() {
|
public DefaultApi() {
|
||||||
this(Configuration.getDefaultApiClient());
|
super(Configuration.getDefaultApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public DefaultApi(ApiClient apiClient) {
|
public DefaultApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -118,4 +108,44 @@ public class DefaultApi {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> T invokeAPI(String url, String method, Object request, TypeReference<T> returnType, Map<String, String> additionalHeaders) throws ApiException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBaseURL(), "");
|
||||||
|
StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
|
||||||
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
|
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||||
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
|
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
||||||
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
localVarHeaderParams.putAll(additionalHeaders);
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
"application/json"
|
||||||
|
};
|
||||||
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
|
||||||
|
};
|
||||||
|
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(
|
||||||
|
localVarPath,
|
||||||
|
method,
|
||||||
|
localVarQueryParams,
|
||||||
|
localVarCollectionQueryParams,
|
||||||
|
localVarQueryStringJoiner.toString(),
|
||||||
|
request,
|
||||||
|
localVarHeaderParams,
|
||||||
|
localVarCookieParams,
|
||||||
|
localVarFormParams,
|
||||||
|
localVarAccept,
|
||||||
|
localVarContentType,
|
||||||
|
localVarAuthNames,
|
||||||
|
returnType
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@ import com.fasterxml.jackson.core.type.TypeReference;
|
|||||||
|
|
||||||
import org.openapitools.client.ApiException;
|
import org.openapitools.client.ApiException;
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
import org.openapitools.client.Configuration;
|
import org.openapitools.client.Configuration;
|
||||||
import org.openapitools.client.Pair;
|
import org.openapitools.client.Pair;
|
||||||
|
|
||||||
@ -44,25 +45,14 @@ import java.util.Map;
|
|||||||
import java.util.StringJoiner;
|
import java.util.StringJoiner;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class FakeApi {
|
public class FakeApi extends BaseApi {
|
||||||
|
|
||||||
|
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public FakeApi() {
|
public FakeApi() {
|
||||||
this(Configuration.getDefaultApiClient());
|
super(Configuration.getDefaultApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public FakeApi(ApiClient apiClient) {
|
public FakeApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1808,4 +1798,44 @@ if (param2 != null)
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> T invokeAPI(String url, String method, Object request, TypeReference<T> returnType, Map<String, String> additionalHeaders) throws ApiException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBaseURL(), "");
|
||||||
|
StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
|
||||||
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
|
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||||
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
|
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
||||||
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
localVarHeaderParams.putAll(additionalHeaders);
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
|
||||||
|
};
|
||||||
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
"application/json"
|
||||||
|
};
|
||||||
|
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(
|
||||||
|
localVarPath,
|
||||||
|
method,
|
||||||
|
localVarQueryParams,
|
||||||
|
localVarCollectionQueryParams,
|
||||||
|
localVarQueryStringJoiner.toString(),
|
||||||
|
request,
|
||||||
|
localVarHeaderParams,
|
||||||
|
localVarCookieParams,
|
||||||
|
localVarFormParams,
|
||||||
|
localVarAccept,
|
||||||
|
localVarContentType,
|
||||||
|
localVarAuthNames,
|
||||||
|
returnType
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@ import com.fasterxml.jackson.core.type.TypeReference;
|
|||||||
|
|
||||||
import org.openapitools.client.ApiException;
|
import org.openapitools.client.ApiException;
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
import org.openapitools.client.Configuration;
|
import org.openapitools.client.Configuration;
|
||||||
import org.openapitools.client.Pair;
|
import org.openapitools.client.Pair;
|
||||||
|
|
||||||
@ -30,25 +31,14 @@ import java.util.Map;
|
|||||||
import java.util.StringJoiner;
|
import java.util.StringJoiner;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class FakeClassnameTags123Api {
|
public class FakeClassnameTags123Api extends BaseApi {
|
||||||
|
|
||||||
|
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public FakeClassnameTags123Api() {
|
public FakeClassnameTags123Api() {
|
||||||
this(Configuration.getDefaultApiClient());
|
super(Configuration.getDefaultApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public FakeClassnameTags123Api(ApiClient apiClient) {
|
public FakeClassnameTags123Api(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -125,4 +115,44 @@ public class FakeClassnameTags123Api {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> T invokeAPI(String url, String method, Object request, TypeReference<T> returnType, Map<String, String> additionalHeaders) throws ApiException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBaseURL(), "");
|
||||||
|
StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
|
||||||
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
|
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||||
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
|
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
||||||
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
localVarHeaderParams.putAll(additionalHeaders);
|
||||||
|
|
||||||
|
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[] { "api_key_query" };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(
|
||||||
|
localVarPath,
|
||||||
|
method,
|
||||||
|
localVarQueryParams,
|
||||||
|
localVarCollectionQueryParams,
|
||||||
|
localVarQueryStringJoiner.toString(),
|
||||||
|
request,
|
||||||
|
localVarHeaderParams,
|
||||||
|
localVarCookieParams,
|
||||||
|
localVarFormParams,
|
||||||
|
localVarAccept,
|
||||||
|
localVarContentType,
|
||||||
|
localVarAuthNames,
|
||||||
|
returnType
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@ import com.fasterxml.jackson.core.type.TypeReference;
|
|||||||
|
|
||||||
import org.openapitools.client.ApiException;
|
import org.openapitools.client.ApiException;
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
import org.openapitools.client.Configuration;
|
import org.openapitools.client.Configuration;
|
||||||
import org.openapitools.client.Pair;
|
import org.openapitools.client.Pair;
|
||||||
|
|
||||||
@ -33,25 +34,14 @@ import java.util.Map;
|
|||||||
import java.util.StringJoiner;
|
import java.util.StringJoiner;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class PetApi {
|
public class PetApi extends BaseApi {
|
||||||
|
|
||||||
|
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public PetApi() {
|
public PetApi() {
|
||||||
this(Configuration.getDefaultApiClient());
|
super(Configuration.getDefaultApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public PetApi(ApiClient apiClient) {
|
public PetApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -752,4 +742,44 @@ if (requiredFile != null)
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> T invokeAPI(String url, String method, Object request, TypeReference<T> returnType, Map<String, String> additionalHeaders) throws ApiException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBaseURL(), "");
|
||||||
|
StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
|
||||||
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
|
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||||
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
|
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
||||||
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
localVarHeaderParams.putAll(additionalHeaders);
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
"application/json"
|
||||||
|
};
|
||||||
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
"multipart/form-data"
|
||||||
|
};
|
||||||
|
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { "petstore_auth" };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(
|
||||||
|
localVarPath,
|
||||||
|
method,
|
||||||
|
localVarQueryParams,
|
||||||
|
localVarCollectionQueryParams,
|
||||||
|
localVarQueryStringJoiner.toString(),
|
||||||
|
request,
|
||||||
|
localVarHeaderParams,
|
||||||
|
localVarCookieParams,
|
||||||
|
localVarFormParams,
|
||||||
|
localVarAccept,
|
||||||
|
localVarContentType,
|
||||||
|
localVarAuthNames,
|
||||||
|
returnType
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@ import com.fasterxml.jackson.core.type.TypeReference;
|
|||||||
|
|
||||||
import org.openapitools.client.ApiException;
|
import org.openapitools.client.ApiException;
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
import org.openapitools.client.Configuration;
|
import org.openapitools.client.Configuration;
|
||||||
import org.openapitools.client.Pair;
|
import org.openapitools.client.Pair;
|
||||||
|
|
||||||
@ -30,25 +31,14 @@ import java.util.Map;
|
|||||||
import java.util.StringJoiner;
|
import java.util.StringJoiner;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class StoreApi {
|
public class StoreApi extends BaseApi {
|
||||||
|
|
||||||
|
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public StoreApi() {
|
public StoreApi() {
|
||||||
this(Configuration.getDefaultApiClient());
|
super(Configuration.getDefaultApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public StoreApi(ApiClient apiClient) {
|
public StoreApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -339,4 +329,44 @@ public class StoreApi {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> T invokeAPI(String url, String method, Object request, TypeReference<T> returnType, Map<String, String> additionalHeaders) throws ApiException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBaseURL(), "");
|
||||||
|
StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
|
||||||
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
|
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||||
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
|
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
||||||
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
localVarHeaderParams.putAll(additionalHeaders);
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
"application/xml", "application/json"
|
||||||
|
};
|
||||||
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
"application/json"
|
||||||
|
};
|
||||||
|
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(
|
||||||
|
localVarPath,
|
||||||
|
method,
|
||||||
|
localVarQueryParams,
|
||||||
|
localVarCollectionQueryParams,
|
||||||
|
localVarQueryStringJoiner.toString(),
|
||||||
|
request,
|
||||||
|
localVarHeaderParams,
|
||||||
|
localVarCookieParams,
|
||||||
|
localVarFormParams,
|
||||||
|
localVarAccept,
|
||||||
|
localVarContentType,
|
||||||
|
localVarAuthNames,
|
||||||
|
returnType
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@ import com.fasterxml.jackson.core.type.TypeReference;
|
|||||||
|
|
||||||
import org.openapitools.client.ApiException;
|
import org.openapitools.client.ApiException;
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
import org.openapitools.client.Configuration;
|
import org.openapitools.client.Configuration;
|
||||||
import org.openapitools.client.Pair;
|
import org.openapitools.client.Pair;
|
||||||
|
|
||||||
@ -31,25 +32,14 @@ import java.util.Map;
|
|||||||
import java.util.StringJoiner;
|
import java.util.StringJoiner;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class UserApi {
|
public class UserApi extends BaseApi {
|
||||||
|
|
||||||
|
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public UserApi() {
|
public UserApi() {
|
||||||
this(Configuration.getDefaultApiClient());
|
super(Configuration.getDefaultApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public UserApi(ApiClient apiClient) {
|
public UserApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -638,4 +628,44 @@ public class UserApi {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> T invokeAPI(String url, String method, Object request, TypeReference<T> returnType, Map<String, String> additionalHeaders) throws ApiException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBaseURL(), "");
|
||||||
|
StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
|
||||||
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
|
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||||
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
|
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
||||||
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
localVarHeaderParams.putAll(additionalHeaders);
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
|
||||||
|
};
|
||||||
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
"application/json"
|
||||||
|
};
|
||||||
|
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(
|
||||||
|
localVarPath,
|
||||||
|
method,
|
||||||
|
localVarQueryParams,
|
||||||
|
localVarCollectionQueryParams,
|
||||||
|
localVarQueryStringJoiner.toString(),
|
||||||
|
request,
|
||||||
|
localVarHeaderParams,
|
||||||
|
localVarCookieParams,
|
||||||
|
localVarFormParams,
|
||||||
|
localVarAccept,
|
||||||
|
localVarContentType,
|
||||||
|
localVarAuthNames,
|
||||||
|
returnType
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,6 +24,7 @@ pom.xml
|
|||||||
settings.gradle
|
settings.gradle
|
||||||
src/main/AndroidManifest.xml
|
src/main/AndroidManifest.xml
|
||||||
src/main/java/org/openapitools/client/ApiClient.java
|
src/main/java/org/openapitools/client/ApiClient.java
|
||||||
|
src/main/java/org/openapitools/client/BaseApi.java
|
||||||
src/main/java/org/openapitools/client/JavaTimeFormatter.java
|
src/main/java/org/openapitools/client/JavaTimeFormatter.java
|
||||||
src/main/java/org/openapitools/client/RFC3339DateFormat.java
|
src/main/java/org/openapitools/client/RFC3339DateFormat.java
|
||||||
src/main/java/org/openapitools/client/ServerConfiguration.java
|
src/main/java/org/openapitools/client/ServerConfiguration.java
|
||||||
|
@ -0,0 +1,74 @@
|
|||||||
|
package org.openapitools.client;
|
||||||
|
|
||||||
|
import org.springframework.web.client.RestClientException;
|
||||||
|
import org.springframework.core.ParameterizedTypeReference;
|
||||||
|
import org.springframework.http.HttpMethod;
|
||||||
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
|
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
|
public abstract class BaseApi {
|
||||||
|
|
||||||
|
protected ApiClient apiClient;
|
||||||
|
|
||||||
|
public BaseApi() {
|
||||||
|
this(new ApiClient());
|
||||||
|
}
|
||||||
|
|
||||||
|
public BaseApi(ApiClient apiClient) {
|
||||||
|
this.apiClient = apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ApiClient getApiClient() {
|
||||||
|
return apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setApiClient(ApiClient apiClient) {
|
||||||
|
this.apiClient = apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @return ResponseEntity<Void>
|
||||||
|
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||||
|
*/
|
||||||
|
public ResponseEntity<Void> invokeAPI(String url, HttpMethod method) throws RestClientException {
|
||||||
|
return invokeAPI(url, method, null, new ParameterizedTypeReference<Void>() {});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param request The request object.
|
||||||
|
* @return ResponseEntity<Void>
|
||||||
|
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||||
|
*/
|
||||||
|
public ResponseEntity<Void> invokeAPI(String url, HttpMethod method, Object request) throws RestClientException {
|
||||||
|
return invokeAPI(url, method, request, new ParameterizedTypeReference<Void>() {});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param returnType The return type.
|
||||||
|
* @return ResponseEntity in the specified type.
|
||||||
|
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||||
|
*/
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
return invokeAPI(url, method, null, returnType);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param request The request object.
|
||||||
|
* @param returnType The return type.
|
||||||
|
* @return ResponseEntity in the specified type.
|
||||||
|
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||||
|
*/
|
||||||
|
public abstract <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException;
|
||||||
|
}
|
@ -1,6 +1,7 @@
|
|||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import org.openapitools.client.model.ModelApiResponse;
|
import org.openapitools.client.model.ModelApiResponse;
|
||||||
@ -28,23 +29,14 @@ import org.springframework.http.MediaType;
|
|||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class PetApi {
|
public class PetApi extends BaseApi {
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public PetApi() {
|
public PetApi() {
|
||||||
this(new ApiClient());
|
super(new ApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public PetApi(ApiClient apiClient) {
|
public PetApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -482,4 +474,29 @@ public class PetApi {
|
|||||||
ParameterizedTypeReference<ModelApiResponse> localReturnType = new ParameterizedTypeReference<ModelApiResponse>() {};
|
ParameterizedTypeReference<ModelApiResponse> localReturnType = new ParameterizedTypeReference<ModelApiResponse>() {};
|
||||||
return apiClient.invokeAPI("/pet/{petId}/uploadImage", HttpMethod.POST, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
return apiClient.invokeAPI("/pet/{petId}/uploadImage", HttpMethod.POST, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBasePath(), "");
|
||||||
|
Object localVarPostBody = request;
|
||||||
|
|
||||||
|
final Map<String, Object> uriVariables = new HashMap<String, Object>();
|
||||||
|
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||||
|
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
"application/json"
|
||||||
|
};
|
||||||
|
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
"multipart/form-data"
|
||||||
|
};
|
||||||
|
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { "petstore_auth" };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(localVarPath, method, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, returnType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
|
|
||||||
import org.openapitools.client.model.Order;
|
import org.openapitools.client.model.Order;
|
||||||
|
|
||||||
@ -26,23 +27,14 @@ import org.springframework.http.MediaType;
|
|||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class StoreApi {
|
public class StoreApi extends BaseApi {
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public StoreApi() {
|
public StoreApi() {
|
||||||
this(new ApiClient());
|
super(new ApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public StoreApi(ApiClient apiClient) {
|
public StoreApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -235,4 +227,29 @@ public class StoreApi {
|
|||||||
ParameterizedTypeReference<Order> localReturnType = new ParameterizedTypeReference<Order>() {};
|
ParameterizedTypeReference<Order> localReturnType = new ParameterizedTypeReference<Order>() {};
|
||||||
return apiClient.invokeAPI("/store/order", HttpMethod.POST, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
return apiClient.invokeAPI("/store/order", HttpMethod.POST, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBasePath(), "");
|
||||||
|
Object localVarPostBody = request;
|
||||||
|
|
||||||
|
final Map<String, Object> uriVariables = new HashMap<String, Object>();
|
||||||
|
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||||
|
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
"application/xml", "application/json"
|
||||||
|
};
|
||||||
|
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
"application/json"
|
||||||
|
};
|
||||||
|
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(localVarPath, method, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, returnType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
|
|
||||||
import java.time.OffsetDateTime;
|
import java.time.OffsetDateTime;
|
||||||
import org.openapitools.client.model.User;
|
import org.openapitools.client.model.User;
|
||||||
@ -27,23 +28,14 @@ import org.springframework.http.MediaType;
|
|||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class UserApi {
|
public class UserApi extends BaseApi {
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public UserApi() {
|
public UserApi() {
|
||||||
this(new ApiClient());
|
super(new ApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public UserApi(ApiClient apiClient) {
|
public UserApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -434,4 +426,27 @@ public class UserApi {
|
|||||||
ParameterizedTypeReference<Void> localReturnType = new ParameterizedTypeReference<Void>() {};
|
ParameterizedTypeReference<Void> localReturnType = new ParameterizedTypeReference<Void>() {};
|
||||||
return apiClient.invokeAPI("/user/{username}", HttpMethod.PUT, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
return apiClient.invokeAPI("/user/{username}", HttpMethod.PUT, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBasePath(), "");
|
||||||
|
Object localVarPostBody = request;
|
||||||
|
|
||||||
|
final Map<String, Object> uriVariables = new HashMap<String, Object>();
|
||||||
|
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||||
|
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||||
|
|
||||||
|
final String[] localVarAccepts = { };
|
||||||
|
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
"application/json"
|
||||||
|
};
|
||||||
|
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { "api_key" };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(localVarPath, method, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, returnType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,6 +24,7 @@ pom.xml
|
|||||||
settings.gradle
|
settings.gradle
|
||||||
src/main/AndroidManifest.xml
|
src/main/AndroidManifest.xml
|
||||||
src/main/java/org/openapitools/client/ApiClient.java
|
src/main/java/org/openapitools/client/ApiClient.java
|
||||||
|
src/main/java/org/openapitools/client/BaseApi.java
|
||||||
src/main/java/org/openapitools/client/JavaTimeFormatter.java
|
src/main/java/org/openapitools/client/JavaTimeFormatter.java
|
||||||
src/main/java/org/openapitools/client/RFC3339DateFormat.java
|
src/main/java/org/openapitools/client/RFC3339DateFormat.java
|
||||||
src/main/java/org/openapitools/client/ServerConfiguration.java
|
src/main/java/org/openapitools/client/ServerConfiguration.java
|
||||||
|
@ -0,0 +1,74 @@
|
|||||||
|
package org.openapitools.client;
|
||||||
|
|
||||||
|
import org.springframework.web.client.RestClientException;
|
||||||
|
import org.springframework.core.ParameterizedTypeReference;
|
||||||
|
import org.springframework.http.HttpMethod;
|
||||||
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
|
public abstract class BaseApi {
|
||||||
|
|
||||||
|
protected ApiClient apiClient;
|
||||||
|
|
||||||
|
public BaseApi() {
|
||||||
|
this(new ApiClient());
|
||||||
|
}
|
||||||
|
|
||||||
|
public BaseApi(ApiClient apiClient) {
|
||||||
|
this.apiClient = apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ApiClient getApiClient() {
|
||||||
|
return apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setApiClient(ApiClient apiClient) {
|
||||||
|
this.apiClient = apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @return ResponseEntity<Void>
|
||||||
|
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||||
|
*/
|
||||||
|
public ResponseEntity<Void> invokeAPI(String url, HttpMethod method) throws RestClientException {
|
||||||
|
return invokeAPI(url, method, null, new ParameterizedTypeReference<Void>() {});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param request The request object.
|
||||||
|
* @return ResponseEntity<Void>
|
||||||
|
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||||
|
*/
|
||||||
|
public ResponseEntity<Void> invokeAPI(String url, HttpMethod method, Object request) throws RestClientException {
|
||||||
|
return invokeAPI(url, method, request, new ParameterizedTypeReference<Void>() {});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param returnType The return type.
|
||||||
|
* @return ResponseEntity in the specified type.
|
||||||
|
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||||
|
*/
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
return invokeAPI(url, method, null, returnType);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param request The request object.
|
||||||
|
* @param returnType The return type.
|
||||||
|
* @return ResponseEntity in the specified type.
|
||||||
|
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||||
|
*/
|
||||||
|
public abstract <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException;
|
||||||
|
}
|
@ -1,6 +1,7 @@
|
|||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import org.openapitools.client.model.ModelApiResponse;
|
import org.openapitools.client.model.ModelApiResponse;
|
||||||
@ -28,23 +29,14 @@ import org.springframework.http.MediaType;
|
|||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class PetApi {
|
public class PetApi extends BaseApi {
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public PetApi() {
|
public PetApi() {
|
||||||
this(new ApiClient());
|
super(new ApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public PetApi(ApiClient apiClient) {
|
public PetApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -482,4 +474,29 @@ public class PetApi {
|
|||||||
ParameterizedTypeReference<ModelApiResponse> localReturnType = new ParameterizedTypeReference<ModelApiResponse>() {};
|
ParameterizedTypeReference<ModelApiResponse> localReturnType = new ParameterizedTypeReference<ModelApiResponse>() {};
|
||||||
return apiClient.invokeAPI("/pet/{petId}/uploadImage", HttpMethod.POST, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
return apiClient.invokeAPI("/pet/{petId}/uploadImage", HttpMethod.POST, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBasePath(), "");
|
||||||
|
Object localVarPostBody = request;
|
||||||
|
|
||||||
|
final Map<String, Object> uriVariables = new HashMap<String, Object>();
|
||||||
|
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||||
|
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
"application/json"
|
||||||
|
};
|
||||||
|
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
"multipart/form-data"
|
||||||
|
};
|
||||||
|
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { "petstore_auth" };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(localVarPath, method, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, returnType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
|
|
||||||
import org.openapitools.client.model.Order;
|
import org.openapitools.client.model.Order;
|
||||||
|
|
||||||
@ -26,23 +27,14 @@ import org.springframework.http.MediaType;
|
|||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class StoreApi {
|
public class StoreApi extends BaseApi {
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public StoreApi() {
|
public StoreApi() {
|
||||||
this(new ApiClient());
|
super(new ApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public StoreApi(ApiClient apiClient) {
|
public StoreApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -235,4 +227,29 @@ public class StoreApi {
|
|||||||
ParameterizedTypeReference<Order> localReturnType = new ParameterizedTypeReference<Order>() {};
|
ParameterizedTypeReference<Order> localReturnType = new ParameterizedTypeReference<Order>() {};
|
||||||
return apiClient.invokeAPI("/store/order", HttpMethod.POST, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
return apiClient.invokeAPI("/store/order", HttpMethod.POST, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBasePath(), "");
|
||||||
|
Object localVarPostBody = request;
|
||||||
|
|
||||||
|
final Map<String, Object> uriVariables = new HashMap<String, Object>();
|
||||||
|
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||||
|
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
"application/xml", "application/json"
|
||||||
|
};
|
||||||
|
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
"application/json"
|
||||||
|
};
|
||||||
|
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(localVarPath, method, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, returnType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
|
|
||||||
import java.time.OffsetDateTime;
|
import java.time.OffsetDateTime;
|
||||||
import org.openapitools.client.model.User;
|
import org.openapitools.client.model.User;
|
||||||
@ -27,23 +28,14 @@ import org.springframework.http.MediaType;
|
|||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class UserApi {
|
public class UserApi extends BaseApi {
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public UserApi() {
|
public UserApi() {
|
||||||
this(new ApiClient());
|
super(new ApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public UserApi(ApiClient apiClient) {
|
public UserApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -434,4 +426,27 @@ public class UserApi {
|
|||||||
ParameterizedTypeReference<Void> localReturnType = new ParameterizedTypeReference<Void>() {};
|
ParameterizedTypeReference<Void> localReturnType = new ParameterizedTypeReference<Void>() {};
|
||||||
return apiClient.invokeAPI("/user/{username}", HttpMethod.PUT, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
return apiClient.invokeAPI("/user/{username}", HttpMethod.PUT, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBasePath(), "");
|
||||||
|
Object localVarPostBody = request;
|
||||||
|
|
||||||
|
final Map<String, Object> uriVariables = new HashMap<String, Object>();
|
||||||
|
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||||
|
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||||
|
|
||||||
|
final String[] localVarAccepts = { };
|
||||||
|
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
"application/json"
|
||||||
|
};
|
||||||
|
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { "api_key" };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(localVarPath, method, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, returnType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,6 +24,7 @@ pom.xml
|
|||||||
settings.gradle
|
settings.gradle
|
||||||
src/main/AndroidManifest.xml
|
src/main/AndroidManifest.xml
|
||||||
src/main/java/org/openapitools/client/ApiClient.java
|
src/main/java/org/openapitools/client/ApiClient.java
|
||||||
|
src/main/java/org/openapitools/client/BaseApi.java
|
||||||
src/main/java/org/openapitools/client/JavaTimeFormatter.java
|
src/main/java/org/openapitools/client/JavaTimeFormatter.java
|
||||||
src/main/java/org/openapitools/client/RFC3339DateFormat.java
|
src/main/java/org/openapitools/client/RFC3339DateFormat.java
|
||||||
src/main/java/org/openapitools/client/ServerConfiguration.java
|
src/main/java/org/openapitools/client/ServerConfiguration.java
|
||||||
|
@ -0,0 +1,74 @@
|
|||||||
|
package org.openapitools.client;
|
||||||
|
|
||||||
|
import org.springframework.web.client.RestClientException;
|
||||||
|
import org.springframework.core.ParameterizedTypeReference;
|
||||||
|
import org.springframework.http.HttpMethod;
|
||||||
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
|
public abstract class BaseApi {
|
||||||
|
|
||||||
|
protected ApiClient apiClient;
|
||||||
|
|
||||||
|
public BaseApi() {
|
||||||
|
this(new ApiClient());
|
||||||
|
}
|
||||||
|
|
||||||
|
public BaseApi(ApiClient apiClient) {
|
||||||
|
this.apiClient = apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ApiClient getApiClient() {
|
||||||
|
return apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setApiClient(ApiClient apiClient) {
|
||||||
|
this.apiClient = apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @return ResponseEntity<Void>
|
||||||
|
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||||
|
*/
|
||||||
|
public ResponseEntity<Void> invokeAPI(String url, HttpMethod method) throws RestClientException {
|
||||||
|
return invokeAPI(url, method, null, new ParameterizedTypeReference<Void>() {});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param request The request object.
|
||||||
|
* @return ResponseEntity<Void>
|
||||||
|
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||||
|
*/
|
||||||
|
public ResponseEntity<Void> invokeAPI(String url, HttpMethod method, Object request) throws RestClientException {
|
||||||
|
return invokeAPI(url, method, request, new ParameterizedTypeReference<Void>() {});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param returnType The return type.
|
||||||
|
* @return ResponseEntity in the specified type.
|
||||||
|
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||||
|
*/
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
return invokeAPI(url, method, null, returnType);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param request The request object.
|
||||||
|
* @param returnType The return type.
|
||||||
|
* @return ResponseEntity in the specified type.
|
||||||
|
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||||
|
*/
|
||||||
|
public abstract <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException;
|
||||||
|
}
|
@ -1,6 +1,7 @@
|
|||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import org.openapitools.client.model.ModelApiResponse;
|
import org.openapitools.client.model.ModelApiResponse;
|
||||||
@ -28,23 +29,14 @@ import org.springframework.http.MediaType;
|
|||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class PetApi {
|
public class PetApi extends BaseApi {
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public PetApi() {
|
public PetApi() {
|
||||||
this(new ApiClient());
|
super(new ApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public PetApi(ApiClient apiClient) {
|
public PetApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -482,4 +474,29 @@ public class PetApi {
|
|||||||
ParameterizedTypeReference<ModelApiResponse> localReturnType = new ParameterizedTypeReference<ModelApiResponse>() {};
|
ParameterizedTypeReference<ModelApiResponse> localReturnType = new ParameterizedTypeReference<ModelApiResponse>() {};
|
||||||
return apiClient.invokeAPI("/pet/{petId}/uploadImage", HttpMethod.POST, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
return apiClient.invokeAPI("/pet/{petId}/uploadImage", HttpMethod.POST, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBasePath(), "");
|
||||||
|
Object localVarPostBody = request;
|
||||||
|
|
||||||
|
final Map<String, Object> uriVariables = new HashMap<String, Object>();
|
||||||
|
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||||
|
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
"application/json"
|
||||||
|
};
|
||||||
|
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
"multipart/form-data"
|
||||||
|
};
|
||||||
|
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { "petstore_auth" };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(localVarPath, method, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, returnType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
|
|
||||||
import org.openapitools.client.model.Order;
|
import org.openapitools.client.model.Order;
|
||||||
|
|
||||||
@ -26,23 +27,14 @@ import org.springframework.http.MediaType;
|
|||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class StoreApi {
|
public class StoreApi extends BaseApi {
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public StoreApi() {
|
public StoreApi() {
|
||||||
this(new ApiClient());
|
super(new ApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public StoreApi(ApiClient apiClient) {
|
public StoreApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -235,4 +227,29 @@ public class StoreApi {
|
|||||||
ParameterizedTypeReference<Order> localReturnType = new ParameterizedTypeReference<Order>() {};
|
ParameterizedTypeReference<Order> localReturnType = new ParameterizedTypeReference<Order>() {};
|
||||||
return apiClient.invokeAPI("/store/order", HttpMethod.POST, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
return apiClient.invokeAPI("/store/order", HttpMethod.POST, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBasePath(), "");
|
||||||
|
Object localVarPostBody = request;
|
||||||
|
|
||||||
|
final Map<String, Object> uriVariables = new HashMap<String, Object>();
|
||||||
|
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||||
|
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
"application/xml", "application/json"
|
||||||
|
};
|
||||||
|
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
"application/json"
|
||||||
|
};
|
||||||
|
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(localVarPath, method, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, returnType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
|
|
||||||
import java.time.OffsetDateTime;
|
import java.time.OffsetDateTime;
|
||||||
import org.openapitools.client.model.User;
|
import org.openapitools.client.model.User;
|
||||||
@ -27,23 +28,14 @@ import org.springframework.http.MediaType;
|
|||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class UserApi {
|
public class UserApi extends BaseApi {
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public UserApi() {
|
public UserApi() {
|
||||||
this(new ApiClient());
|
super(new ApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public UserApi(ApiClient apiClient) {
|
public UserApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -434,4 +426,27 @@ public class UserApi {
|
|||||||
ParameterizedTypeReference<Void> localReturnType = new ParameterizedTypeReference<Void>() {};
|
ParameterizedTypeReference<Void> localReturnType = new ParameterizedTypeReference<Void>() {};
|
||||||
return apiClient.invokeAPI("/user/{username}", HttpMethod.PUT, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
return apiClient.invokeAPI("/user/{username}", HttpMethod.PUT, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBasePath(), "");
|
||||||
|
Object localVarPostBody = request;
|
||||||
|
|
||||||
|
final Map<String, Object> uriVariables = new HashMap<String, Object>();
|
||||||
|
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||||
|
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||||
|
|
||||||
|
final String[] localVarAccepts = { };
|
||||||
|
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
"application/json"
|
||||||
|
};
|
||||||
|
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { "api_key" };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(localVarPath, method, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, returnType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -72,6 +72,7 @@ pom.xml
|
|||||||
settings.gradle
|
settings.gradle
|
||||||
src/main/AndroidManifest.xml
|
src/main/AndroidManifest.xml
|
||||||
src/main/java/org/openapitools/client/ApiClient.java
|
src/main/java/org/openapitools/client/ApiClient.java
|
||||||
|
src/main/java/org/openapitools/client/BaseApi.java
|
||||||
src/main/java/org/openapitools/client/JavaTimeFormatter.java
|
src/main/java/org/openapitools/client/JavaTimeFormatter.java
|
||||||
src/main/java/org/openapitools/client/RFC3339DateFormat.java
|
src/main/java/org/openapitools/client/RFC3339DateFormat.java
|
||||||
src/main/java/org/openapitools/client/ServerConfiguration.java
|
src/main/java/org/openapitools/client/ServerConfiguration.java
|
||||||
|
@ -0,0 +1,74 @@
|
|||||||
|
package org.openapitools.client;
|
||||||
|
|
||||||
|
import org.springframework.web.client.RestClientException;
|
||||||
|
import org.springframework.core.ParameterizedTypeReference;
|
||||||
|
import org.springframework.http.HttpMethod;
|
||||||
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
|
public abstract class BaseApi {
|
||||||
|
|
||||||
|
protected ApiClient apiClient;
|
||||||
|
|
||||||
|
public BaseApi() {
|
||||||
|
this(new ApiClient());
|
||||||
|
}
|
||||||
|
|
||||||
|
public BaseApi(ApiClient apiClient) {
|
||||||
|
this.apiClient = apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ApiClient getApiClient() {
|
||||||
|
return apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setApiClient(ApiClient apiClient) {
|
||||||
|
this.apiClient = apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @return ResponseEntity<Void>
|
||||||
|
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||||
|
*/
|
||||||
|
public ResponseEntity<Void> invokeAPI(String url, HttpMethod method) throws RestClientException {
|
||||||
|
return invokeAPI(url, method, null, new ParameterizedTypeReference<Void>() {});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param request The request object.
|
||||||
|
* @return ResponseEntity<Void>
|
||||||
|
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||||
|
*/
|
||||||
|
public ResponseEntity<Void> invokeAPI(String url, HttpMethod method, Object request) throws RestClientException {
|
||||||
|
return invokeAPI(url, method, request, new ParameterizedTypeReference<Void>() {});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param returnType The return type.
|
||||||
|
* @return ResponseEntity in the specified type.
|
||||||
|
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||||
|
*/
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
return invokeAPI(url, method, null, returnType);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param request The request object.
|
||||||
|
* @param returnType The return type.
|
||||||
|
* @return ResponseEntity in the specified type.
|
||||||
|
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||||
|
*/
|
||||||
|
public abstract <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException;
|
||||||
|
}
|
@ -1,6 +1,7 @@
|
|||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
|
|
||||||
import org.openapitools.client.model.Client;
|
import org.openapitools.client.model.Client;
|
||||||
|
|
||||||
@ -26,23 +27,14 @@ import org.springframework.http.MediaType;
|
|||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class AnotherFakeApi {
|
public class AnotherFakeApi extends BaseApi {
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public AnotherFakeApi() {
|
public AnotherFakeApi() {
|
||||||
this(new ApiClient());
|
super(new ApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public AnotherFakeApi(ApiClient apiClient) {
|
public AnotherFakeApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -93,4 +85,29 @@ public class AnotherFakeApi {
|
|||||||
ParameterizedTypeReference<Client> localReturnType = new ParameterizedTypeReference<Client>() {};
|
ParameterizedTypeReference<Client> localReturnType = new ParameterizedTypeReference<Client>() {};
|
||||||
return apiClient.invokeAPI("/another-fake/dummy", HttpMethod.PATCH, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
return apiClient.invokeAPI("/another-fake/dummy", HttpMethod.PATCH, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBasePath(), "");
|
||||||
|
Object localVarPostBody = request;
|
||||||
|
|
||||||
|
final Map<String, Object> uriVariables = new HashMap<String, Object>();
|
||||||
|
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||||
|
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
"application/json"
|
||||||
|
};
|
||||||
|
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
"application/json"
|
||||||
|
};
|
||||||
|
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(localVarPath, method, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, returnType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
|
|
||||||
import org.openapitools.client.model.FooGetDefaultResponse;
|
import org.openapitools.client.model.FooGetDefaultResponse;
|
||||||
|
|
||||||
@ -26,23 +27,14 @@ import org.springframework.http.MediaType;
|
|||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class DefaultApi {
|
public class DefaultApi extends BaseApi {
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public DefaultApi() {
|
public DefaultApi() {
|
||||||
this(new ApiClient());
|
super(new ApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public DefaultApi(ApiClient apiClient) {
|
public DefaultApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -84,4 +76,27 @@ public class DefaultApi {
|
|||||||
ParameterizedTypeReference<FooGetDefaultResponse> localReturnType = new ParameterizedTypeReference<FooGetDefaultResponse>() {};
|
ParameterizedTypeReference<FooGetDefaultResponse> localReturnType = new ParameterizedTypeReference<FooGetDefaultResponse>() {};
|
||||||
return apiClient.invokeAPI("/foo", HttpMethod.GET, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
return apiClient.invokeAPI("/foo", HttpMethod.GET, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBasePath(), "");
|
||||||
|
Object localVarPostBody = request;
|
||||||
|
|
||||||
|
final Map<String, Object> uriVariables = new HashMap<String, Object>();
|
||||||
|
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||||
|
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
"application/json"
|
||||||
|
};
|
||||||
|
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
final String[] localVarContentTypes = { };
|
||||||
|
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(localVarPath, method, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, returnType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import org.openapitools.client.model.ChildWithNullable;
|
import org.openapitools.client.model.ChildWithNullable;
|
||||||
@ -40,23 +41,14 @@ import org.springframework.http.MediaType;
|
|||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class FakeApi {
|
public class FakeApi extends BaseApi {
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public FakeApi() {
|
public FakeApi() {
|
||||||
this(new ApiClient());
|
super(new ApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public FakeApi(ApiClient apiClient) {
|
public FakeApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1242,4 +1234,27 @@ public class FakeApi {
|
|||||||
ParameterizedTypeReference<Void> localReturnType = new ParameterizedTypeReference<Void>() {};
|
ParameterizedTypeReference<Void> localReturnType = new ParameterizedTypeReference<Void>() {};
|
||||||
return apiClient.invokeAPI("/fake/stringMap-reference", HttpMethod.POST, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
return apiClient.invokeAPI("/fake/stringMap-reference", HttpMethod.POST, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBasePath(), "");
|
||||||
|
Object localVarPostBody = request;
|
||||||
|
|
||||||
|
final Map<String, Object> uriVariables = new HashMap<String, Object>();
|
||||||
|
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||||
|
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||||
|
|
||||||
|
final String[] localVarAccepts = { };
|
||||||
|
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
"application/json"
|
||||||
|
};
|
||||||
|
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(localVarPath, method, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, returnType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
|
|
||||||
import org.openapitools.client.model.Client;
|
import org.openapitools.client.model.Client;
|
||||||
|
|
||||||
@ -26,23 +27,14 @@ import org.springframework.http.MediaType;
|
|||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class FakeClassnameTags123Api {
|
public class FakeClassnameTags123Api extends BaseApi {
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public FakeClassnameTags123Api() {
|
public FakeClassnameTags123Api() {
|
||||||
this(new ApiClient());
|
super(new ApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public FakeClassnameTags123Api(ApiClient apiClient) {
|
public FakeClassnameTags123Api(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -93,4 +85,29 @@ public class FakeClassnameTags123Api {
|
|||||||
ParameterizedTypeReference<Client> localReturnType = new ParameterizedTypeReference<Client>() {};
|
ParameterizedTypeReference<Client> localReturnType = new ParameterizedTypeReference<Client>() {};
|
||||||
return apiClient.invokeAPI("/fake_classname_test", HttpMethod.PATCH, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
return apiClient.invokeAPI("/fake_classname_test", HttpMethod.PATCH, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBasePath(), "");
|
||||||
|
Object localVarPostBody = request;
|
||||||
|
|
||||||
|
final Map<String, Object> uriVariables = new HashMap<String, Object>();
|
||||||
|
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||||
|
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
"application/json"
|
||||||
|
};
|
||||||
|
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
"application/json"
|
||||||
|
};
|
||||||
|
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { "api_key_query" };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(localVarPath, method, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, returnType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import org.openapitools.client.model.ModelApiResponse;
|
import org.openapitools.client.model.ModelApiResponse;
|
||||||
@ -29,23 +30,14 @@ import org.springframework.http.MediaType;
|
|||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class PetApi {
|
public class PetApi extends BaseApi {
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public PetApi() {
|
public PetApi() {
|
||||||
this(new ApiClient());
|
super(new ApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public PetApi(ApiClient apiClient) {
|
public PetApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -542,4 +534,29 @@ public class PetApi {
|
|||||||
ParameterizedTypeReference<ModelApiResponse> localReturnType = new ParameterizedTypeReference<ModelApiResponse>() {};
|
ParameterizedTypeReference<ModelApiResponse> localReturnType = new ParameterizedTypeReference<ModelApiResponse>() {};
|
||||||
return apiClient.invokeAPI("/fake/{petId}/uploadImageWithRequiredFile", HttpMethod.POST, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
return apiClient.invokeAPI("/fake/{petId}/uploadImageWithRequiredFile", HttpMethod.POST, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBasePath(), "");
|
||||||
|
Object localVarPostBody = request;
|
||||||
|
|
||||||
|
final Map<String, Object> uriVariables = new HashMap<String, Object>();
|
||||||
|
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||||
|
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
"application/json"
|
||||||
|
};
|
||||||
|
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
"multipart/form-data"
|
||||||
|
};
|
||||||
|
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { "petstore_auth" };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(localVarPath, method, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, returnType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
|
|
||||||
import org.openapitools.client.model.Order;
|
import org.openapitools.client.model.Order;
|
||||||
|
|
||||||
@ -26,23 +27,14 @@ import org.springframework.http.MediaType;
|
|||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class StoreApi {
|
public class StoreApi extends BaseApi {
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public StoreApi() {
|
public StoreApi() {
|
||||||
this(new ApiClient());
|
super(new ApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public StoreApi(ApiClient apiClient) {
|
public StoreApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -235,4 +227,29 @@ public class StoreApi {
|
|||||||
ParameterizedTypeReference<Order> localReturnType = new ParameterizedTypeReference<Order>() {};
|
ParameterizedTypeReference<Order> localReturnType = new ParameterizedTypeReference<Order>() {};
|
||||||
return apiClient.invokeAPI("/store/order", HttpMethod.POST, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
return apiClient.invokeAPI("/store/order", HttpMethod.POST, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBasePath(), "");
|
||||||
|
Object localVarPostBody = request;
|
||||||
|
|
||||||
|
final Map<String, Object> uriVariables = new HashMap<String, Object>();
|
||||||
|
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||||
|
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
"application/xml", "application/json"
|
||||||
|
};
|
||||||
|
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
"application/json"
|
||||||
|
};
|
||||||
|
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(localVarPath, method, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, returnType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
|
|
||||||
import java.time.OffsetDateTime;
|
import java.time.OffsetDateTime;
|
||||||
import org.openapitools.client.model.User;
|
import org.openapitools.client.model.User;
|
||||||
@ -27,23 +28,14 @@ import org.springframework.http.MediaType;
|
|||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class UserApi {
|
public class UserApi extends BaseApi {
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public UserApi() {
|
public UserApi() {
|
||||||
this(new ApiClient());
|
super(new ApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public UserApi(ApiClient apiClient) {
|
public UserApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -434,4 +426,27 @@ public class UserApi {
|
|||||||
ParameterizedTypeReference<Void> localReturnType = new ParameterizedTypeReference<Void>() {};
|
ParameterizedTypeReference<Void> localReturnType = new ParameterizedTypeReference<Void>() {};
|
||||||
return apiClient.invokeAPI("/user/{username}", HttpMethod.PUT, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
return apiClient.invokeAPI("/user/{username}", HttpMethod.PUT, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBasePath(), "");
|
||||||
|
Object localVarPostBody = request;
|
||||||
|
|
||||||
|
final Map<String, Object> uriVariables = new HashMap<String, Object>();
|
||||||
|
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||||
|
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||||
|
|
||||||
|
final String[] localVarAccepts = { };
|
||||||
|
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
"application/json"
|
||||||
|
};
|
||||||
|
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(localVarPath, method, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, returnType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -72,6 +72,7 @@ pom.xml
|
|||||||
settings.gradle
|
settings.gradle
|
||||||
src/main/AndroidManifest.xml
|
src/main/AndroidManifest.xml
|
||||||
src/main/java/org/openapitools/client/ApiClient.java
|
src/main/java/org/openapitools/client/ApiClient.java
|
||||||
|
src/main/java/org/openapitools/client/BaseApi.java
|
||||||
src/main/java/org/openapitools/client/JavaTimeFormatter.java
|
src/main/java/org/openapitools/client/JavaTimeFormatter.java
|
||||||
src/main/java/org/openapitools/client/RFC3339DateFormat.java
|
src/main/java/org/openapitools/client/RFC3339DateFormat.java
|
||||||
src/main/java/org/openapitools/client/ServerConfiguration.java
|
src/main/java/org/openapitools/client/ServerConfiguration.java
|
||||||
|
@ -0,0 +1,74 @@
|
|||||||
|
package org.openapitools.client;
|
||||||
|
|
||||||
|
import org.springframework.web.client.RestClientException;
|
||||||
|
import org.springframework.core.ParameterizedTypeReference;
|
||||||
|
import org.springframework.http.HttpMethod;
|
||||||
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
|
public abstract class BaseApi {
|
||||||
|
|
||||||
|
protected ApiClient apiClient;
|
||||||
|
|
||||||
|
public BaseApi() {
|
||||||
|
this(new ApiClient());
|
||||||
|
}
|
||||||
|
|
||||||
|
public BaseApi(ApiClient apiClient) {
|
||||||
|
this.apiClient = apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ApiClient getApiClient() {
|
||||||
|
return apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setApiClient(ApiClient apiClient) {
|
||||||
|
this.apiClient = apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @return ResponseEntity<Void>
|
||||||
|
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||||
|
*/
|
||||||
|
public ResponseEntity<Void> invokeAPI(String url, HttpMethod method) throws RestClientException {
|
||||||
|
return invokeAPI(url, method, null, new ParameterizedTypeReference<Void>() {});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param request The request object.
|
||||||
|
* @return ResponseEntity<Void>
|
||||||
|
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||||
|
*/
|
||||||
|
public ResponseEntity<Void> invokeAPI(String url, HttpMethod method, Object request) throws RestClientException {
|
||||||
|
return invokeAPI(url, method, request, new ParameterizedTypeReference<Void>() {});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param returnType The return type.
|
||||||
|
* @return ResponseEntity in the specified type.
|
||||||
|
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||||
|
*/
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
return invokeAPI(url, method, null, returnType);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.
|
||||||
|
* @param url The URL for the request, either full URL or only the path.
|
||||||
|
* @param method The HTTP method for the request.
|
||||||
|
* @param request The request object.
|
||||||
|
* @param returnType The return type.
|
||||||
|
* @return ResponseEntity in the specified type.
|
||||||
|
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||||
|
*/
|
||||||
|
public abstract <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException;
|
||||||
|
}
|
@ -1,6 +1,7 @@
|
|||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
|
|
||||||
import org.openapitools.client.model.Client;
|
import org.openapitools.client.model.Client;
|
||||||
|
|
||||||
@ -26,23 +27,14 @@ import org.springframework.http.MediaType;
|
|||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class AnotherFakeApi {
|
public class AnotherFakeApi extends BaseApi {
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public AnotherFakeApi() {
|
public AnotherFakeApi() {
|
||||||
this(new ApiClient());
|
super(new ApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public AnotherFakeApi(ApiClient apiClient) {
|
public AnotherFakeApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -93,4 +85,29 @@ public class AnotherFakeApi {
|
|||||||
ParameterizedTypeReference<Client> localReturnType = new ParameterizedTypeReference<Client>() {};
|
ParameterizedTypeReference<Client> localReturnType = new ParameterizedTypeReference<Client>() {};
|
||||||
return apiClient.invokeAPI("/another-fake/dummy", HttpMethod.PATCH, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
return apiClient.invokeAPI("/another-fake/dummy", HttpMethod.PATCH, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBasePath(), "");
|
||||||
|
Object localVarPostBody = request;
|
||||||
|
|
||||||
|
final Map<String, Object> uriVariables = new HashMap<String, Object>();
|
||||||
|
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||||
|
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
"application/json"
|
||||||
|
};
|
||||||
|
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
"application/json"
|
||||||
|
};
|
||||||
|
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(localVarPath, method, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, returnType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
|
|
||||||
import org.openapitools.client.model.FooGetDefaultResponse;
|
import org.openapitools.client.model.FooGetDefaultResponse;
|
||||||
|
|
||||||
@ -26,23 +27,14 @@ import org.springframework.http.MediaType;
|
|||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class DefaultApi {
|
public class DefaultApi extends BaseApi {
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public DefaultApi() {
|
public DefaultApi() {
|
||||||
this(new ApiClient());
|
super(new ApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public DefaultApi(ApiClient apiClient) {
|
public DefaultApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -84,4 +76,27 @@ public class DefaultApi {
|
|||||||
ParameterizedTypeReference<FooGetDefaultResponse> localReturnType = new ParameterizedTypeReference<FooGetDefaultResponse>() {};
|
ParameterizedTypeReference<FooGetDefaultResponse> localReturnType = new ParameterizedTypeReference<FooGetDefaultResponse>() {};
|
||||||
return apiClient.invokeAPI("/foo", HttpMethod.GET, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
return apiClient.invokeAPI("/foo", HttpMethod.GET, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBasePath(), "");
|
||||||
|
Object localVarPostBody = request;
|
||||||
|
|
||||||
|
final Map<String, Object> uriVariables = new HashMap<String, Object>();
|
||||||
|
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||||
|
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
"application/json"
|
||||||
|
};
|
||||||
|
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
final String[] localVarContentTypes = { };
|
||||||
|
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(localVarPath, method, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, returnType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import org.openapitools.client.model.ChildWithNullable;
|
import org.openapitools.client.model.ChildWithNullable;
|
||||||
@ -40,23 +41,14 @@ import org.springframework.http.MediaType;
|
|||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class FakeApi {
|
public class FakeApi extends BaseApi {
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public FakeApi() {
|
public FakeApi() {
|
||||||
this(new ApiClient());
|
super(new ApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public FakeApi(ApiClient apiClient) {
|
public FakeApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1242,4 +1234,27 @@ public class FakeApi {
|
|||||||
ParameterizedTypeReference<Void> localReturnType = new ParameterizedTypeReference<Void>() {};
|
ParameterizedTypeReference<Void> localReturnType = new ParameterizedTypeReference<Void>() {};
|
||||||
return apiClient.invokeAPI("/fake/stringMap-reference", HttpMethod.POST, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
return apiClient.invokeAPI("/fake/stringMap-reference", HttpMethod.POST, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBasePath(), "");
|
||||||
|
Object localVarPostBody = request;
|
||||||
|
|
||||||
|
final Map<String, Object> uriVariables = new HashMap<String, Object>();
|
||||||
|
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||||
|
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||||
|
|
||||||
|
final String[] localVarAccepts = { };
|
||||||
|
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
"application/json"
|
||||||
|
};
|
||||||
|
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(localVarPath, method, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, returnType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
|
|
||||||
import org.openapitools.client.model.Client;
|
import org.openapitools.client.model.Client;
|
||||||
|
|
||||||
@ -26,23 +27,14 @@ import org.springframework.http.MediaType;
|
|||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class FakeClassnameTags123Api {
|
public class FakeClassnameTags123Api extends BaseApi {
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public FakeClassnameTags123Api() {
|
public FakeClassnameTags123Api() {
|
||||||
this(new ApiClient());
|
super(new ApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public FakeClassnameTags123Api(ApiClient apiClient) {
|
public FakeClassnameTags123Api(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -93,4 +85,29 @@ public class FakeClassnameTags123Api {
|
|||||||
ParameterizedTypeReference<Client> localReturnType = new ParameterizedTypeReference<Client>() {};
|
ParameterizedTypeReference<Client> localReturnType = new ParameterizedTypeReference<Client>() {};
|
||||||
return apiClient.invokeAPI("/fake_classname_test", HttpMethod.PATCH, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
return apiClient.invokeAPI("/fake_classname_test", HttpMethod.PATCH, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBasePath(), "");
|
||||||
|
Object localVarPostBody = request;
|
||||||
|
|
||||||
|
final Map<String, Object> uriVariables = new HashMap<String, Object>();
|
||||||
|
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||||
|
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
"application/json"
|
||||||
|
};
|
||||||
|
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
"application/json"
|
||||||
|
};
|
||||||
|
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { "api_key_query" };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(localVarPath, method, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, returnType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import org.openapitools.client.model.ModelApiResponse;
|
import org.openapitools.client.model.ModelApiResponse;
|
||||||
@ -29,23 +30,14 @@ import org.springframework.http.MediaType;
|
|||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class PetApi {
|
public class PetApi extends BaseApi {
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public PetApi() {
|
public PetApi() {
|
||||||
this(new ApiClient());
|
super(new ApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public PetApi(ApiClient apiClient) {
|
public PetApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -542,4 +534,29 @@ public class PetApi {
|
|||||||
ParameterizedTypeReference<ModelApiResponse> localReturnType = new ParameterizedTypeReference<ModelApiResponse>() {};
|
ParameterizedTypeReference<ModelApiResponse> localReturnType = new ParameterizedTypeReference<ModelApiResponse>() {};
|
||||||
return apiClient.invokeAPI("/fake/{petId}/uploadImageWithRequiredFile", HttpMethod.POST, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
return apiClient.invokeAPI("/fake/{petId}/uploadImageWithRequiredFile", HttpMethod.POST, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBasePath(), "");
|
||||||
|
Object localVarPostBody = request;
|
||||||
|
|
||||||
|
final Map<String, Object> uriVariables = new HashMap<String, Object>();
|
||||||
|
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||||
|
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
"application/json"
|
||||||
|
};
|
||||||
|
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
"multipart/form-data"
|
||||||
|
};
|
||||||
|
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { "petstore_auth" };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(localVarPath, method, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, returnType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
|
|
||||||
import org.openapitools.client.model.Order;
|
import org.openapitools.client.model.Order;
|
||||||
|
|
||||||
@ -26,23 +27,14 @@ import org.springframework.http.MediaType;
|
|||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class StoreApi {
|
public class StoreApi extends BaseApi {
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public StoreApi() {
|
public StoreApi() {
|
||||||
this(new ApiClient());
|
super(new ApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public StoreApi(ApiClient apiClient) {
|
public StoreApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -235,4 +227,29 @@ public class StoreApi {
|
|||||||
ParameterizedTypeReference<Order> localReturnType = new ParameterizedTypeReference<Order>() {};
|
ParameterizedTypeReference<Order> localReturnType = new ParameterizedTypeReference<Order>() {};
|
||||||
return apiClient.invokeAPI("/store/order", HttpMethod.POST, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
return apiClient.invokeAPI("/store/order", HttpMethod.POST, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBasePath(), "");
|
||||||
|
Object localVarPostBody = request;
|
||||||
|
|
||||||
|
final Map<String, Object> uriVariables = new HashMap<String, Object>();
|
||||||
|
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||||
|
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
"application/xml", "application/json"
|
||||||
|
};
|
||||||
|
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
"application/json"
|
||||||
|
};
|
||||||
|
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(localVarPath, method, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, returnType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package org.openapitools.client.api;
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.BaseApi;
|
||||||
|
|
||||||
import java.time.OffsetDateTime;
|
import java.time.OffsetDateTime;
|
||||||
import org.openapitools.client.model.User;
|
import org.openapitools.client.model.User;
|
||||||
@ -27,23 +28,14 @@ import org.springframework.http.MediaType;
|
|||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||||
public class UserApi {
|
public class UserApi extends BaseApi {
|
||||||
private ApiClient apiClient;
|
|
||||||
|
|
||||||
public UserApi() {
|
public UserApi() {
|
||||||
this(new ApiClient());
|
super(new ApiClient());
|
||||||
}
|
}
|
||||||
|
|
||||||
public UserApi(ApiClient apiClient) {
|
public UserApi(ApiClient apiClient) {
|
||||||
this.apiClient = apiClient;
|
super(apiClient);
|
||||||
}
|
|
||||||
|
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -434,4 +426,27 @@ public class UserApi {
|
|||||||
ParameterizedTypeReference<Void> localReturnType = new ParameterizedTypeReference<Void>() {};
|
ParameterizedTypeReference<Void> localReturnType = new ParameterizedTypeReference<Void>() {};
|
||||||
return apiClient.invokeAPI("/user/{username}", HttpMethod.PUT, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
return apiClient.invokeAPI("/user/{username}", HttpMethod.PUT, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> ResponseEntity<T> invokeAPI(String url, HttpMethod method, Object request, ParameterizedTypeReference<T> returnType) throws RestClientException {
|
||||||
|
String localVarPath = url.replace(apiClient.getBasePath(), "");
|
||||||
|
Object localVarPostBody = request;
|
||||||
|
|
||||||
|
final Map<String, Object> uriVariables = new HashMap<String, Object>();
|
||||||
|
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||||
|
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||||
|
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||||
|
|
||||||
|
final String[] localVarAccepts = { };
|
||||||
|
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
"application/json"
|
||||||
|
};
|
||||||
|
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
return apiClient.invokeAPI(localVarPath, method, uriVariables, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, returnType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user