Forum Discussion

swetakumar's avatar
swetakumar
Occasional Contributor
5 years ago

Re: how to mention JSON body in GET rest API

I figured it out another solution. I can add a JSON body as a parameter in the value field with the Type 'Plain'. 

3 Replies

  • richie's avatar
    richie
    Community Hero
    Hey swetakumar,

    Can you just explain what youve done please, cos you say youve managed to add a json body as a parameter type using the PLAIN option, but that isnt how that functionality works at all.

    Setting a parm to PLAIN (from one of the other options stops the parm appearing in your request) it shouldnt support adding a payload to a parm in the request at all.

    Ta

    Rich
    • swetakumar's avatar
      swetakumar
      Occasional Contributor

      I have attached the screenshot for your reference.

      • ChrisAdams's avatar
        ChrisAdams
        Super Contributor

        Hi,

         

        This doesn't add it into the body.  That 'builder' creates the params to add at the end of the url for the GET reuqest.