Skip to content
This repository has been archived by the owner on Jan 29, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants