postmanerator
postmanerator copied to clipboard
Different request Body not taken into account
If there are more than 1 examples for a request, and if both the examples have different request bodies, then the docs shows request body of only one of them for both the requests
Thank you @adwait-thattey, could you please provide me with a sample collection, so I can easily reproduce the issue?
Sure. Here is a sample collection
https://drive.google.com/file/d/1CyG6ADW_M7Sgzz4oPhemCQuGUMoEQv_v/view?usp=sharing
The same applies to the example request. Imagine that I have the following URL with an obligatory get parameter:
host/app?parameter=1
I would like to have one example of success, and one example of failure, because of the missing parameter. In Postman, you can inform different Example Requests, but Postmanerator only shows the URL defined in the original request.
Instead of using the url present in the request field:
"request": {
"method": "GET",
"header": [],
"body": {},
"url": {
"raw": ORIGINAL_URL_WITH_PARAMETER,
It could use the URL present in response field:
"response": [
{
"name": "NAME",
"originalRequest": {
"method": "GET",
"header": [],
"body": {},
"url": {
"raw": ORIGINAL_URL_WITHOUT_PARAMETER,
The interface could mention the url used in each tab generated.
But I would like to express my gratitude for this project. It is very usefull!!!