Class JsonSchemaResource
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.apache.juneau.rest.servlet.RestServlet
org.apache.juneau.rest.servlet.BasicRestServlet
org.apache.juneau.examples.rest.dto.JsonSchemaResource
- 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:
- 
Field SummaryFields inherited from class jakarta.servlet.http.HttpServletLEGACY_DO_HEAD
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionget()[HTTP GET /dto/jsonSchema] Get the JSON-Schema document.voidinit()put(JsonSchema schema) [HTTP PUT /dto/jsonSchema] Overwrite the JSON-Schema documentMethods inherited from class org.apache.juneau.rest.servlet.BasicRestServleterror, getFavIcon, getHtdoc, getStats, getSwaggerMethods inherited from class org.apache.juneau.rest.servlet.RestServletdestroy, doLog, getContext, getPath, getRequest, getResponse, init, log, log, service, setContextMethods inherited from class jakarta.servlet.http.HttpServletdoDelete, doGet, doHead, doOptions, doPatch, doPost, doPut, doTrace, getLastModified, isSensitiveHeader, serviceMethods inherited from class jakarta.servlet.GenericServletgetInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, log, log
- 
Constructor Details- 
JsonSchemaResourcepublic JsonSchemaResource()
 
- 
- 
Method Details- 
init- Overrides:
- initin class- jakarta.servlet.GenericServlet
 
- 
get[HTTP GET /dto/jsonSchema] Get the JSON-Schema document.- Returns:
- The JSON-Schema document.
 
- 
put[HTTP PUT /dto/jsonSchema] Overwrite the JSON-Schema document- Parameters:
- schema- The new schema document.
- Returns:
- The updated schema document.
 
 
-