I have endpoint which takes few parameters and body as input, and I want to test it in Postman. But, when I input data into \'form-data\' section in Postman backend throws error
For the request params you would add them to the end of the URL
rather than in the request body, like you have done in the image.
?to=random@email.com&subject=Testing mailing feature&isMultipart=false&isHTML=true
This can be seen in the Postman UI when you select the Params
button, this can be found next to the Send
button.
I'm unsure about the string
that you need in the request body and in what format the endpoint requires this data.
If it's in a JSON format you could add {"content": "Some new content"}
to the raw
body and select JSON (application/json)
from the dropdown, this will also set the correct request header.
Edit:
The UI has changed slightly since this answer was given. The Params
tab is now placed in a less confusing place.