91
Views
2
Comments
Solved
[Exposed REST API] How to debug in Postman
Application Type
Traditional Web
Service Studio Version
11.54.8 (Build 62344)

Hi All,

I have a question on how to debug Expose REST API. 
I'm using Postman application to debug for my Expose REST API. However, I do not understand why I keep getting Error code 400 : The request body is missing.

Greatly appreciate anyone could help to look up my issue.

*Note: the original base url and API name contains sensitive information, so I modified the base url and documentation name to prevent disclose any confidential information.

Postman:

Documentation of my Expose REST API:

Thanks in advance.

Cheers,
Gwen.

2021-10-09 07-57-44
Stefan Weber
 
MVP
Solution

Hi you added a Body query parameter which sends the value as an URL parameter. You have to pass the body JSON in the Body tab:

Remove the Body Query Parameter

Go to the Body tab

Switch to raw and select JSON from the dropdown

Check the example Value of your documentation what to put into the body.


UserImage.jpg
Gwen

Hi Stefen,

Very much appreciate your prompt reply in this thread!

I'm able to call the API successfully and return correct message in Postman now as per your suggestion.


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.