Class OpenApiResource

java.lang.Object
io.goobi.viewer.api.rest.v2.OpenApiResource

@Path("/openapi.json") public class OpenApiResource extends Object
Author:
Florian Alpers
  • Constructor Details

    • OpenApiResource

      public OpenApiResource()
  • Method Details

    • getOpenApi

      @GET @Produces("application/json") public io.swagger.v3.oas.models.OpenAPI getOpenApi()
    • getResourceClasses

      public static Set<Class<?>> getResourceClasses()
      Returns the resource classes published by the v2 API.

      Exposed as the single source of truth for the v2 resource set so the build-time OpenApiSpecGenerator produces a spec identical to what this resource serves at runtime, instead of duplicating (and risking drift from) the class list.

      Returns:
      set of the nine v2 resource classes
    • getInfo

      public static io.swagger.v3.oas.models.info.Info getInfo()
      Returns:
      Info