Uploaded image for project: 'Content Gateway'
  1. Content Gateway
  2. CGW-305

DM API Put requests are failing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Blocker Blocker
    • DM 4.1.0, Q4FY18
    • DM 4.1.0
    • None
    • 2

      The following put request ought to have succeeded, but failed:

      $ curl -XPUT -H "Accept: application/json" -u sdaley https://developers.redhat.com/download-manager/rest/admin/products -d '{"name":"API Test Product","homepage":"https://developers.redhat.com/products/rhoar","downloadpage":"https://developers.redhat.com/products/rhoar/download/","thankYouPage":"https://developers.redhat.com/products/rhoar/hello-world/?","productCode":"rhoar","eloquaCode":null,"thankYouTimeout":5}'
      Enter host password for user 'sdaley':
      <HTML><HEAD>
      <TITLE>Unsupported Request</TITLE>
      </HEAD><BODY>
      <H1>Unsupported Request</H1>
      PUT to http&#58;&#47;&#47;developers&#46;redhat&#46;com&#47;download&#45;manager&#47;rest&#47;admin&#47;products not supported.<P>
      Reference&#32;&#35;8&#46;4e240ac3&#46;1518447283&#46;12281862
      </BODY></HTML>
      

      Could the documented put and post requests be made available?

      Also note: while this document lists the API endpoint as /download-manager/rest/administration/admin/, it is in fact /download-manager/rest/admin/. An update to the document would make this clearer.
      https://mojo.redhat.com/docs/DOC-940689-redhat-developersjboss-download-manager-administration-ui

              dhladky@redhat.com David Hladky
              sdaley@redhat.com Shaun Daley
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: