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

Allow importing Postman collections #524

Closed
Aditya94A opened this issue Jan 25, 2020 · 18 comments
Closed

Allow importing Postman collections #524

Aditya94A opened this issue Jan 25, 2020 · 18 comments

Comments

@Aditya94A
Copy link

The feature:

  1. Export collection from postman
  2. Import into postwoman
  3. Collection is converted into postwoman format and saved

Just one more thing to entice more and more postman users to switch over, would make it very easy for postman users to switch.

Would need to build a parser for postman collection format (should be easy, they have a simple, stable JSON structure)

A bunch of example collections here.

@liyasthomas
Copy link
Member

This might seems like a better option, but as we move forward with this feature implementation, we could find there are some edge cases that involves some conflicts. One for them is Postman's Collection parser. I don't think it's an open source module. So, that will require us to go in depth of the architecture of PM and dig out how they store Collections.

Few weeks back I actually tried to parse one of such PM Collections and was able to produce a PW combaitable format. Anyway i would try to implement it if any more users Requests it.

@liyasthomas
Copy link
Member

Closing this issue in reference of #333

@Moshe-Dror
Copy link

I was not able to import my postman collection/ env. from json . can you please assist?

@Aditya94A
Copy link
Author

@Moshe-Dror I don't think this is supported yet.

@liyasthomas How about adding environment support (along with importing postman environment files)? 😁 💪 🚀

@liyasthomas
Copy link
Member

liyasthomas commented Apr 11, 2020

Postwoman now supports importing Postman Collections v2.1.0 abd above.

Navigate to Collection tab on right side bar.
Click "Import/Export"
Click "Import from JSON"
Select any collection.json file

Importing environment variables currently only works with Postwoman environments.

@hoppscotch hoppscotch deleted a comment from Moshe-Dror Apr 12, 2020
@nabsha
Copy link

nabsha commented May 5, 2020

Trying this feature now in latest docker build by import PM collection in 2.1 format but the import button is not importing anything. Is this still working?

Followed the following steps

Navigate to Collection tab on right side bar.
Click "Import/Export"
Click "Import from JSON"
Select any collection.json file

@liyasthomas
Copy link
Member

May I know which Postman collection version you tried?

@nabsha
Copy link

nabsha commented May 7, 2020

I guess its to do with the collection if its 2+ levels deep. I've tried looking at the code and it seems postwoman only support till 1st level sub folders.

	"info": {
		"_postman_id": "c664f176-bf44-4da3-bc00-78b708e7a316",
		"name": "parent-folder-3",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "sub-folder",
			"item": [
				{
					"name": "sub-sub-folder",
					"item": [
						{
							"name": "foobar-request",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "http://mockbin.com/request?foo=bar&foo=baz",
									"protocol": "http",
									"host": [
										"mockbin",
										"com"
									],
									"path": [
										"request"
									],
									"query": [
										{
											"key": "foo",
											"value": "bar"
										},
										{
											"key": "foo",
											"value": "baz"
										}
									]
								}
							},
							"response": []
						}
					],
					"protocolProfileBehavior": {},
					"_postman_isSubFolder": true
				}
			],
			"protocolProfileBehavior": {}
		}
	],
	"protocolProfileBehavior": {}
}```

@nabsha
Copy link

nabsha commented May 7, 2020

Raised #850 to address this issue

@juan11041970
Copy link

I see the Collections tab, but I don't see any import option.

@liyasthomas
Copy link
Member

@juan11041970 can you share a screenshot of Collections tab?

@juan11041970
Copy link

juan11041970 commented Jun 17, 2020 via email

@liyasthomas
Copy link
Member

@juan11041970 can comment here on GitHub. I can't find the screenshot in your reply.

@juan11041970
Copy link

juan11041970 commented Jun 17, 2020 via email

@liyasthomas
Copy link
Member

@juan11041970 kindly send it to liyascthomas@gmail.com

@nathanmargaglio
Copy link

I want to add that it'd be very nice to import AWS API Gateway generated docs into Postwoman. API Gateway allows you to export docs with Postman plugins so that you can import it as a collection, so I suppose adding Postman collection support might be equivalent.

@TeamPIDU
Copy link

Hi exported a postman collection, and then imported in Hoppscotch, but there is an issue with the body data - that is not being imported in Hoppscotch. All other things are imported but the 'body' -> 'raw' parameter data from postman Json is not being imported

@AndrewBastin
Copy link
Member

@TeamPIDU this issue has already been notified and we are tracking the issue on #2136

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

8 participants