Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

wave-api

Warning

This library is deprecated. This version is no longer maintained in libseqera. Please use the version in the Wave project instead, which is actively maintained as a sub-project of Wave.

API models and DTOs for the Wave container service.

Installation

Add this dependency to your build.gradle:

dependencies {
    implementation 'io.seqera:wave-api:0.16.0'
}

Usage

The Wave API models provide type-safe data structures for REST API communication:

@Inject 
WaveClient waveClient

def request = new SubmitContainerTokenRequest(
    containerImage: 'ubuntu:latest',
    containerConfig: new ContainerConfig(
        env: ['FOO=bar'],
        workingDir: '/workspace'
    )
)

def response = waveClient.submitContainerToken(request)
println "Container token: ${response.containerToken}"

Testing

./gradlew :wave-api:test