Skip to content

Forsakringskassan/jaxrs-client-factory

Repository files navigation

JAXRS Client Factory

Create client from JAXRS annotated interface.

If WhateverApi is a JAXRS annotated interface, a client can be created with:

WhateverApi client = new JaxrsClientFactory()
.create(JaxrsClientOptionsBuilders.createClient(baseUrl, WhateverApi.class)
            .header("static-header-1", "static-header-1-value")
            .build());

The WhateverApi might be generated from an OpenAPI spec, see gradle-conventions.

About

Create a client from jaxrs annotated interface.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages