-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
1.2.7.Final
-
None
Hi,
We are doing automation stuff, with our APIMAN setup.
We wanted to import data in APIMAN using REST APIs, I have used below cURL to import data in APIMAN.
While importing i am seeing "Data Imported Successfully" message as output, however after logging in Apimanager I am not see any APIs or data available in my json.
If i use same json file and try to import it using Apimanager GUI, its imported successfully as well as I am able to see the data.
Could you please help, me to find out, if i am doing anything wrong with API call.
[root@myhost]# curl -H "Authorization: Basic YWRtaW46YWRtaW4xMjMh" -H "Content-Type: application/json" -X POST -d '
{"Import Data":"/opt/apiman.json"}' http://127.0.0.1:8080/apiman/system/import/
INFO: ----------------------------
INFO: Starting apiman data import.
INFO: Publishing APIs to the gateway.
INFO: Registering clients in the gateway.
INFO: -----------------------------------
INFO: Data import completed successfully!
INFO: -----------------------------------
Thanks in advance.
-Rohit