presidio icon indicating copy to clipboard operation
presidio copied to clipboard

Support batch processing over the REST API.

Open telackey opened this issue 1 month ago • 6 comments

Change Description

The REST API only supports analyzing one text at a time. This adds support for batch processing.

The implementation is backwards compatible: if text is a string, it returns identical results as before. This simply adds support for text to be supplied as a string[] instead, in which case it returns an array of results.

Issue reference

Fixes #XX

Checklist

  • [x] I have reviewed the contribution guidelines
  • [x] I have signed the CLA (if required)
  • [x] My code includes unit tests
  • [x] All unit tests and lint checks pass locally
  • [x] My PR contains documentation updates / additions if required - (N/A)

telackey avatar Dec 03 '25 19:12 telackey

@microsoft-github-policy-service agree company="SolidCore.ai"

telackey avatar Dec 03 '25 20:12 telackey

Great addition @telackey! Can you please update the openapi documentation, it is currenty not autogenerated from the routes defintion

SharonHart avatar Dec 07 '25 09:12 SharonHart

Great addition @telackey! Can you please update the openapi documentation, it is currenty not autogenerated from the routes defintion

Can do

telackey avatar Dec 09 '25 05:12 telackey

@SharonHart, I think I updated the relevant docs. If I missed anything, just point me in the right direction and I'll update as needed.

telackey avatar Dec 09 '25 19:12 telackey

@SharonHart, I think I updated the relevant docs. If I missed anything, just point me in the right direction and I'll update as needed.

spot on, looks good 🎯

SharonHart avatar Dec 10 '25 08:12 SharonHart

Thanks!

telackey avatar Dec 11 '25 19:12 telackey

@telackey I accidentally made the branch behind main after a force-push :( can you please update your branch?

SharonHart avatar Dec 17 '25 12:12 SharonHart