microsoft / presidio

Context aware, pluggable and customizable data protection and de-identification SDK for text and images
https://microsoft.github.io/presidio
MIT License
3.88k stars 578 forks source link

Expose allow_list in REST AnalyzeRequest #1470

Closed nickzelei closed 3 days ago

nickzelei commented 1 month ago

Is your feature request related to a problem? Please describe. I see examples in documentation around specifying an allow_list when invoking the analyzer, but it doesn't seem to be exposed via the REST interface.

Describe the solution you'd like Expose the allow_list in the body of the AnalyzeRequest POST.

POST /analyze

{
    "text": "John Smith drivers license is AC432223 and the zip code is 12345",
    "language": "en",
    "score_threshold": 0.6,
    "allow_list": ["John"]
}

Describe alternatives you've considered None

Additional context I'm using Presidio in a REST format as the code I'm writing is not written in Python.

omri374 commented 1 month ago

Thanks for your suggestion. Will you be interested in creating a pull request?

nickzelei commented 3 days ago

Looks like this was closed via #1478