normandy icon indicating copy to clipboard operation
normandy copied to clipboard

Filter object API endpoint

Open rehandalal opened this issue 5 years ago • 3 comments

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 avatar Apr 14 '20 20:04 rehandalal

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

rehandalal avatar Apr 14 '20 20:04 rehandalal

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?

jaredlockhart avatar Apr 14 '20 20:04 jaredlockhart

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

rehandalal avatar Apr 14 '20 21:04 rehandalal