Skip to content

unblu/gitlab-workitem-graphql-client

Repository files navigation

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

About

Smallrye Typesafe GraphQL client for GitLab WorkItems

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages