Microprofile ExampleObject externalvalue – Quarkus

The annotation ExampleObject is used to illustrate a particular Content for Request and Response. The documentation states that we can use a URL externalValue for referencing an external JSON file.The json files were located under src\main\resources\META-INF\resources @GET @Path(“/user”) @Produces(MediaType.TEXT_PLAIN) @APIResponses( value = { @APIResponse(responseCode = “200”, content = @Content( mediaType = “*/*”, examples = {ContinueContinue reading “Microprofile ExampleObject externalvalue – Quarkus”

Microprofile Dynamic Rest Client

In Microprofile, using the @RegisterRestClient annotation requires that you define either a baseURI as part of the annotation, or defined in the application properties file. However such definition is static and if you need to change it during runtime, you wont be able to do it as part of the annotation. You could create aContinueContinue reading “Microprofile Dynamic Rest Client”