Uploaded image for project: 'apiman (API Management)'
  1. apiman (API Management)
  2. APIMAN-1219

Not Able to Import Data Using cURL

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.2.7.Final
    • Management API
    • 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

              ewittman@redhat.com Eric Wittmann
              rohitrsh_jira Rohit Sharma (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: