Skip to content

Endpoint to get all rules #502

@bracyw

Description

@bracyw

Description

Return all rules in the system without subscription data (for admin/public dashboard views where subscription status is irrelevant). Used when displaying system-wide rule analytics, debugging rule configurations, or public-facing dashboards that show available monitoring rules without personalization per client.

Acceptance Criteria

  • Returns all rules in system
  • No subscription information included
  • Time: O(R) where R = total rules

Proposed Solution

GET /rules
Response: Vec<Rule>

Method get_all_rules() already exists in RuleManager, just add endpoint to rule_controller.rs. Test using Postman for basic functionality, tests already exist in rule_structs_test.rs.

Mocks

No response

Metadata

Metadata

Assignees

Labels

mediumA more complex taskscylla-serverDevelopment Focused in the Backend

Type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions