@ -68,9 +68,9 @@ public class ComponentDescriptorController extends BaseController {
@RequestMapping ( value = "/components/{componentType}" , method = RequestMethod . GET )
@ResponseBody
public List < ComponentDescriptor > getComponentDescriptorsByType (
@Parameter ( description = "Type of the Rule Node" , schema = @Schema ( allowableValues = "ENRICHMENT,FILTER,TRANSFORMATION,ACTION,EXTERNAL" , requiredMode = Schema . RequiredMode . REQUIRED ) )
@Parameter ( description = "Type of the Rule Node" , schema = @Schema ( allowableValues = { "ENRICHMENT" , " FILTER,TRANSFORMATION" , " ACTION,EXTERNAL" } , requiredMode = Schema . RequiredMode . REQUIRED ) )
@PathVariable ( "componentType" ) String strComponentType ,
@Parameter ( description = "Type of the Rule Chain" , schema = @Schema ( allowableValues = "CORE,EDGE" ) )
@Parameter ( description = "Type of the Rule Chain" , schema = @Schema ( allowableValues = { "CORE" , " EDGE" } ) )
@RequestParam ( value = "ruleChainType" , required = false ) String strRuleChainType ) throws ThingsboardException {
checkParameter ( "componentType" , strComponentType ) ;
return checkComponentDescriptorsByType ( ComponentType . valueOf ( strComponentType ) , getRuleChainType ( strRuleChainType ) ) ;
@ -85,7 +85,7 @@ public class ComponentDescriptorController extends BaseController {
public List < ComponentDescriptor > getComponentDescriptorsByTypes (
@Parameter ( description = "List of types of the Rule Nodes, (ENRICHMENT, FILTER, TRANSFORMATION, ACTION or EXTERNAL)" , required = true )
@RequestParam ( "componentTypes" ) String [ ] strComponentTypes ,
@Parameter ( description = "Type of the Rule Chain" , schema = @Schema ( allowableValues = "CORE,EDGE" ) )
@Parameter ( description = "Type of the Rule Chain" , schema = @Schema ( allowableValues = { "CORE" , " EDGE" } ) )
@RequestParam ( value = "ruleChainType" , required = false ) String strRuleChainType ) throws ThingsboardException {
checkArrayParameter ( "componentTypes" , strComponentTypes ) ;
Set < ComponentType > componentTypes = new HashSet < > ( ) ;