Class OpenApiResource

All Implemented Interfaces:

@Path("/spec") @NonNullByDefault public class OpenApiResource extends Object implements RESTResource
An endpoint to generate and provide an OpenAPI description.
Markus Rathgeb - Initial contribution, Kai Kreuzer - made it a RESTResource to register in the root bean, Yannick Schaus - add support for ReaderListeners, remove dependency, Wouter Born - Migrated to OpenAPI
  • Field Details

  • Constructor Details

    • OpenApiResource

      public OpenApiResource(org.osgi.framework.BundleContext bc, application)
      Creates a new instance.
  • Method Details

    • getOpenAPI

      @GET @Produces("application/json") public Object getOpenAPI()
      Gets the current JAX-RS Whiteboard provided endpoint information by OpenAPI.
      an OpenAPI description of the endpoints