Class GeoNameApi

java.lang.Object
travel.wink.sdk.extranet.api.GeoNameApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-07-01T17:01:03.296785+07:00[Asia/Bangkok]") public class GeoNameApi extends Object
  • Constructor Details

    • GeoNameApi

      public GeoNameApi()
    • GeoNameApi

      @Autowired public GeoNameApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • searchForCities

      public reactor.core.publisher.Flux<GeoName> searchForCities(String term, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Find geo-name by term Finds a list of geo-name entities for a term that `sounds like`.

      405 - Method Not Allowed

      415 - Unsupported Media Type

      400 - Bad Request

      403 - Forbidden

      401 - Unauthorized

      500 - Internal Server Error

      404 - Not Found

      503 - Service Unavailable

      200 - OK

      Parameters:
      term - Geo-name term to be searched
      accept - The accept parameter
      Returns:
      List<GeoName>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • searchForCitiesWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<GeoName>>> searchForCitiesWithHttpInfo(String term, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • searchForCity

      public reactor.core.publisher.Flux<GeoName> searchForCity(String searchTerm, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Search for city Searches for city matching search term.

      405 - Method Not Allowed

      415 - Unsupported Media Type

      400 - Bad Request

      403 - Forbidden

      401 - Unauthorized

      500 - Internal Server Error

      404 - Not Found

      503 - Service Unavailable

      200 - OK

      Parameters:
      searchTerm - Search for city by search term
      accept - The accept parameter
      Returns:
      List<GeoName>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • searchForCityWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<GeoName>>> searchForCityWithHttpInfo(String searchTerm, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showContinents

      public reactor.core.publisher.Flux<KeyValuePair> showContinents(String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show all continents List all continents.

      405 - Method Not Allowed

      415 - Unsupported Media Type

      400 - Bad Request

      403 - Forbidden

      401 - Unauthorized

      500 - Internal Server Error

      404 - Not Found

      503 - Service Unavailable

      200 - OK

      Parameters:
      accept - The accept parameter
      Returns:
      List<KeyValuePair>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showContinentsWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<KeyValuePair>>> showContinentsWithHttpInfo(String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showCountries1

      public reactor.core.publisher.Flux<GeoNameCountry> showCountries1(String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show all countries List all countries.

      405 - Method Not Allowed

      415 - Unsupported Media Type

      400 - Bad Request

      403 - Forbidden

      401 - Unauthorized

      500 - Internal Server Error

      404 - Not Found

      503 - Service Unavailable

      200 - OK

      Parameters:
      accept - The accept parameter
      Returns:
      List<GeoNameCountry>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showCountries1WithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<GeoNameCountry>>> showCountries1WithHttpInfo(String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showGeoNameById

      public reactor.core.publisher.Mono<GeoName> showGeoNameById(String geoNameId, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Find geo-name by identifier Finds geo-name by given identifier.

      405 - Method Not Allowed

      415 - Unsupported Media Type

      400 - Bad Request

      403 - Forbidden

      401 - Unauthorized

      500 - Internal Server Error

      404 - Not Found

      503 - Service Unavailable

      200 - OK

      Parameters:
      geoNameId - Geo-name identifier
      accept - The accept parameter
      Returns:
      GeoName
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showGeoNameByIdWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<GeoName>> showGeoNameByIdWithHttpInfo(String geoNameId, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showTimezones

      public reactor.core.publisher.Flux<String> showTimezones(String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show all time zones List all time zones.

      405 - Method Not Allowed

      415 - Unsupported Media Type

      400 - Bad Request

      403 - Forbidden

      401 - Unauthorized

      500 - Internal Server Error

      404 - Not Found

      503 - Service Unavailable

      200 - OK

      Parameters:
      accept - The accept parameter
      Returns:
      List<String>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showTimezonesWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<String>>> showTimezonesWithHttpInfo(String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException