public interface IRestDocGeneratorExtension
| Modifier and Type | Method and Description |
|---|---|
void |
headerParam(String name,
org.restdoc.api.HeaderDefinition definition,
Type paramType,
AnnotationMap map)
invoked for every header parameter
|
void |
newMethod(org.restdoc.api.RestResource restResource,
org.restdoc.api.MethodDefinition def,
Method method)
invoked for every method
|
void |
newResource(org.restdoc.api.RestResource restResource)
invoked on every new rest resource
|
void |
newSchema(String schemaURI,
org.restdoc.api.Schema s,
Class<?> schemaClass)
invoked for every used schema class
|
void |
pathParam(String name,
org.restdoc.api.ParamDefinition definition,
Type paramType,
AnnotationMap map)
invoked for every path parameter
|
void |
queryParam(String name,
org.restdoc.api.ParamDefinition definition,
Type paramType,
AnnotationMap map)
invoked for every query parameter
|
void |
renderDoc(String path,
org.restdoc.api.RestDoc doc)
invoked of RestDoc generation
|
void newResource(org.restdoc.api.RestResource restResource)
restResource - the RestResourcevoid queryParam(String name, org.restdoc.api.ParamDefinition definition, Type paramType, AnnotationMap map)
name - the parameter namedefinition - the ParamDefinitionparamType - the Java class of the parametermap - the map of annotationsvoid pathParam(String name, org.restdoc.api.ParamDefinition definition, Type paramType, AnnotationMap map)
name - the parameter namedefinition - the ParamDefinitionparamType - the Java class of the parametermap - the map of annotationsvoid headerParam(String name, org.restdoc.api.HeaderDefinition definition, Type paramType, AnnotationMap map)
name - the parameter namedefinition - the HeaderDefinitionparamType - the Java class of the parametermap - the map of annotationsvoid newMethod(org.restdoc.api.RestResource restResource,
org.restdoc.api.MethodDefinition def,
Method method)
restResource - the super resourcedef - the MethodDefinitionmethod - the Java reflection Methodvoid newSchema(String schemaURI, org.restdoc.api.Schema s, Class<?> schemaClass)
schemaURI - the schema URIs - the SchemaschemaClass - the Java classvoid renderDoc(String path, org.restdoc.api.RestDoc doc)
path - the requested pathdoc - the generated docCopyright © 2012-2014 RestDoc.org. All Rights Reserved.