API Connect

API Connect

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#API Connect
#Applicationintegration
#APIConnect
 View Only
  • 1.  Get Service with body.

    Posted 03/01/23 05:08 PM

    Hello Team good day.

    I am developing an API in API Connect v10.0.4, but I have a behavior of a requirement that I had not touched. The service accepts GET method but contains body with raw data. When I use the invoke policy, and send the data as part of the body, it returns an error code as if the body was not sent in the get method.

    In the trace I see the body and if I test the service with that body it works, but from the api it doesn't work, and the content-type is correct.

    How can you help me? Thank you so much.



    ------------------------------
    Oscar Gonzalez
    ------------------------------


  • 2.  RE: Get Service with body.

    Posted 03/02/23 03:33 AM

    I think you'll find that the HTTP spec says that the body should be ignored on GET requests.

    I suggest you redesign that to be a PUT or POST.

    You will not be able to create a REST API in APIC that has a GET with a request body.



    ------------------------------
    Chris Dudley
    ------------------------------