Class PlacesApi

java.lang.Object
com.duffel.sdk.api.PlacesApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-08-28T15:18:14.926970+07:00[Asia/Bangkok]") public class PlacesApi extends Object
  • Constructor Details

    • PlacesApi

      public PlacesApi()
    • PlacesApi

      @Autowired public PlacesApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • getPlaceSuggestions

      public reactor.core.publisher.Mono<GetPlaceSuggestions200Response> getPlaceSuggestions(String accept, String duffelVersion, String acceptEncoding, String query) throws org.springframework.web.reactive.function.client.WebClientResponseException
      List Place suggestions Retrieves a list of Places whose airport/city/country name or IATA code match the provided query.

      200 - A list of Places

      Parameters:
      accept - All responses from the API are in JSON format with UTF-8 encoding. An `Accept` header is required with every request.
      duffelVersion - You'll need to send a `Duffel-Version` header with each request so we know which version of the API you want to use. Currently, the only available API version is `beta`.
      acceptEncoding - We recommend enabling compression for responses returned by the API, since they can be very large. To enable compression, send an `Accept-Encoding` header. You'll need to configure your HTTP client to decompress responses. Most clients will have this functionality built-in.
      query - A search string for finding matching Places.
      Returns:
      GetPlaceSuggestions200Response
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • getPlaceSuggestionsWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<GetPlaceSuggestions200Response>> getPlaceSuggestionsWithHttpInfo(String accept, String duffelVersion, String acceptEncoding, String query) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException