Class OpenApiResource

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

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static io.swagger.v3.oas.models.info.Info
    Made static so the build-time OpenAPI spec generator can reuse the exact same Info object as the runtime resource, instead of duplicating a slimmed-down copy that could drift out of sync (no instance state is used here).
    io.swagger.v3.oas.models.OpenAPI
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OpenApiResource

      public OpenApiResource()
  • Method Details

    • getOpenApi

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

      public static io.swagger.v3.oas.models.info.Info getInfo()
      Made static so the build-time OpenAPI spec generator can reuse the exact same Info object as the runtime resource, instead of duplicating a slimmed-down copy that could drift out of sync (no instance state is used here).
      Returns:
      Info