Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement rules registry #2

Open
samirketema opened this issue Jan 21, 2018 · 1 comment
Open

Implement rules registry #2

samirketema opened this issue Jan 21, 2018 · 1 comment

Comments

@samirketema
Copy link
Owner

  • GET /api/rules
    • retrieve all rules in the rules registry
  • GET /api/rules/{name}
    • retrieve rule with key of name in rules registry
  • POST /api/rules
    • create a new rule, add to the rules registry
    • if this rule already exists, replace it
  • PUT /api/rules/{name}
    • update a known rule
@samirketema
Copy link
Owner Author

Tests to start with:

  • Add rule successfully
  • Test nested rules
  • Test badly formed rule
  • Test validation with no rules
  • Add a rule that has an unknown operator (this should not be allowed)
  • Test updating of a rule
  • Test POSTing a new rule with name clash (replace rule or reduce)

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

No branches or pull requests

1 participant