sbt-idp/curl_cmds.txt
2023-11-30 18:19:06 +07:00

33 lines
2.8 KiB
Plaintext

curl -i -X POST -H "Content-Type: application/json" -d '{"username":"admin","password":"admin"}' http://be-ctel-manulife-sbt:9000/api/ctel/login/
curl -i --location '107.120.133.27:9886/api/ctel/image/process/' \
--header 'Authorization: eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJpZCI6InhodXllbiIsImV4cGlyZWRfYXQiOiIxNC8xMC8yMDM0IDAyOjEyOjIyIiwiaW50ZXJuYWxfaWQiOjM2LCJzdGF0dXMiOjEsInN1YnNjcmlwdGlvbl9pZCI6MzN9.M4McUHsRmcO7X3fa4AlQmmzx_QrHjS2TbwqO9D7JSA73yaqBajpRUTos-wGmX-Sor8YNvd6TtVZOzaNqWFKQaw' \
--form 'file=@"/mnt/hdd4T/TannedCung/OCR/FI-SBT-demo/cope2n-ai-fi/modules/sdsvkie/demos/2022_07_25 farewell lunch.jpg"' \
--form 'processType="12"'
curl -X 'POST' \
'http://42.96.42.13:9880/api/ctel/images/process/' \
-H 'accept: */*' \
--header 'Authorization: eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJpZCI6InhodXllbiIsImV4cGlyZWRfYXQiOiIxNC8xMC8yMDM0IDAyOjEyOjIyIiwiaW50ZXJuYWxfaWQiOjM2LCJzdGF0dXMiOjEsInN1YnNjcmlwdGlvbl9pZCI6MzN9.M4McUHsRmcO7X3fa4AlQmmzx_QrHjS2TbwqO9D7JSA73yaqBajpRUTos-wGmX-Sor8YNvd6TtVZOzaNqWFKQaw' \
-H 'Content-Type: multipart/form-data' \
--header 'X-CSRFTOKEN: 9iW1pPLUUtYFzBpwTaLgUSfCaQQBZ9uvfsTjwDV1OuPBGhAKUOkiyhLFuWkP33ta' \
--form 'imei_files=@"/mnt/hdd4T/TannedCung/OCR/FI-SBT-demo/test_images/handsomeian@gmail.com TV.jpg";type=image/jpeg' \
--form 'imei_files=@"/mnt/hdd4T/TannedCung/OCR/FI-SBT-demo/test_images/handsomeian@gmail.com RS.png";type=image/png' \
--form 'invoice_file=@"/mnt/hdd4T/TannedCung/OCR/FI-SBT-demo/test_images/Invoice.jpg";type=image/jpeg' \
--form 'redemption_ID="12"'
curl -X 'POST' \
'http://42.96.42.13:9880/api/ctel/images/process/' \
-H 'accept: */*' \
-H 'Authorization: eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJpZCI6InhodXllbiIsImV4cGlyZWRfYXQiOiIxNC8xMC8yMDM0IDAyOjEyOjIyIiwiaW50ZXJuYWxfaWQiOjM2LCJzdGF0dXMiOjEsInN1YnNjcmlwdGlvbl9pZCI6MzN9.M4McUHsRmcO7X3fa4AlQmmzx_QrHjS2TbwqO9D7JSA73yaqBajpRUTos-wGmX-Sor8YNvd6TtVZOzaNqWFKQaw' \
-H 'Content-Type: multipart/form-data' \
-H 'X-CSRFTOKEN: 9iW1pPLUUtYFzBpwTaLgUSfCaQQBZ9uvfsTjwDV1OuPBGhAKUOkiyhLFuWkP33ta' \
-F 'imei_files=@"/mnt/hdd4T/TannedCung/OCR/FI-SBT-demo/test_images/handsomeian@gmail.com TV.jpg";type=image/jpeg' \
-F 'imei_files=@"/mnt/hdd4T/TannedCung/OCR/FI-SBT-demo/test_images/handsomeian@gmail.com RS.png";type=image/png' \
-F 'invoice_file=@"/mnt/hdd4T/TannedCung/OCR/FI-SBT-demo/test_images/handsomeian@gmail.com TV.jpg";type=image/jpeg' \
-F 'redemption_ID="12"'
curl --location 'http://42.96.42.13:9880/api/ctel/result/SAP9f9da237887844f6baf286d2d81c57f4/' \
--header 'accept: */*' \
--header 'Authorization: eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJpZCI6InhodXllbiIsImV4cGlyZWRfYXQiOiIxNC8xMC8yMDM0IDAyOjEyOjIyIiwiaW50ZXJuYWxfaWQiOjM2LCJzdGF0dXMiOjEsInN1YnNjcmlwdGlvbl9pZCI6MzN9.M4McUHsRmcO7X3fa4AlQmmzx_QrHjS2TbwqO9D7JSA73yaqBajpRUTos-wGmX-Sor8YNvd6TtVZOzaNqWFKQaw'