Skip to content

wink-travel/duffel-java-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Duffel logo

Duffel Java SDK

Duffel.com Java SDK based on their publicly available Postman collection

This supports Duffel's version: beta

Instructions

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.

Install

Grab library from Maven repo

<dependency>
    <groupId>travel.wink</groupId>
    <artifactId>duffel-sdk-java</artifactId>
    <version>{{ VERSION }}</version>
</dependency>

Development

Generate library mvn clean compile

Test library mvn clean test