Class JsonSchemaResource

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable, BasicUniversalConfig, DefaultConfig, DefaultHtmlConfig, BasicRestOperations

@Marshalled(on="Schema", example="$F{JsonSchemaResource_example.json}") public class JsonSchemaResource extends BasicRestServlet
Sample resource that shows how to serialize JSON-Schema documents.
See Also:
  • Constructor Details

  • Method Details

    • init

      public void init()
      Overrides:
      init in class jakarta.servlet.GenericServlet
    • get

      public JsonSchema get()
      [HTTP GET /dto/jsonSchema] Get the JSON-Schema document.
      Returns:
      The JSON-Schema document.
    • put

      public JsonSchema put(@Content JsonSchema schema)
      [HTTP PUT /dto/jsonSchema] Overwrite the JSON-Schema document
      Parameters:
      schema - The new schema document.
      Returns:
      The updated schema document.