Skip to content

HTTP API: Rule Engine Client#35

Merged
rnovatorov merged 25 commits intomainfrom
rnovatorov/http-api-rule-management
Mar 17, 2026
Merged

HTTP API: Rule Engine Client#35
rnovatorov merged 25 commits intomainfrom
rnovatorov/http-api-rule-management

Conversation

@rnovatorov
Copy link
Copy Markdown
Member

@rnovatorov rnovatorov commented Mar 17, 2026

Implements most of #28 (except for batch methods).

…ndation

Tasks completed:
- Task 1: Define Rule, RuleScript, RuntimeVersion, and RuleState data models
- Task 2: Export models in src/enapter/http/api/rule_engine/__init__.py
…t Implementation (Read Operations)

Tasks completed:
- Task 1: Implement list_rules method
- Task 2: Implement get_rule method
…t Implementation (Write Operations)

Tasks completed:
- Implement Create Rule method with automatic slug generation and RuleScript object
- Implement Update Rule (slug) method
- Implement Update Rule Script method using RuleScript object
- Implement Delete Rule method
- Refactor rule_engine.Client to use Dependency Injection for slug generation
- Add comprehensive unit tests for all new methods without patching
…agement

Tasks completed:
- Implement enable_rule method
- Implement disable_rule method
- Add unit tests for enable/disable methods
…, Get, Update, Enable, Disable, Delete) in Rule Engine HTTP API' as complete
…ist, Get, Update, Enable, Disable, Delete) in Rule Engine HTTP API'
…tion

Tasks completed:
- Create RuleCommand group in src/enapter/cli/http/api/rule_command.py
- Register RuleCommand in RuleEngineCommand
- Implement placeholder sub-command registration
Tasks completed:
- Create and register RuleCommand group
- Implement rule list and rule get commands
- Implement rule create command with stdin support
- Implement rule delete command
- Implement rule update (slug) and update-script commands
- Implement rule enable and disable commands
- Verify CLI consistency and linting
@rnovatorov rnovatorov merged commit fe1d21e into main Mar 17, 2026
7 checks passed
@rnovatorov rnovatorov deleted the rnovatorov/http-api-rule-management branch March 17, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant