Class RequestEntityEnricher
java.lang.Object
com.atlassian.confluence.plugins.restapi.enrich.documentation.RequestEntityEnricher
- All Implemented Interfaces:
EntityEnricher,RestObjectEnricher
Removes _links and _expandable fields from request objects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidenrich(@NonNull RestEntity entity, SchemaType schemaType) getEnrichedPropertyTypes(@NonNull Type type) Get the types of the properties that may possibly be provided by this enricher.booleanGet whether the enricher applies to the root object only, or recursively to all objects in the tree.
-
Constructor Details
-
RequestEntityEnricher
public RequestEntityEnricher()
-
-
Method Details
-
isRecursive
public boolean isRecursive()Description copied from interface:RestObjectEnricherGet whether the enricher applies to the root object only, or recursively to all objects in the tree.- Specified by:
isRecursivein interfaceRestObjectEnricher
-
getEnrichedPropertyTypes
Description copied from interface:RestObjectEnricherGet the types of the properties that may possibly be provided by this enricher. This is used to populate the graph-ql schema.- Specified by:
getEnrichedPropertyTypesin interfaceRestObjectEnricher- Parameters:
type- The type of the object being enriched- Returns:
- A map of property names to property types
-
enrich
- Specified by:
enrichin interfaceEntityEnricher
-