Skip to content

Expose allow_list in REST AnalyzeRequest #1470

Open

Description

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions