public RuleDTO create(final RuleData rule) {
        rule.setNamespaceId(SYS_DEFAULT_NAMESPACE_NAMESPACE_ID);
        rule.setNamespaceId(SYS_DEFAULT_NAMESPACE_NAMESPACE_ID);
        RuleDTO dto = create("/rule", rule);
        Rules.INSTANCE.put(rule.getName(), dto.getId());
        return dto;
    }
Create Rule.

@param rule rule
@return RuleDTO
shenyu-e2e/shenyu-e2e-client/src/main/java/org/apache/shenyu/e2e/client/admin/AdminClient.java