cUrl
Создание пакета
curl -X POST \
--header 'Content-Type: application/json' \
--header 'Content-Length: 0' \
--header 'Authorization: Bearer INSERT_TOKEN_HERE' \
https://extractor.correct.su/api/packages
Добавление изображений
curl -X POST \
--header 'Content-Type: multipart/form-data' \
--header 'Authorization: Bearer INSERT_TOKEN_HERE' \
--form 'content=@/home/user1/test.jpg' \
https://extractor.correct.su/api/images/package/42
Запуск распознавания
curl -X POST \
--header 'Content-Type: application/json' \
--header 'Content-Length: 0' \
--header 'Authorization: Bearer INSERT_TOKEN_HERE' \
https://extractor.correct.su/api/packages/42/start
Получение результата
curl -X GET \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer INSERT_TOKEN_HERE' \
https://extractor.correct.su/api/packages/42
Получение результата (c параметрами)
curl -X GET \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer INSERT_TOKEN_HERE' \
https://extractor.correct.su/api/packages/42?includeStamps=true&includeBarcodes=true&includeUnrecognizedTables=true&includeUnrecognizedTexts=true