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 TypeMethodDescriptionvoid
enrich
(@NonNull RestEntity entity, SchemaType schemaType) getEnrichedPropertyTypes
(@NonNull Type type) Get the types of the properties that may possibly be provided by this enricher.boolean
Get 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:RestObjectEnricher
Get whether the enricher applies to the root object only, or recursively to all objects in the tree.- Specified by:
isRecursive
in interfaceRestObjectEnricher
-
getEnrichedPropertyTypes
Description copied from interface:RestObjectEnricher
Get the types of the properties that may possibly be provided by this enricher. This is used to populate the graph-ql schema.- Specified by:
getEnrichedPropertyTypes
in interfaceRestObjectEnricher
- Parameters:
type
- The type of the object being enriched- Returns:
- A map of property names to property types
-
enrich
- Specified by:
enrich
in interfaceEntityEnricher
-