GraphQL typesafe client (relying on Smallrye GraphQL) to call some GitLab GraphQL endpoints, in particular the WorkItem one.
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.
Check the run.java
script that can be executed with jbang using:
jbang run.java