Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different request Body not taken into account #62

Open
adwait-thattey opened this issue Jun 4, 2019 · 3 comments
Open

Different request Body not taken into account #62

adwait-thattey opened this issue Jun 4, 2019 · 3 comments

Comments

@adwait-thattey
Copy link

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

@aubm
Copy link
Owner

aubm commented Jun 10, 2019

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

@adwait-thattey
Copy link
Author

@bruno-lopes
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants