Add support for importing 5 new authentication types from both
Postman v2.0 and v2.1 import formats.
- Basic Auth (Fixes#1235)
- Bearer Tokens (Fixes#1236)
- Digest Auth username and password (Fixes#1237)
- AWS IAMv4 Authentication (Fixes#1241)
- Oauth 1.0 and Oauth 2.0 (Fixes#1240)
Note: For Oauth2.0 this means setting authorization to Oauth2 but
generating a disabled config, since postman does not export anything we
can use to fill our config values.
The regex was greedily matching any character which causes problems with
multiple path parameters in a route and it was only replacing once:
input: `/api/v1/{channel}/items/{id}`
output: `/api/v1/{{ channel}/items/{id }}`
* Added support for async importers
* Swagger importer v0.1 - supports import of workspace, environment and endpoints from swagger 2.0 specifications. Supports query params, headers and body. Mocks body of application/json endpoitns
* Refactor: added comments, removed function-in-function declarations
* Fixed import of yaml files. Added tests for both .json and .yaml