patchman icon indicating copy to clipboard operation
patchman copied to clipboard

Question: How to work with the api Search Parameter

Open kszyma opened this issue 1 year ago • 1 comments

Hi,

exists there any documentation on how to use the api Search Parameter (i.e. to get a list of hosts with a specific tag) ?

Thanks :)

Best regards, Kai.

PS: I love patchman :)

kszyma avatar Mar 14 '24 09:03 kszyma

Django Rest Frameworks SearchFilter is what we need to use for searching but it's not implemented yet.

Doesn't look to difficult if you want to add the functionality and open a PR:

https://www.django-rest-framework.org/api-guide/filtering/#searchfilter

furlongm avatar Jun 19 '24 21:06 furlongm