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

API Gateway to support PATCH requests

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Blocker Blocker
    • 1.2.3.Final, 1.2.x
    • 1.2.2.Final
    • Gateway API
    • None

      When attempting to invoke a PATCH request to a backend service via APIMAN, the API Gateway returns a 501 Not Implemented message.

      It would be good to support the PATCH operation via the API gateway to support partial updates to REST API resources.

      Request:

      curl -X PATCH -H "Accept: application/json" -H "X-API-Key: 126f3aa4-647b-4535-93d9-475eca507d62" -H "Content-Type: application/json" -H "Cache-Control: no-cache" -H "Postman-Token: 47714cec-5514-cd5d-435e-32df36bf2e10" -d '{"patch":"true"}'
       "https://localhost:8443/apiman-gateway/testOrg/postman/1.1/patch"
      

      Response:

      <html>
          <head>
              <title>Error</title>
          </head>
          <body>Method PATCH is not defined in RFC 2068 and is not supported by the Servlet API </body>
      </html>
      

      Interestingly, the gateway is returning HTML for an error that is warranting an application/json content type!

            ewittman@redhat.com Eric Wittmann
            imran.qureshi_jira imran qureshi (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: