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

"ensure value" endpoint #66

Open
bentheiii opened this issue Sep 15, 2022 · 0 comments
Open

"ensure value" endpoint #66

bentheiii opened this issue Sep 15, 2022 · 0 comments

Comments

@bentheiii
Copy link
Collaborator

bentheiii commented Sep 15, 2022

add a new endpoint that will ensure that the value in a certain partial context will be equal to a certain value, this endpoint should either create a new rule or modify an existing one, this endpoint should have two modes:

  • force=False: in this mode, if there are multiple rules for a sub-context (i.e. adding or modifying one rule will not guarantee the value at all sub-contexts of the partial context), an error will returned
  • force=True: in this mode, all rules for sub-contexts will be deleted

possible routes:

  • PUT api/v1/setting/<id>/value
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