travel.wink.sdk.reference.api.GeoDataApi Maven / Gradle / Ivy
package travel.wink.sdk.reference.api;
import travel.wink.sdk.reference.invoker.ApiClient;
import travel.wink.sdk.reference.model.GenericErrorMessage;
import travel.wink.sdk.reference.model.GeoIPNonAuthenticatedEntity;
import travel.wink.sdk.reference.model.GeoNameCountryNonAuthenticatedEntity;
import travel.wink.sdk.reference.model.GeoNameNonAuthenticatedEntity;
import travel.wink.sdk.reference.model.KeyValuePairNonAuthenticatedEntity;
import travel.wink.sdk.reference.model.ShowSocialNetworks400Response;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.web.reactive.function.client.WebClient.ResponseSpec;
import org.springframework.web.reactive.function.client.WebClientResponseException;
import org.springframework.core.io.FileSystemResource;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import reactor.core.publisher.Mono;
import reactor.core.publisher.Flux;
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-08-12T22:13:10.849365571+07:00[Asia/Bangkok]")
public class GeoDataApi {
private ApiClient apiClient;
public GeoDataApi() {
this(new ApiClient());
}
@Autowired
public GeoDataApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
public ApiClient getApiClient() {
return apiClient;
}
public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* Find Geo Name by Term
* Finds a list of geo-name entities for a term that `sounds like`.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param term Geo-name term to be searched
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<GeoNameNonAuthenticatedEntity>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec searchForCitiesRequestCreation(String term, String winkVersion, String accept) throws WebClientResponseException {
Object postBody = null;
// verify the required parameter 'term' is set
if (term == null) {
throw new WebClientResponseException("Missing the required parameter 'term' when calling searchForCities", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("term", term);
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
if (accept != null)
headerParams.add("Accept", apiClient.parameterToString(accept));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = { };
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/reference-data/geo/city/search/{term}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Find Geo Name by Term
* Finds a list of geo-name entities for a term that `sounds like`.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param term Geo-name term to be searched
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<GeoNameNonAuthenticatedEntity>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Flux searchForCities(String term, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return searchForCitiesRequestCreation(term, winkVersion, accept).bodyToFlux(localVarReturnType);
}
/**
* Find Geo Name by Term
* Finds a list of geo-name entities for a term that `sounds like`.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param term Geo-name term to be searched
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<List<GeoNameNonAuthenticatedEntity>>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono>> searchForCitiesWithHttpInfo(String term, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return searchForCitiesRequestCreation(term, winkVersion, accept).toEntityList(localVarReturnType);
}
/**
* Find Geo Name by Term
* Finds a list of geo-name entities for a term that `sounds like`.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param term Geo-name term to be searched
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec searchForCitiesWithResponseSpec(String term, String winkVersion, String accept) throws WebClientResponseException {
return searchForCitiesRequestCreation(term, winkVersion, accept);
}
/**
* City Search
* Searches for city matching search term.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param searchTerm Search for city by search term
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<GeoIPNonAuthenticatedEntity>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec searchForCityRequestCreation(String searchTerm, String winkVersion, String accept) throws WebClientResponseException {
Object postBody = null;
// verify the required parameter 'searchTerm' is set
if (searchTerm == null) {
throw new WebClientResponseException("Missing the required parameter 'searchTerm' when calling searchForCity", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("searchTerm", searchTerm);
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
if (accept != null)
headerParams.add("Accept", apiClient.parameterToString(accept));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = { };
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/reference-data/geo-ip/city/{searchTerm}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* City Search
* Searches for city matching search term.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param searchTerm Search for city by search term
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<GeoIPNonAuthenticatedEntity>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Flux searchForCity(String searchTerm, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return searchForCityRequestCreation(searchTerm, winkVersion, accept).bodyToFlux(localVarReturnType);
}
/**
* City Search
* Searches for city matching search term.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param searchTerm Search for city by search term
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<List<GeoIPNonAuthenticatedEntity>>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono>> searchForCityWithHttpInfo(String searchTerm, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return searchForCityRequestCreation(searchTerm, winkVersion, accept).toEntityList(localVarReturnType);
}
/**
* City Search
* Searches for city matching search term.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param searchTerm Search for city by search term
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec searchForCityWithResponseSpec(String searchTerm, String winkVersion, String accept) throws WebClientResponseException {
return searchForCityRequestCreation(searchTerm, winkVersion, accept);
}
/**
* Show All Continents
* List all continents.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<KeyValuePairNonAuthenticatedEntity>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showContinentsRequestCreation(String winkVersion, String accept) throws WebClientResponseException {
Object postBody = null;
// create path and map variables
final Map pathParams = new HashMap();
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
if (accept != null)
headerParams.add("Accept", apiClient.parameterToString(accept));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = { };
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/reference-data/geo-ip/continent/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show All Continents
* List all continents.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<KeyValuePairNonAuthenticatedEntity>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Flux showContinents(String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showContinentsRequestCreation(winkVersion, accept).bodyToFlux(localVarReturnType);
}
/**
* Show All Continents
* List all continents.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<List<KeyValuePairNonAuthenticatedEntity>>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono>> showContinentsWithHttpInfo(String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showContinentsRequestCreation(winkVersion, accept).toEntityList(localVarReturnType);
}
/**
* Show All Continents
* List all continents.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec showContinentsWithResponseSpec(String winkVersion, String accept) throws WebClientResponseException {
return showContinentsRequestCreation(winkVersion, accept);
}
/**
* Show Geo Name Countries
* List all countries.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<GeoNameCountryNonAuthenticatedEntity>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showCountriesRequestCreation(String winkVersion, String accept) throws WebClientResponseException {
Object postBody = null;
// create path and map variables
final Map pathParams = new HashMap();
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
if (accept != null)
headerParams.add("Accept", apiClient.parameterToString(accept));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = { };
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/reference-data/geo-ip/country/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Geo Name Countries
* List all countries.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<GeoNameCountryNonAuthenticatedEntity>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Flux showCountries(String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showCountriesRequestCreation(winkVersion, accept).bodyToFlux(localVarReturnType);
}
/**
* Show Geo Name Countries
* List all countries.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<List<GeoNameCountryNonAuthenticatedEntity>>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono>> showCountriesWithHttpInfo(String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showCountriesRequestCreation(winkVersion, accept).toEntityList(localVarReturnType);
}
/**
* Show Geo Name Countries
* List all countries.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec showCountriesWithResponseSpec(String winkVersion, String accept) throws WebClientResponseException {
return showCountriesRequestCreation(winkVersion, accept);
}
/**
* Find Geo Name by Id
* Finds geo-name by given identifier.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param geoNameId Geo-name identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return GeoNameNonAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showGeoNameByIdRequestCreation(String geoNameId, String winkVersion, String accept) throws WebClientResponseException {
Object postBody = null;
// verify the required parameter 'geoNameId' is set
if (geoNameId == null) {
throw new WebClientResponseException("Missing the required parameter 'geoNameId' when calling showGeoNameById", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("geoNameId", geoNameId);
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
if (accept != null)
headerParams.add("Accept", apiClient.parameterToString(accept));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = { };
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/reference-data/geo/{geoNameId}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Find Geo Name by Id
* Finds geo-name by given identifier.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param geoNameId Geo-name identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return GeoNameNonAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono showGeoNameById(String geoNameId, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showGeoNameByIdRequestCreation(geoNameId, winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Find Geo Name by Id
* Finds geo-name by given identifier.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param geoNameId Geo-name identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<GeoNameNonAuthenticatedEntity>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> showGeoNameByIdWithHttpInfo(String geoNameId, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showGeoNameByIdRequestCreation(geoNameId, winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Find Geo Name by Id
* Finds geo-name by given identifier.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param geoNameId Geo-name identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec showGeoNameByIdWithResponseSpec(String geoNameId, String winkVersion, String accept) throws WebClientResponseException {
return showGeoNameByIdRequestCreation(geoNameId, winkVersion, accept);
}
/**
* Show Time Zones
* List all time zones.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<String>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showTimezonesRequestCreation(String winkVersion, String accept) throws WebClientResponseException {
Object postBody = null;
// create path and map variables
final Map pathParams = new HashMap();
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
if (accept != null)
headerParams.add("Accept", apiClient.parameterToString(accept));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = { };
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference> localVarReturnType = new ParameterizedTypeReference>() {};
return apiClient.invokeAPI("/reference-data/geo-ip/timezone/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Time Zones
* List all time zones.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return List<String>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> showTimezones(String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference> localVarReturnType = new ParameterizedTypeReference>() {};
return showTimezonesRequestCreation(winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Show Time Zones
* List all time zones.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<List<String>>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono>> showTimezonesWithHttpInfo(String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference> localVarReturnType = new ParameterizedTypeReference>() {};
return showTimezonesRequestCreation(winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Show Time Zones
* List all time zones.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec showTimezonesWithResponseSpec(String winkVersion, String accept) throws WebClientResponseException {
return showTimezonesRequestCreation(winkVersion, accept);
}
}