Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 984 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 984 Bytes

Smallrye Typesafe GraphQL client for GitLab WorkItems

GraphQL typesafe client (relying on Smallrye GraphQL) to call some GitLab GraphQL endpoints, in particular the WorkItem one.

Usage:

With this library and io.smallrye:smallrye-graphql-client-implementation-vertx:2.11.0 on the classpath, the client can be instantiated with:

WorkitemClientApi api =  TypesafeGraphQLClientBuilder.newBuilder()
                            .endpoint("https://gitlab.com/api/graphql")
                            // .header("Authorization", "Bearer " + gitlabToken)
                            .build(WorkitemClientApi.class);

Check the RunTest class in this project for usage example.

This library can be used with Quarkus.

Example jbang script:

Check the run.java script that can be executed with jbang using:

jbang run.java