postmanerator icon indicating copy to clipboard operation
postmanerator copied to clipboard

Different request Body not taken into account

Open adwait-thattey opened this issue 5 years ago • 3 comments

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

adwait-thattey avatar Jun 04 '19 09:06 adwait-thattey

Thank you @adwait-thattey, could you please provide me with a sample collection, so I can easily reproduce the issue?

aubm avatar Jun 10 '19 18:06 aubm

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!!!

bruno-lopes avatar Jun 26 '19 20:06 bruno-lopes