Support batch processing over the REST API.
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)
@microsoft-github-policy-service agree company="SolidCore.ai"
Great addition @telackey! Can you please update the openapi documentation, it is currenty not autogenerated from the routes defintion
Great addition @telackey! Can you please update the openapi documentation, it is currenty not autogenerated from the routes defintion
Can do
@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.
@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 🎯
Thanks!
@telackey I accidentally made the branch behind main after a force-push :( can you please update your branch?