Duffel.com Java SDK based on their publicly available Postman collection
This supports Duffel's version: beta
This reactive SDK was generated using openapi-generator-maven-plugin and Spring's reactive WebClient. If you wish to use the Spring beans that were created in this library, add "com.duffel.sdk" to your component scan or add an @Import(DuffelSdkConfiguration.class).
Spring expects 1 property:
duffel.api.key=YOUR_API_KEY
If you are using Spring, you can inject the available Spring-managed Duffel-beans that are in DuffelSdkConfiguration.
If you are not using Spring, you will have to instantiate the Api classes manually and configure the url and api key manually. See DuffelSdkConfiguration for inspiration on how you can do that.
Grab library from Maven repo
<dependency>
<groupId>travel.wink</groupId>
<artifactId>duffel-sdk-java</artifactId>
<version>{{ VERSION }}</version>
</dependency>
Generate library
mvn clean compile
Test library
mvn clean test