@RestResource(path="/jsonSchema", messages="nls/JsonSchemaResource", title="Sample JSON-Schema document", description="Sample resource that shows how to generate JSON-Schema documents", properties=@Property(name="BeanContext.examples.smo",value="{\'org.apache.juneau.dto.jsonschema.Schema\': $F{JsonSchemaResource_example.json}}"), htmldoc=, swagger=) public class JsonSchemaResource extends BasicRestServletJena
Constructor and Description |
---|
JsonSchemaResource() |
Modifier and Type | Method and Description |
---|---|
JsonSchema |
get() |
void |
init() |
JsonSchema |
put(JsonSchema schema) |
getOptions
destroy, getContext, getPath, getProperties, getRequest, getResponse, getServletConfig, init, log, log, log, log, logObjects, service, setContext, setRestResourceResolver
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
public JsonSchemaResource()
public void init()
init
in class javax.servlet.GenericServlet
@RestMethod(summary="Get the JSON-Schema document") public JsonSchema get() throws Exception
Exception
@RestMethod(summary="Overwrite the JSON-Schema document", description="Replaces the schema document with the specified content, and then mirrors it as the response.") public JsonSchema put(@Body JsonSchema schema) throws Exception
Exception
Copyright © 2018 Apache. All rights reserved.