Hi,
Can you change the Key name from files to file, and as Dahman mentioned change the content type for the body key to be application/json
------------------------------
Regards
Keith Puzey
Client Services Consultant | Enterprise Software Division
Broadcom
------------------------------
Original Message:
Sent: 08-29-2019 09:58 AM
From: Amanpreet Kaur Aulakh
Subject: Use APIs to Generate Test Data (Docker)
- I performed the same steps earlier, as recommended.
- Have attached screenshots for reference
Original Message:
Sent: 08-29-2019 03:40 AM
From: Abderrahmane Zahrir
Subject: Use APIs to Generate Test Data (Docker)
First, this has nothing to do with the use of a docker container
"Unsupported media type" error message is generated because type=application/json is missing.
Here is an example using curl for uploading a csv file
curl -X POST
--header 'Content-Type: multipart/form-data'
--header 'Accept: application/json'
--header 'Authorization: Bearer <some token>'
-F body={\"objectType\":\"CSV\",\"headerAt\":1,\"dataStartsAt\":2,\"tableNames\":[]};type=application/json
-F files=Sample.csv
I have added header 'Content-Type: multipart/form-data' as postman might not add it automatically (Curl does).
Regards, Dahman
Original Message------
Hi
- Running docker containers (using official oracle database), and trying to generate Test Data by sending API's on my localhost.
- Able to successfully send request via POSTMAN to
- generate security token
- create connection profile
- create project and version
- create data generator
But when tried to "Register a File Object", got "Unsupported media type" error.
Thanks
Amanpreet Aulakh