We can leverage the approach we're using to upload translated files for api/v2/upload, parse them and extract terminology matches in the backend.
Entrypoint: api/v2/terminology/extract-from-file. Requires PAT to avoid abuse, but can probably use a higher threshold than upload (e.g. doesn't require recalculating stats, it's just reading data).
Accept a locale and uploadfile parameters. Returns a list of matching terms similar to the other api.
Based on Slack conversation, it might make sense to implement this as part of a larger API that provides information on the file, e.g. warnings/errors.
We can leverage the approach we're using to upload translated files for
api/v2/upload, parse them and extract terminology matches in the backend.Entrypoint:
api/v2/terminology/extract-from-file. Requires PAT to avoid abuse, but can probably use a higher threshold than upload (e.g. doesn't require recalculating stats, it's just reading data).Accept a
localeanduploadfileparameters. Returns a list of matching terms similar to the other api.Based on Slack conversation, it might make sense to implement this as part of a larger API that provides information on the file, e.g. warnings/errors.