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

Filter object API endpoint #2207

Open
rehandalal opened this issue Apr 14, 2020 · 3 comments
Open

Filter object API endpoint #2207

rehandalal opened this issue Apr 14, 2020 · 3 comments

Comments

@rehandalal
Copy link
Contributor

It would be great to have endpoints for each filter object as well as a general listing endpoint

I would expect:

  • /api/v3/filter_objects/:
    • GET requests give you a list of FO schemas by type
  • /api/v3/filter_objects/{type}/:
    • GET requests return a schema
    • POST requests get you a JEXL expression for the FO
@rehandalal
Copy link
Contributor Author

For context this would be useful for being able to evaluate filter objects in NDT

@jaredlockhart
Copy link
Collaborator

For the POST you mean like you'd give it a FO JSON with some parameters and Normandy would evaluate it for you and give you back the result?

@rehandalal
Copy link
Contributor Author

For the POST you mean like you'd give it a FO JSON with some parameters and Normandy would evaluate it for you and give you back the result?

Correct

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

2 participants