Package com.duffel.sdk.api
Class PlacesApi
java.lang.Object
com.duffel.sdk.api.PlacesApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-01-16T15:26:22.356688490+07:00[Asia/Bangkok]")
public class PlacesApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<GetPlaceSuggestions200Response> getPlaceSuggestions(String accept, String duffelVersion, String acceptEncoding, String query) List Place suggestions Retrieves a list of Places whose airport/city/country name or IATA code match the provided query.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<GetPlaceSuggestions200Response>> getPlaceSuggestionsWithHttpInfo(String accept, String duffelVersion, String acceptEncoding, String query) List Place suggestions Retrieves a list of Places whose airport/city/country name or IATA code match the provided query.org.springframework.web.reactive.function.client.WebClient.ResponseSpecgetPlaceSuggestionsWithResponseSpec(String accept, String duffelVersion, String acceptEncoding, String query) List Place suggestions Retrieves a list of Places whose airport/city/country name or IATA code match the provided query.voidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
PlacesApi
public PlacesApi() -
PlacesApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
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 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:
- ResponseEntity<GetPlaceSuggestions200Response>
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
getPlaceSuggestionsWithResponseSpec
public org.springframework.web.reactive.function.client.WebClient.ResponseSpec getPlaceSuggestionsWithResponseSpec(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:
- ResponseSpec
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-