From edc86e397e91c19e95a7e5615df224cd67c5c9b2 Mon Sep 17 00:00:00 2001 From: Jack Kavanagh Date: Fri, 8 Mar 2024 17:14:08 +0100 Subject: [PATCH] set sort key on import (#7148) * set sort key * use a snapshot test * reverse matcher * fix test snapshots * remove old outputs --- .../insomnia/src/utils/importers/entities.ts | 1 + .../__snapshots__/index.test.ts.snap | 8280 +++++++++++++++++ .../fixtures/curl/complex-output.json | 43 - .../fixtures/curl/dollar-sign-output.json | 48 - .../importers/fixtures/curl/form-output.json | 39 - .../fixtures/curl/from-chrome-output.json | 69 - .../importers/fixtures/curl/get-output.json | 25 - .../fixtures/curl/header-colon-output.json | 25 - .../fixtures/curl/multi-data-output.json | 37 - .../importers/fixtures/curl/multi-output.json | 61 - .../fixtures/curl/no-url-output.json | 20 - .../fixtures/curl/question-mark-output.json | 23 - .../fixtures/curl/simple-url-output.json | 20 - .../fixtures/curl/squished-output.json | 22 - .../fixtures/curl/url-only-output.json | 20 - .../fixtures/curl/urlencoded-output.json | 37 - .../importers/fixtures/har/deep-output.json | 52 - .../fixtures/har/form-data-output.json | 32 - .../fixtures/har/minimal-output.json | 20 - .../fixtures/har/no-requests-output.json | 7 - .../fixtures/har/shallow-output.json | 42 - .../fixtures/insomnia-1/complex-output.json | 50 - .../fixtures/insomnia-1/form-output.json | 89 - .../fixtures/insomnia-1/minimal-output.json | 27 - .../fixtures/insomnia-2/complex-output.json | 77 - .../fixtures/insomnia-3/basic-output.json | 18 - .../fixtures/insomnia-4/basic-output.json | 18 - .../openapi3/dereferenced-output.json | 392 - .../dereferenced-with-tags-output.json | 416 - .../openapi3/endpoint-security-output.json | 286 - .../example-with-server-variables-output.json | 47 - .../example-without-servers-output.json | 59 - .../openapi3/global-security-output.json | 80 - .../openapi3/multiple-api-keys-output.json | 108 - .../fixtures/openapi3/oauth2-output.json | 101 - .../fixtures/openapi3/path-plugin-output.json | 47 - .../fixtures/openapi3/petstore-output.json | 406 - .../openapi3/petstore-readonly-output.json | 84 - .../openapi3/petstore-with-tags-output.json | 416 - .../openapi3/petstore-yml-output.json | 77 - .../petstore-yml-with-tags-output.json | 103 - .../fixtures/postman-env/basic-output.json | 17 - .../fixtures/postman-env/no-name-output.json | 17 - .../postman/api-key-default-v2_1-output.json | 36 - .../postman/api-key-header-v2_1-output.json | 36 - .../api-key-queryParams-v2_1-output.json | 36 - .../aws-signature-auth-v2_0-output.json | 38 - .../aws-signature-auth-v2_1-output.json | 38 - .../postman/basic-auth-v2_0-output.json | 35 - .../postman/basic-auth-v2_1-output.json | 35 - .../postman/bearer-token-v2_0-output.json | 35 - .../postman/bearer-token-v2_1-output.json | 35 - .../postman/complex-url-v2_0-output.json | 36 - .../postman/complex-url-v2_1-output.json | 36 - .../fixtures/postman/complex-v2_0-output.json | 149 - .../complex-v2_0_fromHeaders-output.json | 213 - .../fixtures/postman/complex-v2_1-output.json | 155 - .../postman/digest-auth-v2_0-output.json | 35 - .../postman/digest-auth-v2_1-output.json | 35 - .../fixtures/postman/minimal-v2_0-output.json | 30 - .../fixtures/postman/minimal-v2_1-output.json | 30 - .../postman/oauth1_0-auth-v2_0-output.json | 161 - .../postman/oauth1_0-auth-v2_1-output.json | 161 - .../postman/oauth2_0-auth-v2_0-output.json | 60 - .../postman/oauth2_0-auth-v2_1-output.json | 166 - .../postman-export-oauth2-v2_1-output.json | 46 - .../swagger2/dereferenced-output.json | 467 - .../dereferenced-with-tags-output.json | 467 - .../fixtures/swagger2/petstore-output.json | 467 - .../swagger2/petstore-with-tags-output.json | 467 - .../swagger2/petstore-yml-output.json | 125 - .../petstore-yml-with-tags-output.json | 88 - .../swagger2/user-example-output.json | 56 - .../fixtures/wsdl/addition-output.json | 54 - .../fixtures/wsdl/calculator-output.json | 144 - .../utils/importers/importers/index.test.ts | 12 +- .../src/utils/importers/importers/postman.ts | 1 + 77 files changed, 8285 insertions(+), 7558 deletions(-) create mode 100644 packages/insomnia/src/utils/importers/importers/__snapshots__/index.test.ts.snap delete mode 100755 packages/insomnia/src/utils/importers/importers/fixtures/curl/complex-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/curl/dollar-sign-output.json delete mode 100755 packages/insomnia/src/utils/importers/importers/fixtures/curl/form-output.json delete mode 100755 packages/insomnia/src/utils/importers/importers/fixtures/curl/from-chrome-output.json delete mode 100755 packages/insomnia/src/utils/importers/importers/fixtures/curl/get-output.json delete mode 100755 packages/insomnia/src/utils/importers/importers/fixtures/curl/header-colon-output.json delete mode 100755 packages/insomnia/src/utils/importers/importers/fixtures/curl/multi-data-output.json delete mode 100755 packages/insomnia/src/utils/importers/importers/fixtures/curl/multi-output.json delete mode 100755 packages/insomnia/src/utils/importers/importers/fixtures/curl/no-url-output.json delete mode 100755 packages/insomnia/src/utils/importers/importers/fixtures/curl/question-mark-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/curl/simple-url-output.json delete mode 100755 packages/insomnia/src/utils/importers/importers/fixtures/curl/squished-output.json delete mode 100755 packages/insomnia/src/utils/importers/importers/fixtures/curl/url-only-output.json delete mode 100755 packages/insomnia/src/utils/importers/importers/fixtures/curl/urlencoded-output.json delete mode 100755 packages/insomnia/src/utils/importers/importers/fixtures/har/deep-output.json delete mode 100755 packages/insomnia/src/utils/importers/importers/fixtures/har/form-data-output.json delete mode 100755 packages/insomnia/src/utils/importers/importers/fixtures/har/minimal-output.json delete mode 100755 packages/insomnia/src/utils/importers/importers/fixtures/har/no-requests-output.json delete mode 100755 packages/insomnia/src/utils/importers/importers/fixtures/har/shallow-output.json delete mode 100755 packages/insomnia/src/utils/importers/importers/fixtures/insomnia-1/complex-output.json delete mode 100755 packages/insomnia/src/utils/importers/importers/fixtures/insomnia-1/form-output.json delete mode 100755 packages/insomnia/src/utils/importers/importers/fixtures/insomnia-1/minimal-output.json delete mode 100755 packages/insomnia/src/utils/importers/importers/fixtures/insomnia-2/complex-output.json delete mode 100755 packages/insomnia/src/utils/importers/importers/fixtures/insomnia-3/basic-output.json delete mode 100755 packages/insomnia/src/utils/importers/importers/fixtures/insomnia-4/basic-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/openapi3/dereferenced-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/openapi3/dereferenced-with-tags-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/openapi3/endpoint-security-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/openapi3/example-with-server-variables-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/openapi3/example-without-servers-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/openapi3/global-security-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/openapi3/multiple-api-keys-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/openapi3/oauth2-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/openapi3/path-plugin-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/openapi3/petstore-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/openapi3/petstore-readonly-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/openapi3/petstore-with-tags-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/openapi3/petstore-yml-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/openapi3/petstore-yml-with-tags-output.json delete mode 100755 packages/insomnia/src/utils/importers/importers/fixtures/postman-env/basic-output.json delete mode 100755 packages/insomnia/src/utils/importers/importers/fixtures/postman-env/no-name-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/postman/api-key-default-v2_1-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/postman/api-key-header-v2_1-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/postman/api-key-queryParams-v2_1-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/postman/aws-signature-auth-v2_0-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/postman/aws-signature-auth-v2_1-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/postman/basic-auth-v2_0-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/postman/basic-auth-v2_1-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/postman/bearer-token-v2_0-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/postman/bearer-token-v2_1-output.json delete mode 100755 packages/insomnia/src/utils/importers/importers/fixtures/postman/complex-url-v2_0-output.json delete mode 100755 packages/insomnia/src/utils/importers/importers/fixtures/postman/complex-url-v2_1-output.json delete mode 100755 packages/insomnia/src/utils/importers/importers/fixtures/postman/complex-v2_0-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/postman/complex-v2_0_fromHeaders-output.json delete mode 100755 packages/insomnia/src/utils/importers/importers/fixtures/postman/complex-v2_1-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/postman/digest-auth-v2_0-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/postman/digest-auth-v2_1-output.json delete mode 100755 packages/insomnia/src/utils/importers/importers/fixtures/postman/minimal-v2_0-output.json delete mode 100755 packages/insomnia/src/utils/importers/importers/fixtures/postman/minimal-v2_1-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/postman/oauth1_0-auth-v2_0-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/postman/oauth1_0-auth-v2_1-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/postman/oauth2_0-auth-v2_0-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/postman/oauth2_0-auth-v2_1-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/postman/postman-export-oauth2-v2_1-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/swagger2/dereferenced-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/swagger2/dereferenced-with-tags-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/swagger2/petstore-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/swagger2/petstore-with-tags-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/swagger2/petstore-yml-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/swagger2/petstore-yml-with-tags-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/swagger2/user-example-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/wsdl/addition-output.json delete mode 100644 packages/insomnia/src/utils/importers/importers/fixtures/wsdl/calculator-output.json diff --git a/packages/insomnia/src/utils/importers/entities.ts b/packages/insomnia/src/utils/importers/entities.ts index e788d0b90f..49a08d257d 100644 --- a/packages/insomnia/src/utils/importers/entities.ts +++ b/packages/insomnia/src/utils/importers/entities.ts @@ -78,6 +78,7 @@ export interface ImportRequest extends Comment { queryString?: QueryString[]; url?: string; preRequestScript?: string; + metaSortKey?: number; } export type Converter = ( diff --git a/packages/insomnia/src/utils/importers/importers/__snapshots__/index.test.ts.snap b/packages/insomnia/src/utils/importers/importers/__snapshots__/index.test.ts.snap new file mode 100644 index 0000000000..c44f8b45b1 --- /dev/null +++ b/packages/insomnia/src/utils/importers/importers/__snapshots__/index.test.ts.snap @@ -0,0 +1,8280 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Fixtures Import curl complex-input.sh 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": { + "password": "My:Secret:Password", + "username": "My User", + }, + "body": { + "mimeType": "application/json", + "text": "{"email_id": "tem_123"}", + }, + "headers": [ + { + "name": "x-custom-header", + "value": "foo bar", + }, + { + "name": "content-type", + "value": "application/json", + }, + { + "name": "Cookie", + "value": "foo=bar; NID=91=iOf1sU9Ovlns9Dzn2Ipz05syr2K4AlZ4Kgp84eRVLf3_6DgcNrkqpWg4lfUvCB5cNxD26t", + }, + { + "name": "another-header", + "value": "foo", + }, + ], + "method": "POST", + "name": "http://localhost:8000/api/v1/send", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "http://localhost:8000/api/v1/send", + }, + ], +} +`; + +exports[`Fixtures Import curl dollar-sign-input.sh 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": {}, + "body": { + "mimeType": "", + "text": "{"key":"TEST","websiteId":2,"storeId":4,"remove":true,"coupon":{"code":"erwrwer"}}", + }, + "headers": [ + { + "name": "Origin", + "value": "https://test.dk", + }, + { + "name": "Accept-Encoding", + "value": "gzip, deflate, br", + }, + { + "name": "Accept-Language", + "value": "en-US,en;q=0.9,da-DK;q=0.8,da;q=0.7,mt;q=0.6", + }, + { + "name": "Cookie", + "value": "CookieTestConsent={stamp:\\xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=='%2Cnecessary...", + }, + { + "name": "Connection", + "value": "keep-alive", + }, + { + "name": "Pragma", + "value": "no-cache", + }, + ], + "method": "POST", + "name": "https://test.dk", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "https://test.dk", + }, + ], +} +`; + +exports[`Fixtures Import curl form-input.sh 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": {}, + "body": { + "mimeType": "multipart/form-data", + "params": [ + { + "fileName": "/home/user/file.txt", + "name": "file", + "type": "file", + }, + { + "name": "foo", + "type": "text", + "value": "bar", + }, + { + "name": "baz", + "type": "text", + "value": "qux", + }, + ], + }, + "headers": [], + "method": "POST", + "name": "https://insomnia.rest/signup", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "https://insomnia.rest/signup", + }, + ], +} +`; + +exports[`Fixtures Import curl from-chrome-input.sh 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": {}, + "body": { + "mimeType": "application/x-www-form-urlencoded", + "params": [ + { + "name": "private", + "value": "false", + }, + ], + }, + "headers": [ + { + "name": "Cookie", + "value": "__cfduid=d9e3031f00abce97dfdf7119a2d4620cc1478677611; _gat=1; session=eyJyZWNlbnQiOlsiMTlwd3g5NzEiLCIxYTNsaHg2MSJdfQ.CxF25Q.WfyUPLe9lQjtibrpD55c2gOD-YA; _ga=GA1.2.525721040.1478677612", + }, + { + "name": "Origin", + "value": "http://requestb.in", + }, + { + "name": "Accept-Encoding", + "value": "gzip, deflate", + }, + { + "name": "Accept-Language", + "value": "en-US,en;q=0.8", + }, + { + "name": "User-Agent", + "value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36", + }, + { + "name": "Content-Type", + "value": "application/x-www-form-urlencoded; charset=UTF-8", + }, + { + "name": "Accept", + "value": "*/*", + }, + { + "name": "Referer", + "value": "http://requestb.in/", + }, + { + "name": "X-Requested-With", + "value": "XMLHttpRequest", + }, + { + "name": "Connection", + "value": "keep-alive", + }, + ], + "method": "POST", + "name": "http://requestb.in/api/v1/bins", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "http://requestb.in/api/v1/bins", + }, + ], +} +`; + +exports[`Fixtures Import curl get-input.sh 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "http://somesite.com/getdata", + "parameters": [ + { + "name": "id", + "value": "1234", + }, + ], + "parentId": "__WORKSPACE_ID__", + "url": "http://somesite.com/getdata", + }, + ], +} +`; + +exports[`Fixtures Import curl header-colon-input.sh 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [ + { + "name": "X-Something", + "value": "foo: bar:baz", + }, + ], + "method": "GET", + "name": "https://insomnia.rest", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "https://insomnia.rest", + }, + ], +} +`; + +exports[`Fixtures Import curl multi-data-input.sh 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": {}, + "body": { + "mimeType": "application/x-www-form-urlencoded", + "params": [ + { + "name": "foo", + "value": "bar", + }, + { + "name": "baz", + "value": "qux", + }, + ], + }, + "headers": [ + { + "name": "Content-Type", + "value": "application/x-www-form-urlencoded", + }, + ], + "method": "POST", + "name": "https://insomnia.rest", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "https://insomnia.rest", + }, + ], +} +`; + +exports[`Fixtures Import curl multi-input.sh 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "https://insomnia.rest/1/2/3", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "https://insomnia.rest/1/2/3", + }, + { + "_id": "__REQ_2__", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "https://insomnia.rest/foo/bar", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "https://insomnia.rest/foo/bar", + }, + { + "_id": "__REQ_3__", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [ + { + "name": "Cookie", + "value": "foo=bar", + }, + ], + "method": "GET", + "name": "https://insomnia.rest", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "https://insomnia.rest", + }, + { + "_id": "__REQ_4__", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "https://insomnia.rest", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "https://insomnia.rest", + }, + ], +} +`; + +exports[`Fixtures Import curl no-url-input.sh 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "POST", + "name": "cURL Import 1", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "", + }, + ], +} +`; + +exports[`Fixtures Import curl question-mark-input.sh 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": {}, + "body": { + "mimeType": "", + "text": "{"query":{"match_all":{}}}", + }, + "headers": [], + "method": "POST", + "name": "http://192.168.1.1:9200/executions/_search", + "parameters": [ + { + "disabled": false, + "name": "pretty", + "value": "", + }, + ], + "parentId": "__WORKSPACE_ID__", + "url": "http://192.168.1.1:9200/executions/_search", + }, + ], +} +`; + +exports[`Fixtures Import curl simple-url-input.sh 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "https://www.google.com", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "https://www.google.com", + }, + ], +} +`; + +exports[`Fixtures Import curl url-only-input.sh 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "https://insomnia.rest/foo/bar", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "https://insomnia.rest/foo/bar", + }, + ], +} +`; + +exports[`Fixtures Import curl urlencoded-input.sh 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": {}, + "body": { + "mimeType": "application/x-www-form-urlencoded", + "params": [ + { + "name": "foo", + "value": "bar", + }, + { + "name": "baz", + "value": "qux", + }, + ], + }, + "headers": [ + { + "name": "Content-Type", + "value": "application/x-www-form-urlencoded", + }, + ], + "method": "POST", + "name": "https://insomnia.rest", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "https://insomnia.rest", + }, + ], +} +`; + +exports[`Fixtures Import har deep-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": {}, + "body": { + "mimeType": "", + "text": "", + }, + "headers": [], + "method": "POST", + "name": "HAR Import 1", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "", + }, + { + "_id": "__REQ_2__", + "_type": "request", + "authentication": {}, + "body": { + "mimeType": "", + "text": "hello world!", + }, + "headers": [ + { + "name": "Host", + "value": "insomnia.rest", + }, + { + "name": "cookie", + "value": "foo=bar; __cfduid=df7b43586f071c4aaa79dc8a9de0845771478571055; _ga=GA1.2.697086801.1478571058", + }, + ], + "method": "POST", + "name": "https://insomnia.rest/foo/bar", + "parameters": [ + { + "name": "foo", + "value": "bar", + }, + ], + "parentId": "__WORKSPACE_ID__", + "url": "https://insomnia.rest/foo/bar", + }, + ], +} +`; + +exports[`Fixtures Import har form-data-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": {}, + "body": { + "mimeType": "application/x-www-form-urlencoded", + "params": [ + { + "fileName": "/home/user/test.txt", + "name": "file", + }, + { + "name": "foo", + "value": "bar", + }, + ], + }, + "headers": [], + "method": "POST", + "name": "https://insomnia.rest/foo/bar", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "https://insomnia.rest/foo/bar", + }, + ], +} +`; + +exports[`Fixtures Import har minimal-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "My Request", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "https://insomnia.rest/foo/bar", + }, + ], +} +`; + +exports[`Fixtures Import har no-requests-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [], +} +`; + +exports[`Fixtures Import har shallow-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": {}, + "body": { + "mimeType": "application/x-www-form-urlencoded", + "params": [ + { + "name": "foo", + "value": "bar", + }, + ], + }, + "headers": [ + { + "name": "Host", + "value": "insomnia.rest", + }, + { + "name": "Cookie", + "value": "__cfduid=df7b43586f071c4aaa79dc8a9de0845771478571055; _ga=GA1.2.697086801.1478571058", + }, + ], + "method": "POST", + "name": "https://insomnia.rest/foo/bar", + "parameters": [ + { + "name": "foo", + "value": "bar", + }, + ], + "parentId": "__WORKSPACE_ID__", + "url": "https://insomnia.rest/foo/bar", + }, + ], +} +`; + +exports[`Fixtures Import insomnia-1 complex-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__GRP_1__", + "_type": "request_group", + "environment": { + "api_key": "live_123", + "base_url": "https://insomnia.rest/api/v1", + }, + "name": "Test Folder", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": { + "password": "", + "username": "{{ api_key }}", + }, + "body": { + "mimeType": "application/json", + "text": "{"foo": "bar"}", + }, + "headers": [ + { + "name": "Content-TYPE", + "value": "application/json; charset=utf-8", + }, + ], + "method": "POST", + "name": "Test Request", + "parameters": [ + { + "name": "testing", + "value": "hi 123", + }, + { + "name": "testing 2", + "value": "hi 456", + }, + ], + "parentId": "__GRP_1__", + "url": "{{ base_url }}/users", + }, + ], +} +`; + +exports[`Fixtures Import insomnia-1 form-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__GRP_1__", + "_type": "request_group", + "environment": {}, + "name": "Imported Folder 1", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": { + "password": undefined, + "username": undefined, + }, + "body": { + "mimeType": "application/x-www-form-urlencoded", + "params": [ + { + "name": "foo", + "value": "bar", + }, + { + "name": "baz", + "value": "qux", + }, + { + "name": "msg", + "value": "Hello World!", + }, + { + "name": "flag", + "value": "", + }, + ], + }, + "headers": [ + { + "name": "Content-Type", + "value": "application/x-www-form-urlencoded", + }, + ], + "method": "GET", + "name": "Imported HAR 1", + "parameters": [], + "parentId": "__GRP_1__", + "url": "", + }, + { + "_id": "__REQ_2__", + "_type": "request", + "authentication": { + "password": undefined, + "username": undefined, + }, + "body": { + "mimeType": "multipart/form-encoded", + "params": [ + { + "name": "foo", + "value": "bar", + }, + { + "name": "baz", + "value": "qux", + }, + { + "name": "msg", + "value": "Hello World!", + }, + { + "name": "flag", + "value": "", + }, + ], + }, + "headers": [ + { + "name": "content-type", + "value": "multipart/form-encoded", + }, + ], + "method": "GET", + "name": "Imported HAR 2", + "parameters": [], + "parentId": "__GRP_1__", + "url": "", + }, + ], +} +`; + +exports[`Fixtures Import insomnia-1 minimal-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__GRP_1__", + "_type": "request_group", + "environment": {}, + "name": "Imported Folder 1", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": { + "password": undefined, + "username": undefined, + }, + "body": {}, + "headers": [], + "method": "GET", + "name": "Imported HAR 1", + "parameters": [], + "parentId": "__GRP_1__", + "url": "", + }, + ], +} +`; + +exports[`Fixtures Import insomnia-2 complex-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__GRP_1__", + "_type": "request_group", + "environment": { + "api_key": "live_123", + "base_url": "https://insomnia.rest/api/v1", + }, + "name": "Test Folder", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": { + "password": "", + "username": "{{ api_key }}", + }, + "body": { + "mimeType": "application/json", + "text": "{"foo": "bar"}", + }, + "headers": [ + { + "name": "Content-Type", + "value": "application/json; charset=utf-8", + }, + ], + "method": "POST", + "name": "Test Request", + "parameters": [ + { + "name": "testing", + "value": "hi 123", + }, + { + "name": "testing 2", + "value": "hi 456", + }, + ], + "parentId": "__GRP_1__", + "url": "{{ base_url }}/users", + }, + { + "_id": "__REQ_2__", + "_type": "request", + "authentication": { + "password": "", + "username": "{{ api_key }}", + }, + "body": { + "mimeType": "", + "text": "Hello World!", + }, + "headers": [], + "method": "POST", + "name": "Test Request", + "parameters": [ + { + "name": "testing", + "value": "hi 123", + }, + { + "name": "testing 2", + "value": "hi 456", + }, + ], + "parentId": "__GRP_1__", + "url": "{{ base_url }}/users", + }, + ], +} +`; + +exports[`Fixtures Import insomnia-3 basic-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "wrk_123abc", + "_type": "workspace", + "certificates": [], + "created": 1474340560460, + "description": "", + "modified": 1477939910686, + "name": "Insomnia", + "parentId": null, + }, + ], +} +`; + +exports[`Fixtures Import insomnia-4 basic-input.yaml 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "wrk_123abc-v4", + "_type": "workspace", + "certificates": [], + "created": 1474340560460, + "description": "", + "modified": 1477939910686, + "name": "Insomnia", + "parentId": null, + }, + ], +} +`; + +exports[`Fixtures Import openapi3 dereferenced-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__WORKSPACE_ID__", + "_type": "workspace", + "description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key \`special-key\` to test the authorization filters.", + "name": "Swagger Petstore 1.0.0", + "parentId": null, + }, + { + "_id": "__BASE_ENVIRONMENT_ID__", + "_type": "environment", + "data": { + "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}", + }, + "name": "Base environment", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "env___BASE_ENVIRONMENT_ID___sub__33ebaa67", + "_type": "environment", + "data": { + "apiKey": "apiKey", + "base_path": "/v2", + "host": "petstore.swagger.io", + "oauth2ClientId": "clientId", + "oauth2RedirectUrl": "http://localhost/", + "scheme": "http", + }, + "name": "OpenAPI env petstore.swagger.io", + "parentId": "__BASE_ENVIRONMENT_ID__", + }, + { + "_id": "req___WORKSPACE_ID__23acbe44", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.oauth2ClientId }}", + "grantType": "implicit", + "redirectUrl": "{{ _.oauth2RedirectUrl }}", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": { + "mimeType": "application/json", + "text": "{ + "id": 0, + "category": { + "id": 0, + "name": "string" + }, + "name": "doggie", + "photoUrls": [ + "string" + ], + "tags": [ + { + "id": 0, + "name": "string" + } + ], + "status": "string" +}", + }, + "headers": [ + { + "disabled": false, + "name": "Content-Type", + "value": "application/json", + }, + ], + "method": "POST", + "name": "Add a new pet to the store", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/pet", + }, + { + "_id": "req___WORKSPACE_ID__74a7a059", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.oauth2ClientId }}", + "grantType": "implicit", + "redirectUrl": "{{ _.oauth2RedirectUrl }}", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": { + "mimeType": "application/json", + "text": "{ + "id": 0, + "category": { + "id": 0, + "name": "string" + }, + "name": "doggie", + "photoUrls": [ + "string" + ], + "tags": [ + { + "id": 0, + "name": "string" + } + ], + "status": "string" +}", + }, + "headers": [ + { + "disabled": false, + "name": "Content-Type", + "value": "application/json", + }, + ], + "method": "PUT", + "name": "Update an existing pet", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/pet", + }, + { + "_id": "req___WORKSPACE_ID__80ab0d08", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.oauth2ClientId }}", + "grantType": "implicit", + "redirectUrl": "{{ _.oauth2RedirectUrl }}", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": {}, + "headers": [], + "method": "GET", + "name": "Finds Pets by status", + "parameters": [ + { + "disabled": false, + "name": "status", + "value": "available", + }, + ], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/pet/findByStatus", + }, + { + "_id": "req___WORKSPACE_ID__42a17980", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.oauth2ClientId }}", + "grantType": "implicit", + "redirectUrl": "{{ _.oauth2RedirectUrl }}", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": {}, + "headers": [], + "method": "GET", + "name": "Finds Pets by tags", + "parameters": [ + { + "disabled": false, + "name": "tags", + "value": "string", + }, + ], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/pet/findByTags", + }, + { + "_id": "req___WORKSPACE_ID__3d1a51d3", + "_type": "request", + "authentication": { + "addTo": "header", + "key": "api_key", + "type": "apikey", + "value": "{{ _.apiKey }}", + }, + "body": {}, + "headers": [], + "method": "GET", + "name": "Find pet by ID", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/pet/{{ _.petId }}", + }, + { + "_id": "req___WORKSPACE_ID__a4608701", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.oauth2ClientId }}", + "grantType": "implicit", + "redirectUrl": "{{ _.oauth2RedirectUrl }}", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": { + "mimeType": "application/x-www-form-urlencoded", + }, + "headers": [ + { + "disabled": false, + "name": "Content-Type", + "value": "application/x-www-form-urlencoded", + }, + ], + "method": "POST", + "name": "Updates a pet in the store with form data", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/pet/{{ _.petId }}", + }, + { + "_id": "req___WORKSPACE_ID__e804bd05", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.oauth2ClientId }}", + "grantType": "implicit", + "redirectUrl": "{{ _.oauth2RedirectUrl }}", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": {}, + "headers": [ + { + "disabled": true, + "name": "api_key", + "value": "string", + }, + ], + "method": "DELETE", + "name": "Deletes a pet", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/pet/{{ _.petId }}", + }, + { + "_id": "req___WORKSPACE_ID__8081fb6f", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.oauth2ClientId }}", + "grantType": "implicit", + "redirectUrl": "{{ _.oauth2RedirectUrl }}", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": { + "mimeType": "multipart/form-data", + }, + "headers": [ + { + "disabled": false, + "name": "Content-Type", + "value": "multipart/form-data", + }, + ], + "method": "POST", + "name": "uploads an image", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/pet/{{ _.petId }}/uploadImage", + }, + { + "_id": "req___WORKSPACE_ID__443ac9e7", + "_type": "request", + "authentication": { + "addTo": "header", + "key": "api_key", + "type": "apikey", + "value": "{{ _.apiKey }}", + }, + "body": {}, + "headers": [], + "method": "GET", + "name": "Returns pet inventories by status", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/store/inventory", + }, + { + "_id": "req___WORKSPACE_ID__e24a4f9e", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "POST", + "name": "Place an order for a pet", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/store/order", + }, + { + "_id": "req___WORKSPACE_ID__f021bcd3", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "Find purchase order by ID", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/store/order/{{ _.orderId }}", + }, + { + "_id": "req___WORKSPACE_ID__15e47538", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "DELETE", + "name": "Delete purchase order by ID", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/store/order/{{ _.orderId }}", + }, + { + "_id": "req___WORKSPACE_ID__fe3d55d0", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "POST", + "name": "Create user", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/user", + }, + { + "_id": "req___WORKSPACE_ID__4cb83333", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "POST", + "name": "Creates list of users with given input array", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/user/createWithArray", + }, + { + "_id": "req___WORKSPACE_ID__e94a615f", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "POST", + "name": "Creates list of users with given input array", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/user/createWithList", + }, + { + "_id": "req___WORKSPACE_ID__00ac9da2", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "Logs user into the system", + "parameters": [ + { + "disabled": false, + "name": "username", + "value": "string", + }, + { + "disabled": false, + "name": "password", + "value": "string", + }, + ], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/user/login", + }, + { + "_id": "req___WORKSPACE_ID__740025cb", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "Logs out current logged in user session", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/user/logout", + }, + { + "_id": "req___WORKSPACE_ID__74f1d1d1", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "Get user by user name", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/user/{{ _.username }}", + }, + { + "_id": "req___WORKSPACE_ID__6d74493f", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "PUT", + "name": "Updated user", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/user/{{ _.username }}", + }, + { + "_id": "req___WORKSPACE_ID__38e8e88f", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "DELETE", + "name": "Delete user", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/user/{{ _.username }}", + }, + ], +} +`; + +exports[`Fixtures Import openapi3 dereferenced-with-tags-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__WORKSPACE_ID__", + "_type": "workspace", + "description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key \`special-key\` to test the authorization filters.", + "name": "Swagger Petstore 1.0.0", + "parentId": null, + }, + { + "_id": "__BASE_ENVIRONMENT_ID__", + "_type": "environment", + "data": { + "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}", + }, + "name": "Base environment", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "env___BASE_ENVIRONMENT_ID___sub__33ebaa67", + "_type": "environment", + "data": { + "apiKey": "apiKey", + "base_path": "/v2", + "host": "petstore.swagger.io", + "oauth2ClientId": "clientId", + "oauth2RedirectUrl": "http://localhost/", + "scheme": "http", + }, + "name": "OpenAPI env petstore.swagger.io", + "parentId": "__BASE_ENVIRONMENT_ID__", + }, + { + "_id": "fld___WORKSPACE_ID__1b034c38", + "_type": "request_group", + "description": "Everything about your Pets", + "environment": {}, + "name": "pet", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "fld___WORKSPACE_ID__3a21295d", + "_type": "request_group", + "description": "Access to Petstore orders", + "environment": {}, + "name": "store", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "fld___WORKSPACE_ID__12dea96f", + "_type": "request_group", + "description": "Operations about user", + "environment": {}, + "name": "user", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "req___WORKSPACE_ID__23acbe44", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.oauth2ClientId }}", + "grantType": "implicit", + "redirectUrl": "{{ _.oauth2RedirectUrl }}", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": { + "mimeType": "application/json", + "text": "{ + "id": 0, + "category": { + "id": 0, + "name": "string" + }, + "name": "doggie", + "photoUrls": [ + "string" + ], + "tags": [ + { + "id": 0, + "name": "string" + } + ], + "status": "string" +}", + }, + "headers": [ + { + "disabled": false, + "name": "Content-Type", + "value": "application/json", + }, + ], + "method": "POST", + "name": "Add a new pet to the store", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet", + }, + { + "_id": "req___WORKSPACE_ID__74a7a059", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.oauth2ClientId }}", + "grantType": "implicit", + "redirectUrl": "{{ _.oauth2RedirectUrl }}", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": { + "mimeType": "application/json", + "text": "{ + "id": 0, + "category": { + "id": 0, + "name": "string" + }, + "name": "doggie", + "photoUrls": [ + "string" + ], + "tags": [ + { + "id": 0, + "name": "string" + } + ], + "status": "string" +}", + }, + "headers": [ + { + "disabled": false, + "name": "Content-Type", + "value": "application/json", + }, + ], + "method": "PUT", + "name": "Update an existing pet", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet", + }, + { + "_id": "req___WORKSPACE_ID__80ab0d08", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.oauth2ClientId }}", + "grantType": "implicit", + "redirectUrl": "{{ _.oauth2RedirectUrl }}", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": {}, + "headers": [], + "method": "GET", + "name": "Finds Pets by status", + "parameters": [ + { + "disabled": false, + "name": "status", + "value": "available", + }, + ], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/findByStatus", + }, + { + "_id": "req___WORKSPACE_ID__42a17980", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.oauth2ClientId }}", + "grantType": "implicit", + "redirectUrl": "{{ _.oauth2RedirectUrl }}", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": {}, + "headers": [], + "method": "GET", + "name": "Finds Pets by tags", + "parameters": [ + { + "disabled": false, + "name": "tags", + "value": "string", + }, + ], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/findByTags", + }, + { + "_id": "req___WORKSPACE_ID__3d1a51d3", + "_type": "request", + "authentication": { + "addTo": "header", + "key": "api_key", + "type": "apikey", + "value": "{{ _.apiKey }}", + }, + "body": {}, + "headers": [], + "method": "GET", + "name": "Find pet by ID", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/{{ _.petId }}", + }, + { + "_id": "req___WORKSPACE_ID__a4608701", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.oauth2ClientId }}", + "grantType": "implicit", + "redirectUrl": "{{ _.oauth2RedirectUrl }}", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": { + "mimeType": "application/x-www-form-urlencoded", + }, + "headers": [ + { + "disabled": false, + "name": "Content-Type", + "value": "application/x-www-form-urlencoded", + }, + ], + "method": "POST", + "name": "Updates a pet in the store with form data", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/{{ _.petId }}", + }, + { + "_id": "req___WORKSPACE_ID__e804bd05", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.oauth2ClientId }}", + "grantType": "implicit", + "redirectUrl": "{{ _.oauth2RedirectUrl }}", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": {}, + "headers": [ + { + "disabled": true, + "name": "api_key", + "value": "string", + }, + ], + "method": "DELETE", + "name": "Deletes a pet", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/{{ _.petId }}", + }, + { + "_id": "req___WORKSPACE_ID__8081fb6f", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.oauth2ClientId }}", + "grantType": "implicit", + "redirectUrl": "{{ _.oauth2RedirectUrl }}", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": { + "mimeType": "multipart/form-data", + }, + "headers": [ + { + "disabled": false, + "name": "Content-Type", + "value": "multipart/form-data", + }, + ], + "method": "POST", + "name": "uploads an image", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/{{ _.petId }}/uploadImage", + }, + { + "_id": "req___WORKSPACE_ID__443ac9e7", + "_type": "request", + "authentication": { + "addTo": "header", + "key": "api_key", + "type": "apikey", + "value": "{{ _.apiKey }}", + }, + "body": {}, + "headers": [], + "method": "GET", + "name": "Returns pet inventories by status", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__3a21295d", + "url": "{{ _.base_url }}/store/inventory", + }, + { + "_id": "req___WORKSPACE_ID__e24a4f9e", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "POST", + "name": "Place an order for a pet", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__3a21295d", + "url": "{{ _.base_url }}/store/order", + }, + { + "_id": "req___WORKSPACE_ID__f021bcd3", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "Find purchase order by ID", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__3a21295d", + "url": "{{ _.base_url }}/store/order/{{ _.orderId }}", + }, + { + "_id": "req___WORKSPACE_ID__15e47538", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "DELETE", + "name": "Delete purchase order by ID", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__3a21295d", + "url": "{{ _.base_url }}/store/order/{{ _.orderId }}", + }, + { + "_id": "req___WORKSPACE_ID__fe3d55d0", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "POST", + "name": "Create user", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user", + }, + { + "_id": "req___WORKSPACE_ID__4cb83333", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "POST", + "name": "Creates list of users with given input array", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/createWithArray", + }, + { + "_id": "req___WORKSPACE_ID__e94a615f", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "POST", + "name": "Creates list of users with given input array", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/createWithList", + }, + { + "_id": "req___WORKSPACE_ID__00ac9da2", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "Logs user into the system", + "parameters": [ + { + "disabled": false, + "name": "username", + "value": "string", + }, + { + "disabled": false, + "name": "password", + "value": "string", + }, + ], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/login", + }, + { + "_id": "req___WORKSPACE_ID__740025cb", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "Logs out current logged in user session", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/logout", + }, + { + "_id": "req___WORKSPACE_ID__74f1d1d1", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "Get user by user name", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/{{ _.username }}", + }, + { + "_id": "req___WORKSPACE_ID__6d74493f", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "PUT", + "name": "Updated user", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/{{ _.username }}", + }, + { + "_id": "req___WORKSPACE_ID__38e8e88f", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "DELETE", + "name": "Delete user", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/{{ _.username }}", + }, + ], +} +`; + +exports[`Fixtures Import openapi3 endpoint-security-input.yaml 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__WORKSPACE_ID__", + "_type": "workspace", + "description": "", + "name": "Endpoint Security 1.2", + "parentId": null, + }, + { + "_id": "__BASE_ENVIRONMENT_ID__", + "_type": "environment", + "data": { + "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}", + }, + "name": "Base environment", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "env___BASE_ENVIRONMENT_ID___sub__64c0ce7d", + "_type": "environment", + "data": { + "anotherCookieName": "anotherCookieName", + "anotherKey": "anotherKey", + "base_path": "/v1", + "bearerToken": "bearerToken", + "cookieName": "cookieName", + "host": "api.server.test", + "httpPassword": "password", + "httpUsername": "username", + "key": "key", + "oauth2ClientId": "clientId", + "oauth2ClientSecret": "clientSecret", + "oauth2Password": "password", + "oauth2RedirectUrl": "http://localhost/", + "oauth2Username": "username", + "scheme": "https", + "xApiKey": "xApiKey", + "xAppVersion": "xAppVersion", + }, + "name": "OpenAPI env api.server.test", + "parentId": "__BASE_ENVIRONMENT_ID__", + }, + { + "_id": "req___WORKSPACE_ID__05bfadcb", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "/none", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/none", + }, + { + "_id": "req___WORKSPACE_ID__4112dc81", + "_type": "request", + "authentication": { + "password": "{{ _.httpPassword }}", + "type": "basic", + "username": "{{ _.httpUsername }}", + }, + "body": {}, + "headers": [], + "method": "GET", + "name": "/none/basic", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/none/basic", + }, + { + "_id": "req___WORKSPACE_ID__4a563129", + "_type": "request", + "authentication": { + "password": "{{ _.httpPassword }}", + "type": "basic", + "username": "{{ _.httpUsername }}", + }, + "body": {}, + "headers": [], + "method": "GET", + "name": "/basic", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/basic", + }, + { + "_id": "req___WORKSPACE_ID__6ecf1fc2", + "_type": "request", + "authentication": { + "prefix": "", + "token": "{{ _.bearerToken }}", + "type": "bearer", + }, + "body": {}, + "headers": [], + "method": "GET", + "name": "/bearer", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/bearer", + }, + { + "_id": "req___WORKSPACE_ID__48bba8a5", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [ + { + "disabled": false, + "name": "x-api_key", + "value": "{{ _.xApiKey }}", + }, + { + "disabled": false, + "name": "x-app-version", + "value": "{{ _.xAppVersion }}", + }, + ], + "method": "GET", + "name": "/key/header", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/key/header", + }, + { + "_id": "req___WORKSPACE_ID__2ea006cf", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [ + { + "disabled": false, + "name": "Cookie", + "value": "CookieName={{ _.cookieName }}; AnotherCookieName={{ _.anotherCookieName }}", + }, + ], + "method": "GET", + "name": "/key/cookie", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/key/cookie", + }, + { + "_id": "req___WORKSPACE_ID__0a8d5285", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "/key/query", + "parameters": [ + { + "disabled": false, + "name": "key", + "value": "{{ _.key }}", + }, + { + "disabled": false, + "name": "another_key", + "value": "{{ _.anotherKey }}", + }, + ], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/key/query", + }, + { + "_id": "req___WORKSPACE_ID__028b5fb7", + "_type": "request", + "authentication": { + "accessTokenUrl": "https://api.server.test/v1/token", + "authorizationUrl": "https://api.server.test/v1/auth", + "clientId": "{{ _.oauth2ClientId }}", + "clientSecret": "{{ _.oauth2ClientSecret }}", + "grantType": "authorization_code", + "redirectUrl": "{{ _.oauth2RedirectUrl }}", + "scope": "read:something write:something", + "type": "oauth2", + }, + "body": {}, + "headers": [], + "method": "GET", + "name": "/oauth2/authorization-code", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/oauth2/authorization-code", + }, + { + "_id": "req___WORKSPACE_ID__e5d224de", + "_type": "request", + "authentication": { + "authorizationUrl": "https://api.server.test/v1/auth", + "clientId": "{{ _.oauth2ClientId }}", + "grantType": "implicit", + "redirectUrl": "{{ _.oauth2RedirectUrl }}", + "scope": "read:something write:something", + "type": "oauth2", + }, + "body": {}, + "headers": [], + "method": "GET", + "name": "/oauth2/implicit", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/oauth2/implicit", + }, + { + "_id": "req___WORKSPACE_ID__ef33c6a4", + "_type": "request", + "authentication": { + "accessTokenUrl": "https://api.server.test/v1/token", + "clientId": "{{ _.oauth2ClientId }}", + "clientSecret": "{{ _.oauth2ClientSecret }}", + "grantType": "client_credentials", + "scope": "read:something write:something", + "type": "oauth2", + }, + "body": {}, + "headers": [], + "method": "GET", + "name": "/oauth2/client-credentials", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/oauth2/client-credentials", + }, + { + "_id": "req___WORKSPACE_ID__06ba5946", + "_type": "request", + "authentication": { + "accessTokenUrl": "https://api.server.test/v1/token", + "clientId": "{{ _.oauth2ClientId }}", + "clientSecret": "{{ _.oauth2ClientSecret }}", + "grantType": "password", + "password": "{{ _.oauth2Password }}", + "scope": "read:something write:something", + "type": "oauth2", + "username": "{{ _.oauth2Username }}", + }, + "body": {}, + "headers": [], + "method": "GET", + "name": "/oauth2/password", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/oauth2/password", + }, + { + "_id": "req___WORKSPACE_ID__e285189c", + "_type": "request", + "authentication": { + "password": "{{ _.httpPassword }}", + "type": "basic", + "username": "{{ _.httpUsername }}", + }, + "body": {}, + "headers": [ + { + "disabled": false, + "name": "x-api_key", + "value": "{{ _.xApiKey }}", + }, + { + "disabled": false, + "name": "Cookie", + "value": "CookieName={{ _.cookieName }}", + }, + ], + "method": "GET", + "name": "/all", + "parameters": [ + { + "disabled": false, + "name": "key", + "value": "{{ _.key }}", + }, + ], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/all", + }, + ], +} +`; + +exports[`Fixtures Import openapi3 example-with-server-variables-input.yaml 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__WORKSPACE_ID__", + "_type": "workspace", + "description": "This API is for administrating files and file storages.", + "name": "File and Storage API 0.1.0", + "parentId": null, + }, + { + "_id": "__BASE_ENVIRONMENT_ID__", + "_type": "environment", + "data": { + "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}", + }, + "name": "Base environment", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "env___BASE_ENVIRONMENT_ID___sub__b0168b4d", + "_type": "environment", + "data": { + "base_path": "/filemanagement", + "host": "localhost:8080", + "scheme": "https", + }, + "name": "OpenAPI env localhost:8080", + "parentId": "__BASE_ENVIRONMENT_ID__", + }, + { + "_id": "req___WORKSPACE_ID__a6294159", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "/files", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/files", + }, + ], +} +`; + +exports[`Fixtures Import openapi3 example-without-servers-input.yaml 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__WORKSPACE_ID__", + "_type": "workspace", + "description": "", + "name": "Simple API overview 2.0.0", + "parentId": null, + }, + { + "_id": "__BASE_ENVIRONMENT_ID__", + "_type": "environment", + "data": { + "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}", + }, + "name": "Base environment", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "env___BASE_ENVIRONMENT_ID___sub__9c17e047", + "_type": "environment", + "data": { + "base_path": "", + "host": "example.com", + "scheme": "http", + }, + "name": "OpenAPI env example.com", + "parentId": "__BASE_ENVIRONMENT_ID__", + }, + { + "_id": "req___WORKSPACE_ID__316fc296", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "List API versions", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/", + }, + { + "_id": "req___WORKSPACE_ID__4dd01204", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "Show API version details", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/v2", + }, + ], +} +`; + +exports[`Fixtures Import openapi3 global-security-input.yaml 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__WORKSPACE_ID__", + "_type": "workspace", + "description": "", + "name": "Global Security 1.2", + "parentId": null, + }, + { + "_id": "__BASE_ENVIRONMENT_ID__", + "_type": "environment", + "data": { + "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}", + }, + "name": "Base environment", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "env___BASE_ENVIRONMENT_ID___sub__64c0ce7d", + "_type": "environment", + "data": { + "apiKeyHere": "apiKeyHere", + "base_path": "/v1", + "bearerToken": "bearerToken", + "cookieName": "cookieName", + "host": "api.server.test", + "httpPassword": "password", + "httpUsername": "username", + "scheme": "https", + "xApiKey": "xApiKey", + }, + "name": "OpenAPI env api.server.test", + "parentId": "__BASE_ENVIRONMENT_ID__", + }, + { + "_id": "req___WORKSPACE_ID__21946b60", + "_type": "request", + "authentication": { + "password": "{{ _.httpPassword }}", + "type": "basic", + "username": "{{ _.httpUsername }}", + }, + "body": {}, + "headers": [ + { + "disabled": false, + "name": "x-api_key", + "value": "{{ _.xApiKey }}", + }, + ], + "method": "GET", + "name": "/global", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/global", + }, + { + "_id": "req___WORKSPACE_ID__b410454b", + "_type": "request", + "authentication": { + "addTo": "query", + "key": "apiKeyHere", + "type": "apikey", + "value": "{{ _.apiKeyHere }}", + }, + "body": {}, + "headers": [], + "method": "GET", + "name": "/override", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/override", + }, + ], +} +`; + +exports[`Fixtures Import openapi3 multiple-api-keys-input.yml 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__WORKSPACE_ID__", + "_type": "workspace", + "description": "This is a sample server Petstore server.", + "name": "Swagger Petstore 1.0.2", + "parentId": null, + }, + { + "_id": "__BASE_ENVIRONMENT_ID__", + "_type": "environment", + "data": { + "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}", + }, + "name": "Base environment", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "env___BASE_ENVIRONMENT_ID___sub__3d8ac28f", + "_type": "environment", + "data": { + "base_path": "/v2", + "host": "petstore.swagger.io", + "scheme": "https", + "xApiKey": "xApiKey", + "xAppId": "xAppId", + "xAppSecret": "xAppSecret", + }, + "name": "OpenAPI env petstore.swagger.io", + "parentId": "__BASE_ENVIRONMENT_ID__", + }, + { + "_id": "fld___WORKSPACE_ID__1b034c38", + "_type": "request_group", + "description": "Everything about your Pets", + "environment": {}, + "name": "pet", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "req___WORKSPACE_ID__23acbe44", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [ + { + "disabled": false, + "name": "X-API-KEY", + "value": "{{ _.xApiKey }}", + }, + { + "disabled": false, + "name": "X-APP-ID", + "value": "{{ _.xAppId }}", + }, + { + "disabled": false, + "name": "X-APP-SECRET", + "value": "{{ _.xAppSecret }}", + }, + ], + "method": "POST", + "name": "Add a new pet to the store", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet", + }, + { + "_id": "req___WORKSPACE_ID__80ab0d08", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [ + { + "disabled": false, + "name": "X-API-KEY", + "value": "{{ _.xApiKey }}", + }, + { + "disabled": false, + "name": "X-APP-ID", + "value": "{{ _.xAppId }}", + }, + { + "disabled": false, + "name": "X-APP-SECRET", + "value": "{{ _.xAppSecret }}", + }, + ], + "method": "GET", + "name": "Finds Pets by status", + "parameters": [ + { + "disabled": false, + "name": "status", + "value": "available", + }, + ], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/findByStatus", + }, + ], +} +`; + +exports[`Fixtures Import openapi3 oauth2-input.yaml 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__WORKSPACE_ID__", + "_type": "workspace", + "description": "", + "name": "Endpoint Security 1.2", + "parentId": null, + }, + { + "_id": "__BASE_ENVIRONMENT_ID__", + "_type": "environment", + "data": { + "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}", + }, + "name": "Base environment", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "env___BASE_ENVIRONMENT_ID___sub__64c0ce7d", + "_type": "environment", + "data": { + "base_path": "/v1", + "host": "api.server.test", + "oauth2ClientId": "clientId", + "oauth2ClientSecret": "clientSecret", + "oauth2RedirectUrl": "http://localhost/", + "scheme": "https", + }, + "name": "OpenAPI env api.server.test", + "parentId": "__BASE_ENVIRONMENT_ID__", + }, + { + "_id": "req___WORKSPACE_ID__028b5fb7", + "_type": "request", + "authentication": { + "accessTokenUrl": "https://api.server.test/v1/token", + "authorizationUrl": "https://api.server.test/v1/auth", + "clientId": "{{ _.oauth2ClientId }}", + "clientSecret": "{{ _.oauth2ClientSecret }}", + "grantType": "authorization_code", + "redirectUrl": "{{ _.oauth2RedirectUrl }}", + "scope": "", + "type": "oauth2", + }, + "body": {}, + "headers": [], + "method": "GET", + "name": "/oauth2/authorization-code", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/oauth2/authorization-code", + }, + { + "_id": "req___WORKSPACE_ID__cbd0a0fa", + "_type": "request", + "authentication": { + "accessTokenUrl": "https://api.server.test/v1/token", + "authorizationUrl": "https://api.server.test/v1/auth", + "clientId": "{{ _.oauth2ClientId }}", + "clientSecret": "{{ _.oauth2ClientSecret }}", + "grantType": "authorization_code", + "redirectUrl": "{{ _.oauth2RedirectUrl }}", + "scope": "read:something", + "type": "oauth2", + }, + "body": {}, + "headers": [], + "method": "GET", + "name": "/oauth2/authorization-code-read", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/oauth2/authorization-code-read", + }, + { + "_id": "req___WORKSPACE_ID__d7972b84", + "_type": "request", + "authentication": { + "accessTokenUrl": "https://api.server.test/v1/token", + "authorizationUrl": "https://api.server.test/v1/auth", + "clientId": "{{ _.oauth2ClientId }}", + "clientSecret": "{{ _.oauth2ClientSecret }}", + "grantType": "authorization_code", + "redirectUrl": "{{ _.oauth2RedirectUrl }}", + "scope": "read:something write:something", + "type": "oauth2", + }, + "body": {}, + "headers": [], + "method": "GET", + "name": "/oauth2/authorization-code-read-write", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/oauth2/authorization-code-read-write", + }, + ], +} +`; + +exports[`Fixtures Import openapi3 path-plugin-input.yaml 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__WORKSPACE_ID__", + "_type": "workspace", + "description": "Description", + "name": "API 1.0.0", + "parentId": null, + }, + { + "_id": "__BASE_ENVIRONMENT_ID__", + "_type": "environment", + "data": { + "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}", + }, + "name": "Base environment", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "env___BASE_ENVIRONMENT_ID___sub__64b4aec9", + "_type": "environment", + "data": { + "base_path": "", + "host": "api.insomnia.rest", + "scheme": "https", + }, + "name": "OpenAPI env api.insomnia.rest", + "parentId": "__BASE_ENVIRONMENT_ID__", + }, + { + "_id": "req___WORKSPACE_ID__2cade550", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "/path", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/path", + }, + ], +} +`; + +exports[`Fixtures Import openapi3 petstore-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__WORKSPACE_ID__", + "_type": "workspace", + "description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key \`special-key\` to test the authorization filters.", + "name": "Swagger Petstore 1.0.0", + "parentId": null, + }, + { + "_id": "__BASE_ENVIRONMENT_ID__", + "_type": "environment", + "data": { + "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}", + }, + "name": "Base environment", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "env___BASE_ENVIRONMENT_ID___sub__c88af77d", + "_type": "environment", + "data": { + "apiKey": "apiKey", + "base_path": "/v2", + "host": "petstore.swagger.io", + "oauth2ClientId": "clientId", + "oauth2RedirectUrl": "http://localhost/", + "scheme": "http", + }, + "name": "OpenAPI env petstore.swagger.io", + "parentId": "__BASE_ENVIRONMENT_ID__", + }, + { + "_id": "env___BASE_ENVIRONMENT_ID___sub__33d9f12e", + "_type": "environment", + "data": { + "apiKey": "apiKey", + "base_path": "/v2", + "host": "petstore-preprod.swagger.io", + "oauth2ClientId": "clientId", + "oauth2RedirectUrl": "http://localhost/", + "scheme": "http", + }, + "name": "OpenAPI env petstore-preprod.swagger.io", + "parentId": "__BASE_ENVIRONMENT_ID__", + }, + { + "_id": "req___WORKSPACE_ID__23acbe44", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.oauth2ClientId }}", + "grantType": "implicit", + "redirectUrl": "{{ _.oauth2RedirectUrl }}", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": { + "mimeType": "application/json", + "text": "{ + "id": 0, + "category": { + "id": 0, + "name": "string" + }, + "name": "doggie", + "photoUrls": [ + "string" + ], + "tags": [ + { + "id": 0, + "name": "string" + } + ], + "status": "string" +}", + }, + "headers": [ + { + "disabled": false, + "name": "Content-Type", + "value": "application/json", + }, + ], + "method": "POST", + "name": "Add a new pet to the store", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/pet", + }, + { + "_id": "req___WORKSPACE_ID__74a7a059", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.oauth2ClientId }}", + "grantType": "implicit", + "redirectUrl": "{{ _.oauth2RedirectUrl }}", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": { + "mimeType": "application/json", + "text": "{ + "id": 0, + "category": { + "id": 0, + "name": "string" + }, + "name": "doggie", + "photoUrls": [ + "string" + ], + "tags": [ + { + "id": 0, + "name": "string" + } + ], + "status": "string" +}", + }, + "headers": [ + { + "disabled": false, + "name": "Content-Type", + "value": "application/json", + }, + ], + "method": "PUT", + "name": "Update an existing pet", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/pet", + }, + { + "_id": "req___WORKSPACE_ID__80ab0d08", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.oauth2ClientId }}", + "grantType": "implicit", + "redirectUrl": "{{ _.oauth2RedirectUrl }}", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": {}, + "headers": [], + "method": "GET", + "name": "Finds Pets by status", + "parameters": [ + { + "disabled": false, + "name": "status", + "value": "available", + }, + ], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/pet/findByStatus", + }, + { + "_id": "req___WORKSPACE_ID__42a17980", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.oauth2ClientId }}", + "grantType": "implicit", + "redirectUrl": "{{ _.oauth2RedirectUrl }}", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": {}, + "headers": [], + "method": "GET", + "name": "Finds Pets by tags", + "parameters": [ + { + "disabled": false, + "name": "tags", + "value": "string", + }, + ], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/pet/findByTags", + }, + { + "_id": "req___WORKSPACE_ID__3d1a51d3", + "_type": "request", + "authentication": { + "addTo": "header", + "key": "api_key", + "type": "apikey", + "value": "{{ _.apiKey }}", + }, + "body": {}, + "headers": [], + "method": "GET", + "name": "Find pet by ID", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/pet/{{ _.petId }}", + }, + { + "_id": "req___WORKSPACE_ID__a4608701", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.oauth2ClientId }}", + "grantType": "implicit", + "redirectUrl": "{{ _.oauth2RedirectUrl }}", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": { + "mimeType": "application/x-www-form-urlencoded", + }, + "headers": [ + { + "disabled": false, + "name": "Content-Type", + "value": "application/x-www-form-urlencoded", + }, + ], + "method": "POST", + "name": "Updates a pet in the store with form data", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/pet/{{ _.petId }}", + }, + { + "_id": "req___WORKSPACE_ID__e804bd05", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.oauth2ClientId }}", + "grantType": "implicit", + "redirectUrl": "{{ _.oauth2RedirectUrl }}", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": {}, + "headers": [ + { + "disabled": true, + "name": "api_key", + "value": "string", + }, + ], + "method": "DELETE", + "name": "Deletes a pet", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/pet/{{ _.petId }}", + }, + { + "_id": "req___WORKSPACE_ID__8081fb6f", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.oauth2ClientId }}", + "grantType": "implicit", + "redirectUrl": "{{ _.oauth2RedirectUrl }}", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": { + "mimeType": "multipart/form-data", + }, + "headers": [ + { + "disabled": false, + "name": "Content-Type", + "value": "multipart/form-data", + }, + ], + "method": "POST", + "name": "uploads an image", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/pet/{{ _.petId }}/uploadImage", + }, + { + "_id": "req___WORKSPACE_ID__443ac9e7", + "_type": "request", + "authentication": { + "addTo": "header", + "key": "api_key", + "type": "apikey", + "value": "{{ _.apiKey }}", + }, + "body": {}, + "headers": [], + "method": "GET", + "name": "Returns pet inventories by status", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/store/inventory", + }, + { + "_id": "req___WORKSPACE_ID__e24a4f9e", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "POST", + "name": "Place an order for a pet", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/store/order", + }, + { + "_id": "req___WORKSPACE_ID__f021bcd3", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "Find purchase order by ID", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/store/order/{{ _.orderId }}", + }, + { + "_id": "req___WORKSPACE_ID__15e47538", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "DELETE", + "name": "Delete purchase order by ID", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/store/order/{{ _.orderId }}", + }, + { + "_id": "req___WORKSPACE_ID__fe3d55d0", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "POST", + "name": "Create user", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/user", + }, + { + "_id": "req___WORKSPACE_ID__4cb83333", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "POST", + "name": "Creates list of users with given input array", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/user/createWithArray", + }, + { + "_id": "req___WORKSPACE_ID__e94a615f", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "POST", + "name": "Creates list of users with given input array", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/user/createWithList", + }, + { + "_id": "req___WORKSPACE_ID__00ac9da2", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "Logs user into the system", + "parameters": [ + { + "disabled": false, + "name": "username", + "value": "string", + }, + { + "disabled": false, + "name": "password", + "value": "string", + }, + ], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/user/login", + }, + { + "_id": "req___WORKSPACE_ID__740025cb", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "Logs out current logged in user session", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/user/logout", + }, + { + "_id": "req___WORKSPACE_ID__74f1d1d1", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "Get user by user name", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/user/{{ _.username }}", + }, + { + "_id": "req___WORKSPACE_ID__6d74493f", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "PUT", + "name": "Updated user", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/user/{{ _.username }}", + }, + { + "_id": "req___WORKSPACE_ID__38e8e88f", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "DELETE", + "name": "Delete user", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/user/{{ _.username }}", + }, + ], +} +`; + +exports[`Fixtures Import openapi3 petstore-readonly-input.yml 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__WORKSPACE_ID__", + "_type": "workspace", + "description": "", + "name": "Swagger Petstore 1.0.0", + "parentId": null, + }, + { + "_id": "__BASE_ENVIRONMENT_ID__", + "_type": "environment", + "data": { + "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}", + }, + "name": "Base environment", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "env___BASE_ENVIRONMENT_ID___sub__5be46d1c", + "_type": "environment", + "data": { + "base_path": "/v1", + "host": "petstore.swagger.io", + "scheme": "http", + }, + "name": "OpenAPI env petstore.swagger.io", + "parentId": "__BASE_ENVIRONMENT_ID__", + }, + { + "_id": "req___WORKSPACE_ID__26e3ae98", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "List all pets", + "parameters": [ + { + "disabled": true, + "name": "limit", + "value": "0", + }, + ], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/pets", + }, + { + "_id": "req___WORKSPACE_ID__09e1157b", + "_type": "request", + "authentication": {}, + "body": { + "mimeType": "application/json", + "text": "{ + "name": "string", + "tag": "string" +}", + }, + "headers": [ + { + "disabled": false, + "name": "Content-Type", + "value": "application/json", + }, + ], + "method": "POST", + "name": "Create a pet", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/pets", + }, + { + "_id": "req___WORKSPACE_ID__3b13e39c", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "Info for a specific pet", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/pets/{{ _.petId }}", + }, + ], +} +`; + +exports[`Fixtures Import openapi3 petstore-with-tags-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__WORKSPACE_ID__", + "_type": "workspace", + "description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key \`special-key\` to test the authorization filters.", + "name": "Swagger Petstore 1.0.0", + "parentId": null, + }, + { + "_id": "__BASE_ENVIRONMENT_ID__", + "_type": "environment", + "data": { + "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}", + }, + "name": "Base environment", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "env___BASE_ENVIRONMENT_ID___sub__33ebaa67", + "_type": "environment", + "data": { + "apiKey": "apiKey", + "base_path": "/v2", + "host": "petstore.swagger.io", + "oauth2ClientId": "clientId", + "oauth2RedirectUrl": "http://localhost/", + "scheme": "http", + }, + "name": "OpenAPI env petstore.swagger.io", + "parentId": "__BASE_ENVIRONMENT_ID__", + }, + { + "_id": "fld___WORKSPACE_ID__1b034c38", + "_type": "request_group", + "description": "Everything about your Pets", + "environment": {}, + "name": "pet", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "fld___WORKSPACE_ID__3a21295d", + "_type": "request_group", + "description": "Access to Petstore orders", + "environment": {}, + "name": "store", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "fld___WORKSPACE_ID__12dea96f", + "_type": "request_group", + "description": "Operations about user", + "environment": {}, + "name": "user", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "req___WORKSPACE_ID__23acbe44", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.oauth2ClientId }}", + "grantType": "implicit", + "redirectUrl": "{{ _.oauth2RedirectUrl }}", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": { + "mimeType": "application/json", + "text": "{ + "id": 0, + "category": { + "id": 0, + "name": "string" + }, + "name": "doggie", + "photoUrls": [ + "string" + ], + "tags": [ + { + "id": 0, + "name": "string" + } + ], + "status": "string" +}", + }, + "headers": [ + { + "disabled": false, + "name": "Content-Type", + "value": "application/json", + }, + ], + "method": "POST", + "name": "Add a new pet to the store", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet", + }, + { + "_id": "req___WORKSPACE_ID__74a7a059", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.oauth2ClientId }}", + "grantType": "implicit", + "redirectUrl": "{{ _.oauth2RedirectUrl }}", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": { + "mimeType": "application/json", + "text": "{ + "id": 0, + "category": { + "id": 0, + "name": "string" + }, + "name": "doggie", + "photoUrls": [ + "string" + ], + "tags": [ + { + "id": 0, + "name": "string" + } + ], + "status": "string" +}", + }, + "headers": [ + { + "disabled": false, + "name": "Content-Type", + "value": "application/json", + }, + ], + "method": "PUT", + "name": "Update an existing pet", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet", + }, + { + "_id": "req___WORKSPACE_ID__80ab0d08", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.oauth2ClientId }}", + "grantType": "implicit", + "redirectUrl": "{{ _.oauth2RedirectUrl }}", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": {}, + "headers": [], + "method": "GET", + "name": "Finds Pets by status", + "parameters": [ + { + "disabled": false, + "name": "status", + "value": "available", + }, + ], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/findByStatus", + }, + { + "_id": "req___WORKSPACE_ID__42a17980", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.oauth2ClientId }}", + "grantType": "implicit", + "redirectUrl": "{{ _.oauth2RedirectUrl }}", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": {}, + "headers": [], + "method": "GET", + "name": "Finds Pets by tags", + "parameters": [ + { + "disabled": false, + "name": "tags", + "value": "string", + }, + ], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/findByTags", + }, + { + "_id": "req___WORKSPACE_ID__3d1a51d3", + "_type": "request", + "authentication": { + "addTo": "header", + "key": "api_key", + "type": "apikey", + "value": "{{ _.apiKey }}", + }, + "body": {}, + "headers": [], + "method": "GET", + "name": "Find pet by ID", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/{{ _.petId }}", + }, + { + "_id": "req___WORKSPACE_ID__a4608701", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.oauth2ClientId }}", + "grantType": "implicit", + "redirectUrl": "{{ _.oauth2RedirectUrl }}", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": { + "mimeType": "application/x-www-form-urlencoded", + }, + "headers": [ + { + "disabled": false, + "name": "Content-Type", + "value": "application/x-www-form-urlencoded", + }, + ], + "method": "POST", + "name": "Updates a pet in the store with form data", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/{{ _.petId }}", + }, + { + "_id": "req___WORKSPACE_ID__e804bd05", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.oauth2ClientId }}", + "grantType": "implicit", + "redirectUrl": "{{ _.oauth2RedirectUrl }}", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": {}, + "headers": [ + { + "disabled": true, + "name": "api_key", + "value": "string", + }, + ], + "method": "DELETE", + "name": "Deletes a pet", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/{{ _.petId }}", + }, + { + "_id": "req___WORKSPACE_ID__8081fb6f", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.oauth2ClientId }}", + "grantType": "implicit", + "redirectUrl": "{{ _.oauth2RedirectUrl }}", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": { + "mimeType": "multipart/form-data", + }, + "headers": [ + { + "disabled": false, + "name": "Content-Type", + "value": "multipart/form-data", + }, + ], + "method": "POST", + "name": "uploads an image", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/{{ _.petId }}/uploadImage", + }, + { + "_id": "req___WORKSPACE_ID__443ac9e7", + "_type": "request", + "authentication": { + "addTo": "header", + "key": "api_key", + "type": "apikey", + "value": "{{ _.apiKey }}", + }, + "body": {}, + "headers": [], + "method": "GET", + "name": "Returns pet inventories by status", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__3a21295d", + "url": "{{ _.base_url }}/store/inventory", + }, + { + "_id": "req___WORKSPACE_ID__e24a4f9e", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "POST", + "name": "Place an order for a pet", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__3a21295d", + "url": "{{ _.base_url }}/store/order", + }, + { + "_id": "req___WORKSPACE_ID__f021bcd3", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "Find purchase order by ID", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__3a21295d", + "url": "{{ _.base_url }}/store/order/{{ _.orderId }}", + }, + { + "_id": "req___WORKSPACE_ID__15e47538", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "DELETE", + "name": "Delete purchase order by ID", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__3a21295d", + "url": "{{ _.base_url }}/store/order/{{ _.orderId }}", + }, + { + "_id": "req___WORKSPACE_ID__fe3d55d0", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "POST", + "name": "Create user", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user", + }, + { + "_id": "req___WORKSPACE_ID__4cb83333", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "POST", + "name": "Creates list of users with given input array", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/createWithArray", + }, + { + "_id": "req___WORKSPACE_ID__e94a615f", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "POST", + "name": "Creates list of users with given input array", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/createWithList", + }, + { + "_id": "req___WORKSPACE_ID__00ac9da2", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "Logs user into the system", + "parameters": [ + { + "disabled": false, + "name": "username", + "value": "string", + }, + { + "disabled": false, + "name": "password", + "value": "string", + }, + ], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/login", + }, + { + "_id": "req___WORKSPACE_ID__740025cb", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "Logs out current logged in user session", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/logout", + }, + { + "_id": "req___WORKSPACE_ID__74f1d1d1", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "Get user by user name", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/{{ _.username }}", + }, + { + "_id": "req___WORKSPACE_ID__6d74493f", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "PUT", + "name": "Updated user", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/{{ _.username }}", + }, + { + "_id": "req___WORKSPACE_ID__38e8e88f", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "DELETE", + "name": "Delete user", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/{{ _.username }}", + }, + ], +} +`; + +exports[`Fixtures Import openapi3 petstore-yml-input.yml 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__WORKSPACE_ID__", + "_type": "workspace", + "description": "", + "name": "Swagger Petstore 1.0.0", + "parentId": null, + }, + { + "_id": "__BASE_ENVIRONMENT_ID__", + "_type": "environment", + "data": { + "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}", + }, + "name": "Base environment", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "env___BASE_ENVIRONMENT_ID___sub__5be46d1c", + "_type": "environment", + "data": { + "base_path": "/v1", + "host": "petstore.swagger.io", + "scheme": "http", + }, + "name": "OpenAPI env petstore.swagger.io", + "parentId": "__BASE_ENVIRONMENT_ID__", + }, + { + "_id": "req___WORKSPACE_ID__2aab4183", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "List all pets", + "parameters": [ + { + "disabled": true, + "name": "limit", + "value": "0", + }, + ], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/pets", + }, + { + "_id": "req___WORKSPACE_ID__09e1157b", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "POST", + "name": "Create a pet", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/pets", + }, + { + "_id": "req___WORKSPACE_ID__3b13e39c", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "Info for a specific pet", + "parameters": [], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/pets/{{ _.petId }}", + }, + ], +} +`; + +exports[`Fixtures Import openapi3 petstore-yml-with-tags-input.yml 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__WORKSPACE_ID__", + "_type": "workspace", + "description": "", + "name": "Swagger Petstore 1.0.0", + "parentId": null, + }, + { + "_id": "__BASE_ENVIRONMENT_ID__", + "_type": "environment", + "data": { + "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}", + }, + "name": "Base environment", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "env___BASE_ENVIRONMENT_ID___sub__5be46d1c", + "_type": "environment", + "data": { + "base_path": "/v1", + "host": "petstore.swagger.io", + "scheme": "http", + }, + "name": "OpenAPI env petstore.swagger.io", + "parentId": "__BASE_ENVIRONMENT_ID__", + }, + { + "_id": "fld___WORKSPACE_ID__a8acce24", + "_type": "request_group", + "description": "Everything about your Pets", + "environment": {}, + "name": "pets", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "req___WORKSPACE_ID__26e3ae98", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "List all pets", + "parameters": [ + { + "disabled": true, + "name": "limit", + "value": "0", + }, + ], + "parentId": "fld___WORKSPACE_ID__a8acce24", + "url": "{{ _.base_url }}/pets", + }, + { + "_id": "req___WORKSPACE_ID__26e3ae981", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "List all pets", + "parameters": [ + { + "disabled": true, + "name": "limit", + "value": "0", + }, + ], + "parentId": "__WORKSPACE_ID__", + "url": "{{ _.base_url }}/pets", + }, + { + "_id": "req___WORKSPACE_ID__09e1157b", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "POST", + "name": "Create a pet", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__a8acce24", + "url": "{{ _.base_url }}/pets", + }, + { + "_id": "req___WORKSPACE_ID__3b13e39c", + "_type": "request", + "authentication": {}, + "body": {}, + "headers": [], + "method": "GET", + "name": "Info for a specific pet", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__a8acce24", + "url": "{{ _.base_url }}/pets/{{ _.petId }}", + }, + ], +} +`; + +exports[`Fixtures Import postman api-key-default-v2_1-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__GRP_1__", + "_type": "request_group", + "description": "", + "environment": {}, + "name": "New Collection", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": { + "addTo": "header", + "disabled": false, + "key": "test", + "type": "apikey", + "value": "test", + }, + "body": {}, + "description": "", + "headers": [], + "metaSortKey": 2, + "method": "GET", + "name": "New Request", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "mockbin.org/request/any", + }, + ], +} +`; + +exports[`Fixtures Import postman api-key-header-v2_1-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__GRP_1__", + "_type": "request_group", + "description": "", + "environment": {}, + "name": "New Collection", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": { + "addTo": "header", + "disabled": false, + "key": "test", + "type": "apikey", + "value": "test", + }, + "body": {}, + "description": "", + "headers": [], + "metaSortKey": 2, + "method": "GET", + "name": "New Request", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "mockbin.org/request/any", + }, + ], +} +`; + +exports[`Fixtures Import postman api-key-queryParams-v2_1-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__GRP_1__", + "_type": "request_group", + "description": "", + "environment": {}, + "name": "New Collection", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": { + "addTo": "queryParams", + "disabled": false, + "key": "test", + "type": "apikey", + "value": "test", + }, + "body": {}, + "description": "", + "headers": [], + "metaSortKey": 2, + "method": "GET", + "name": "New Request", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "mockbin.org/request/any", + }, + ], +} +`; + +exports[`Fixtures Import postman aws-signature-auth-v2_0-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__GRP_1__", + "_type": "request_group", + "description": "A collection for testing", + "environment": {}, + "name": "AWS Signature Test", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": { + "accessKeyId": "aws-access-key", + "disabled": false, + "region": "aws-region", + "secretAccessKey": "aws-secret-key", + "service": "aws-service-name", + "sessionToken": "aws-session-token", + "type": "iam", + }, + "body": {}, + "description": "", + "headers": [], + "metaSortKey": 2, + "method": "GET", + "name": "AWS Signature", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "https://insomnia.rest", + }, + ], +} +`; + +exports[`Fixtures Import postman aws-signature-auth-v2_1-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__GRP_1__", + "_type": "request_group", + "description": "A collection for testing", + "environment": {}, + "name": "AWS Signature Test", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": { + "accessKeyId": "aws-access-key", + "disabled": false, + "region": "aws-region", + "secretAccessKey": "aws-secret-key", + "service": "aws-service-name", + "sessionToken": "aws-session-token", + "type": "iam", + }, + "body": {}, + "description": "", + "headers": [], + "metaSortKey": 2, + "method": "GET", + "name": "AWS Signature", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "https://insomnia.rest", + }, + ], +} +`; + +exports[`Fixtures Import postman basic-auth-v2_0-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__GRP_1__", + "_type": "request_group", + "description": "A collection for testing", + "environment": {}, + "name": "Basic Auth Test", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": { + "disabled": false, + "password": "basic-password", + "type": "basic", + "username": "basic-username", + }, + "body": {}, + "description": "", + "headers": [], + "metaSortKey": 2, + "method": "GET", + "name": "Basic Auth", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "https://insomnia.rest", + }, + ], +} +`; + +exports[`Fixtures Import postman basic-auth-v2_1-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__GRP_1__", + "_type": "request_group", + "description": "A collection for testing", + "environment": {}, + "name": "Basic Auth Test", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": { + "disabled": false, + "password": "basic-password", + "type": "basic", + "username": "basic-username", + }, + "body": {}, + "description": "", + "headers": [], + "metaSortKey": 2, + "method": "GET", + "name": "Basic Auth", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "https://insomnia.rest", + }, + ], +} +`; + +exports[`Fixtures Import postman bearer-token-v2_0-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__GRP_1__", + "_type": "request_group", + "description": "A collection for testing", + "environment": {}, + "name": "Bearer Token Test", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": { + "disabled": false, + "prefix": "", + "token": "bearer-token-value", + "type": "bearer", + }, + "body": {}, + "description": "", + "headers": [], + "metaSortKey": 2, + "method": "GET", + "name": "Bearer Token", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "https://insomnia.rest", + }, + ], +} +`; + +exports[`Fixtures Import postman bearer-token-v2_1-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__GRP_1__", + "_type": "request_group", + "description": "A collection for testing", + "environment": {}, + "name": "Bearer Token Test", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": { + "disabled": false, + "prefix": "", + "token": "bearer-token-value", + "type": "bearer", + }, + "body": {}, + "description": "", + "headers": [], + "metaSortKey": 2, + "method": "GET", + "name": "Bearer Token", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "https://insomnia.rest", + }, + ], +} +`; + +exports[`Fixtures Import postman complex-url-v2_0-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__GRP_1__", + "_type": "request_group", + "description": "A collection for testing", + "environment": {}, + "name": "Complex URL Test Collection", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "", + "headers": [], + "metaSortKey": 2, + "method": "GET", + "name": "Test Request", + "parameters": [ + { + "disabled": false, + "name": "foo", + "value": "bar", + }, + ], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "https://insomnia.rest", + }, + ], +} +`; + +exports[`Fixtures Import postman complex-url-v2_1-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__GRP_1__", + "_type": "request_group", + "description": "A collection for testing", + "environment": {}, + "name": "Complex URL Test Collection", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "", + "headers": [], + "metaSortKey": 2, + "method": "GET", + "name": "Test Request", + "parameters": [ + { + "disabled": false, + "name": "foo", + "value": "bar", + }, + ], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "https://insomnia.rest", + }, + ], +} +`; + +exports[`Fixtures Import postman complex-v2_0_fromHeaders-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__GRP_1__", + "_type": "request_group", + "description": "", + "environment": {}, + "name": "Timing API", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "__GRP_2__", + "_type": "request_group", + "description": "", + "environment": {}, + "name": "Projects", + "parentId": "__GRP_1__", + }, + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": { + "disabled": false, + "prefix": "", + "token": "{{token}}", + "type": "bearer", + }, + "body": { + "mimeType": "application/json", + "text": "[]", + }, + "description": "
See [Display the specified project.](#display-the-specified-project) for the returned attributes.", + "headers": [ + { + "name": "Accept", + "value": "application/json", + }, + { + "name": "Content-Type", + "value": "application/json", + }, + ], + "metaSortKey": 2, + "method": "GET", + "name": "Return the complete project hierarchy.", + "parameters": [ + { + "disabled": true, + "name": "team_id", + "value": "", + }, + ], + "parentId": "__GRP_2__", + "preRequestScript": "", + "url": "", + }, + { + "_id": "__REQ_2__", + "_type": "request", + "authentication": { + "accessKeyId": "", + "disabled": false, + "region": "", + "secretAccessKey": "", + "service": "", + "type": "iam", + }, + "body": { + "mimeType": "application/json", + "text": "[]", + }, + "description": "
See [Display the specified project.](#display-the-specified-project) for the returned attributes.", + "headers": [ + { + "name": "Accept", + "value": "application/json", + }, + { + "name": "Content-Type", + "value": "application/json", + }, + ], + "metaSortKey": 3, + "method": "GET", + "name": "Return a list containing all projects.", + "parameters": [ + { + "disabled": false, + "name": "title", + "value": "root", + }, + { + "disabled": false, + "name": "hide_archived", + "value": "true", + }, + { + "disabled": true, + "name": "team_id", + "value": "", + }, + ], + "parentId": "__GRP_2__", + "preRequestScript": "", + "url": "", + }, + { + "_id": "__REQ_3__", + "_type": "request", + "authentication": { + "disabled": false, + "password": "abc123", + "type": "basic", + "username": "john@example.com", + }, + "body": { + "mimeType": "application/json", + "text": "{ + "title": "Acme Inc.", + "parent": "\\/projects\\/1", + "color": "#FF0000", + "productivity_score": 1, + "is_archived": false +}", + }, + "description": "
See [Display the specified project.](#display-the-specified-project) for the returned attributes.", + "headers": [ + { + "name": "Accept", + "value": "application/json", + }, + { + "name": "Content-Type", + "value": "application/json", + }, + ], + "metaSortKey": 4, + "method": "POST", + "name": "Create a new project.", + "parameters": [], + "parentId": "__GRP_2__", + "preRequestScript": "", + "url": "", + }, + { + "_id": "__REQ_4__", + "_type": "request", + "authentication": { + "disabled": false, + "password": "", + "type": "digest", + "username": "Username", + }, + "body": { + "mimeType": "application/json", + "text": "[]", + }, + "description": "
The following attributes will be returned: + + - \`self\`: A reference to the entity itself, relative to the API root. + - \`title\`: The project's title. + - \`title_chain\`: An array containing the title of the project and all its ancestors. Example: \`["Parent", "Child"]\` + - \`color\`: The project's color, in hexadecimal format (\`#RRGGBB\`). Example: \`#FF0000\` + - \`productivity_score\`: The project's productivity rating, between -1 (very unproductive) and 1 (very productive). Example: \`1\` + - \`is_archived\`: Whether the project has been archived. Defaults to false. Example: \`false\` + - \`parent\`: A reference to the enclosing project. + - \`children\`: The project's children. + +", + "headers": [ + { + "name": "Accept", + "value": "application/json", + }, + { + "name": "Content-Type", + "value": "application/json", + }, + ], + "metaSortKey": 5, + "method": "GET", + "name": "Display the specified project.", + "parameters": [], + "parentId": "__GRP_2__", + "preRequestScript": "", + "url": "", + }, + { + "_id": "__REQ_5__", + "_type": "request", + "authentication": { + "callback": "Callback%20URL", + "consumerKey": "Consumer%20Key", + "consumerSecret": "", + "disabled": false, + "nonce": "Nonce", + "privateKey": "", + "realm": "Realm", + "signatureMethod": "HMAC-SHA1", + "timestamp": "Timestamp", + "tokenKey": "Access%20Token", + "tokenSecret": "", + "type": "oauth1", + "verifier": "Verifier", + "version": "Version", + }, + "body": { + "mimeType": "application/json", + "text": "{ + "title": "Acme Inc.", + "color": "#FF0000", + "productivity_score": 1, + "is_archived": false +}", + }, + "description": "
See [Display the specified project.](#display-the-specified-project) for the returned attributes. + + + +", + "headers": [ + { + "name": "Accept", + "value": "application/json", + }, + { + "name": "Content-Type", + "value": "application/json", + }, + ], + "metaSortKey": 6, + "method": "PUT", + "name": "Update the specified project.", + "parameters": [], + "parentId": "__GRP_2__", + "preRequestScript": "", + "url": "", + }, + ], +} +`; + +exports[`Fixtures Import postman complex-v2_0-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__GRP_1__", + "_type": "request_group", + "description": "A collection for testing", + "environment": {}, + "name": "Complex Test Collection", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "__GRP_2__", + "_type": "request_group", + "description": "The first folder", + "environment": {}, + "name": "First Folder", + "parentId": "__GRP_1__", + }, + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": { + "disabled": false, + "password": "password", + "type": "basic", + "username": "username", + }, + "body": { + "mimeType": "multipart/form-data", + "params": [ + { + "disabled": false, + "fileName": "/home/user/test.txt", + "name": "file", + "type": "file", + }, + { + "disabled": false, + "name": "foo", + "type": "text", + "value": "bar", + }, + ], + }, + "description": "First Request", + "headers": [], + "metaSortKey": 2, + "method": "POST", + "name": "{{base_url}}/api/users", + "parameters": [], + "parentId": "__GRP_2__", + "preRequestScript": "", + "url": "{{base_url}}/api/users", + }, + { + "_id": "__REQ_2__", + "_type": "request", + "authentication": { + "disabled": false, + "password": "password", + "type": "basic", + "username": "username", + }, + "body": { + "mimeType": "application/x-www-form-urlencoded", + "params": [ + { + "disabled": false, + "name": "foo", + "value": "bar", + }, + ], + }, + "description": "First Request", + "headers": [], + "metaSortKey": 3, + "method": "POST", + "name": "Urlencoded Form Test", + "parameters": [], + "parentId": "__GRP_2__", + "preRequestScript": "", + "url": "{{base_url}}/api/users", + }, + { + "_id": "__REQ_3__", + "_type": "request", + "authentication": {}, + "body": { + "mimeType": "", + "text": "hello world!", + }, + "description": "Request with raw body", + "headers": [], + "metaSortKey": 4, + "method": "POST", + "name": "Test Request Raw Body", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "{{base_url}}/api/users", + }, + { + "_id": "__REQ_4__", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "Request with empty raw body", + "headers": [], + "metaSortKey": 5, + "method": "POST", + "name": "Test Request Empty Raw Body", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "{{base_url}}/api/users", + }, + { + "_id": "__REQ_5__", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "Request with unknown body", + "headers": [], + "metaSortKey": 6, + "method": "POST", + "name": "Test Request Unknown Body", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "{{base_url}}/api/users", + }, + { + "_id": "__REQ_6__", + "_type": "request", + "authentication": {}, + "body": { + "mimeType": "application/graphql", + "text": "{"query":"mutation loginUser($username: String!, $password: String!) {\\n login(username: $username, password: $password) {\\n token\\n status {\\n success\\n }\\n }\\n}\\n","variables":"{\\n \\"password\\": \\"{{password}}\\",\\n \\"username\\": \\"{{username}}\\"\\n}"}", + }, + "description": "Request with graphql body", + "headers": [], + "metaSortKey": 7, + "method": "POST", + "name": "Test Request GraphQL Body", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "{{base_url}}/graphql/", + }, + ], +} +`; + +exports[`Fixtures Import postman complex-v2_1-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__GRP_1__", + "_type": "request_group", + "description": "A collection for testing", + "environment": {}, + "name": "Complex Test Collection", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "__GRP_2__", + "_type": "request_group", + "description": "The first folder", + "environment": {}, + "name": "First Folder", + "parentId": "__GRP_1__", + }, + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": { + "disabled": false, + "password": "password", + "type": "basic", + "username": "username", + }, + "body": { + "mimeType": "multipart/form-data", + "params": [ + { + "disabled": false, + "fileName": "/home/user/test.txt", + "name": "file", + "type": "file", + }, + { + "disabled": false, + "name": "foo", + "type": "text", + "value": "bar", + }, + { + "disabled": true, + "name": "baz", + "type": "text", + "value": "disabled", + }, + ], + }, + "description": "First Request", + "headers": [], + "metaSortKey": 2, + "method": "POST", + "name": "{{base_url}}/api/users", + "parameters": [], + "parentId": "__GRP_2__", + "preRequestScript": "", + "url": "{{base_url}}/api/users", + }, + { + "_id": "__REQ_2__", + "_type": "request", + "authentication": { + "disabled": false, + "password": "password", + "type": "basic", + "username": "username", + }, + "body": { + "mimeType": "application/x-www-form-urlencoded", + "params": [ + { + "disabled": false, + "name": "foo", + "value": "bar", + }, + ], + }, + "description": "First Request", + "headers": [], + "metaSortKey": 3, + "method": "POST", + "name": "Urlencoded Form Test", + "parameters": [], + "parentId": "__GRP_2__", + "preRequestScript": "", + "url": "{{base_url}}/api/users", + }, + { + "_id": "__REQ_3__", + "_type": "request", + "authentication": {}, + "body": { + "mimeType": "", + "text": "hello world!", + }, + "description": "Request with raw body", + "headers": [], + "metaSortKey": 4, + "method": "POST", + "name": "Test Request", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "{{base_url}}/api/users", + }, + { + "_id": "__REQ_4__", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "Request with unknown body", + "headers": [], + "metaSortKey": 5, + "method": "POST", + "name": "Test Request Unknown Body", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "{{base_url}}/api/users", + }, + { + "_id": "__REQ_5__", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "Request with empty raw body", + "headers": [], + "metaSortKey": 6, + "method": "POST", + "name": "Test Request Empty Body", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "{{base_url}}/api/users", + }, + { + "_id": "__REQ_6__", + "_type": "request", + "authentication": {}, + "body": { + "mimeType": "application/graphql", + "text": "{"query":"mutation loginUser($username: String!, $password: String!) {\\n login(username: $username, password: $password) {\\n token\\n status {\\n success\\n }\\n }\\n}\\n","variables":"{\\n \\"password\\": \\"{{password}}\\",\\n \\"username\\": \\"{{username}}\\"\\n}"}", + }, + "description": "Request with graphql body", + "headers": [], + "metaSortKey": 7, + "method": "POST", + "name": "Test Request GraphQL Body", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "{{base_url}}/graphql/", + }, + ], +} +`; + +exports[`Fixtures Import postman digest-auth-v2_0-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__GRP_1__", + "_type": "request_group", + "description": "A collection for testing", + "environment": {}, + "name": "Digest Authentication Test", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": { + "disabled": false, + "password": "guest", + "type": "digest", + "username": "guest", + }, + "body": {}, + "description": "", + "headers": [], + "metaSortKey": 2, + "method": "GET", + "name": "Digest Auth", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "https://jigsaw.w3.org/HTTP/Digest/", + }, + ], +} +`; + +exports[`Fixtures Import postman digest-auth-v2_1-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__GRP_1__", + "_type": "request_group", + "description": "A collection for testing", + "environment": {}, + "name": "Digest Authentication Test", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": { + "disabled": false, + "password": "guest", + "type": "digest", + "username": "guest", + }, + "body": {}, + "description": "", + "headers": [], + "metaSortKey": 2, + "method": "GET", + "name": "Digest Auth", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "https://jigsaw.w3.org/HTTP/Digest/", + }, + ], +} +`; + +exports[`Fixtures Import postman minimal-v2_0-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__GRP_1__", + "_type": "request_group", + "description": "A collection for testing", + "environment": {}, + "name": "Minimal Test Collection", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "", + "headers": [], + "metaSortKey": 2, + "method": "GET", + "name": "", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "", + }, + ], +} +`; + +exports[`Fixtures Import postman minimal-v2_1-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__GRP_1__", + "_type": "request_group", + "description": "A collection for testing", + "environment": {}, + "name": "Minimal Test Collection", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "", + "headers": [], + "metaSortKey": 2, + "method": "GET", + "name": "", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "", + }, + ], +} +`; + +exports[`Fixtures Import postman oauth1_0-auth-v2_0-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__GRP_1__", + "_type": "request_group", + "description": "A collection for testing", + "environment": {}, + "name": "Oauth 1.0 Test", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": { + "callback": "", + "consumerKey": "consumer-key-value", + "consumerSecret": "consumer-secret-value", + "disabled": false, + "nonce": "nonce-value", + "privateKey": "", + "realm": "realm-value", + "signatureMethod": "HMAC-SHA1", + "timestamp": "timestamp-value", + "tokenKey": "access-token-value", + "tokenSecret": "token-secret-value", + "type": "oauth1", + "verifier": "", + "version": "1.0", + }, + "body": {}, + "description": "", + "headers": [], + "metaSortKey": 2, + "method": "GET", + "name": "Added to Request Body/URL", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "https://insomnia.rest", + }, + { + "_id": "__REQ_2__", + "_type": "request", + "authentication": { + "callback": "", + "consumerKey": "consumer-key-value", + "consumerSecret": "consumer-secret-value", + "disabled": false, + "nonce": "nonce-value", + "privateKey": "", + "realm": "realm-value", + "signatureMethod": "HMAC-SHA1", + "timestamp": "timestamp-value", + "tokenKey": "access-token-value", + "tokenSecret": "token-secret-value", + "type": "oauth1", + "verifier": "", + "version": "1.0", + }, + "body": {}, + "description": "", + "headers": [], + "metaSortKey": 3, + "method": "GET", + "name": "Added to Request Headers", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "https://insomnia.rest", + }, + { + "_id": "__REQ_3__", + "_type": "request", + "authentication": { + "callback": "", + "consumerKey": "plaintext-consumer-key-value", + "consumerSecret": "plaintext-consumer-secret-value", + "disabled": false, + "nonce": "plaintext-nonce-value", + "privateKey": "", + "realm": "plaintext-realm-value", + "signatureMethod": "PLAINTEXT", + "timestamp": "plaintext-timestamp-value", + "tokenKey": "plaintext-access-token-value", + "tokenSecret": "plaintext-token-secret-value", + "type": "oauth1", + "verifier": "", + "version": "1.0", + }, + "body": {}, + "description": "", + "headers": [], + "metaSortKey": 4, + "method": "GET", + "name": "Signature Method PLAINTEXT", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "https://insomnia.rest", + }, + { + "_id": "__REQ_4__", + "_type": "request", + "authentication": { + "callback": "", + "consumerKey": "sha256-consumer-key-value", + "consumerSecret": "sha256-consumer-secret-value", + "disabled": false, + "nonce": "sha256-nonce-value", + "privateKey": "", + "realm": "sha256-realm-value", + "signatureMethod": "HMAC-SHA256", + "timestamp": "sha256-timestamp-value", + "tokenKey": "sha256-access-token-value", + "tokenSecret": "sha256-token-secret-value", + "type": "oauth1", + "verifier": "", + "version": "1.0", + }, + "body": {}, + "description": "", + "headers": [], + "metaSortKey": 5, + "method": "GET", + "name": "Signature Method HMAC-SHA256", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "https://insomnia.rest", + }, + { + "_id": "__REQ_5__", + "_type": "request", + "authentication": { + "callback": "", + "consumerKey": "sha1-consumer-key-value", + "consumerSecret": "sha1-consumer-secret-value", + "disabled": false, + "nonce": "sha1-nonce-value", + "privateKey": "", + "realm": "sha1-realm-value", + "signatureMethod": "HMAC-SHA1", + "timestamp": "sha1-timestamp-value", + "tokenKey": "sha1-access-token-value", + "tokenSecret": "sha1-token-secret-value", + "type": "oauth1", + "verifier": "", + "version": "1.0", + }, + "body": {}, + "description": "", + "headers": [], + "metaSortKey": 6, + "method": "GET", + "name": "Signature Method HMAC-SHA1", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "https://insomnia.rest", + }, + ], +} +`; + +exports[`Fixtures Import postman oauth1_0-auth-v2_1-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__GRP_1__", + "_type": "request_group", + "description": "A collection for testing", + "environment": {}, + "name": "Oauth 1.0 Test", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": { + "callback": "", + "consumerKey": "consumer-key-value", + "consumerSecret": "consumer-secret-value", + "disabled": false, + "nonce": "nonce-value", + "privateKey": "", + "realm": "realm-value", + "signatureMethod": "HMAC-SHA1", + "timestamp": "timestamp-value", + "tokenKey": "access-token-value", + "tokenSecret": "token-secret-value", + "type": "oauth1", + "verifier": "", + "version": "1.0", + }, + "body": {}, + "description": "", + "headers": [], + "metaSortKey": 2, + "method": "GET", + "name": "Added to Request Body/URL", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "https://insomnia.rest", + }, + { + "_id": "__REQ_2__", + "_type": "request", + "authentication": { + "callback": "", + "consumerKey": "consumer-key-value", + "consumerSecret": "consumer-secret-value", + "disabled": false, + "nonce": "nonce-value", + "privateKey": "", + "realm": "realm-value", + "signatureMethod": "HMAC-SHA1", + "timestamp": "timestamp-value", + "tokenKey": "access-token-value", + "tokenSecret": "token-secret-value", + "type": "oauth1", + "verifier": "", + "version": "1.0", + }, + "body": {}, + "description": "", + "headers": [], + "metaSortKey": 3, + "method": "GET", + "name": "Added to Request Headers", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "https://insomnia.rest", + }, + { + "_id": "__REQ_3__", + "_type": "request", + "authentication": { + "callback": "", + "consumerKey": "plaintext-consumer-key-value", + "consumerSecret": "plaintext-consumer-secret-value", + "disabled": false, + "nonce": "plaintext-nonce-value", + "privateKey": "", + "realm": "plaintext-realm-value", + "signatureMethod": "PLAINTEXT", + "timestamp": "plaintext-timestamp-value", + "tokenKey": "plaintext-access-token-value", + "tokenSecret": "plaintext-token-secret-value", + "type": "oauth1", + "verifier": "", + "version": "1.0", + }, + "body": {}, + "description": "", + "headers": [], + "metaSortKey": 4, + "method": "GET", + "name": "Signature Method PLAINTEXT", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "https://insomnia.rest", + }, + { + "_id": "__REQ_4__", + "_type": "request", + "authentication": { + "callback": "", + "consumerKey": "sha256-consumer-key-value", + "consumerSecret": "sha256-consumer-secret-value", + "disabled": false, + "nonce": "sha256-nonce-value", + "privateKey": "", + "realm": "sha256-realm-value", + "signatureMethod": "HMAC-SHA256", + "timestamp": "sha256-timestamp-value", + "tokenKey": "sha256-access-token-value", + "tokenSecret": "sha256-token-secret-value", + "type": "oauth1", + "verifier": "", + "version": "1.0", + }, + "body": {}, + "description": "", + "headers": [], + "metaSortKey": 5, + "method": "GET", + "name": "Signature Method HMAC-SHA256", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "https://insomnia.rest", + }, + { + "_id": "__REQ_5__", + "_type": "request", + "authentication": { + "callback": "", + "consumerKey": "sha1-consumer-key-value", + "consumerSecret": "sha1-consumer-secret-value", + "disabled": false, + "nonce": "sha1-nonce-value", + "privateKey": "", + "realm": "sha1-realm-value", + "signatureMethod": "HMAC-SHA1", + "timestamp": "sha1-timestamp-value", + "tokenKey": "sha1-access-token-value", + "tokenSecret": "sha1-token-secret-value", + "type": "oauth1", + "verifier": "", + "version": "1.0", + }, + "body": {}, + "description": "", + "headers": [], + "metaSortKey": 6, + "method": "GET", + "name": "Signature Method HMAC-SHA1", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "https://insomnia.rest", + }, + ], +} +`; + +exports[`Fixtures Import postman oauth2_0-auth-v2_0-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__GRP_1__", + "_type": "request_group", + "description": "A collection for testing", + "environment": {}, + "name": "Oauth 2.0 Test", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": { + "accessTokenUrl": "", + "authorizationUrl": "", + "disabled": true, + "grantType": "authorization_code", + "password": "", + "type": "oauth2", + "username": "", + }, + "body": {}, + "description": "", + "headers": [], + "metaSortKey": 2, + "method": "GET", + "name": "Added to Request URL", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "https://insomnia.rest", + }, + { + "_id": "__REQ_2__", + "_type": "request", + "authentication": { + "accessTokenUrl": "", + "authorizationUrl": "", + "disabled": true, + "grantType": "authorization_code", + "password": "", + "type": "oauth2", + "username": "", + }, + "body": {}, + "description": "", + "headers": [], + "metaSortKey": 3, + "method": "GET", + "name": "Added to Request Headers", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "https://insomnia.rest", + }, + ], +} +`; + +exports[`Fixtures Import postman oauth2_0-auth-v2_1-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__GRP_1__", + "_type": "request_group", + "description": "", + "environment": {}, + "name": "oauth2", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": { + "accessTokenUrl": "test", + "authorizationUrl": "test", + "clientId": "test", + "clientSecret": "test", + "credentialsInBody": false, + "disabled": false, + "grantType": "authorization_code", + "password": "", + "pkceMethod": "", + "redirectUrl": "test", + "scope": "test", + "state": "test", + "tokenPrefix": "test", + "type": "oauth2", + "usePkce": undefined, + "username": "", + }, + "body": {}, + "description": "", + "headers": [], + "metaSortKey": 2, + "method": "GET", + "name": "auth code", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "mockbin.org/request/any", + }, + { + "_id": "__REQ_2__", + "_type": "request", + "authentication": { + "accessTokenUrl": "test", + "authorizationUrl": "test", + "clientId": "test", + "clientSecret": "test", + "credentialsInBody": false, + "disabled": false, + "grantType": "authorization_code", + "password": "", + "pkceMethod": "", + "redirectUrl": "test", + "scope": "test", + "state": "test", + "tokenPrefix": "test", + "type": "oauth2", + "usePkce": true, + "username": "", + }, + "body": {}, + "description": "", + "headers": [], + "metaSortKey": 3, + "method": "GET", + "name": "pkce", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "mockbin.org/request/any", + }, + { + "_id": "__REQ_3__", + "_type": "request", + "authentication": { + "accessTokenUrl": "test", + "authorizationUrl": "test", + "clientId": "test", + "clientSecret": "test", + "credentialsInBody": false, + "disabled": false, + "grantType": "implicit", + "password": "", + "pkceMethod": "", + "redirectUrl": "test", + "scope": "test", + "state": "test", + "tokenPrefix": "test", + "type": "oauth2", + "usePkce": undefined, + "username": "", + }, + "body": {}, + "description": "", + "headers": [], + "metaSortKey": 4, + "method": "GET", + "name": "implicit", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "mockbin.org/request/any", + }, + { + "_id": "__REQ_4__", + "_type": "request", + "authentication": { + "accessTokenUrl": "test", + "authorizationUrl": "test", + "clientId": "test", + "clientSecret": "test", + "credentialsInBody": false, + "disabled": false, + "grantType": "password", + "password": "test", + "pkceMethod": "", + "redirectUrl": "test", + "scope": "test", + "state": "test", + "tokenPrefix": "test", + "type": "oauth2", + "usePkce": undefined, + "username": "test", + }, + "body": {}, + "description": "", + "headers": [], + "metaSortKey": 5, + "method": "GET", + "name": "password", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "mockbin.org/request/any", + }, + { + "_id": "__REQ_5__", + "_type": "request", + "authentication": { + "accessTokenUrl": "test", + "authorizationUrl": "test", + "clientId": "test", + "clientSecret": "test", + "credentialsInBody": false, + "disabled": false, + "grantType": "client_credentials", + "password": "", + "pkceMethod": "", + "redirectUrl": "test", + "scope": "test", + "state": "test", + "tokenPrefix": "test", + "type": "oauth2", + "usePkce": undefined, + "username": "", + }, + "body": {}, + "description": "", + "headers": [], + "metaSortKey": 6, + "method": "GET", + "name": "client", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "mockbin.org/request/any", + }, + ], +} +`; + +exports[`Fixtures Import postman postman-export-oauth2-v2_1-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__GRP_1__", + "_type": "request_group", + "description": "", + "environment": {}, + "name": "Example collection", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": { + "accessTokenUrl": "exampleAccessTokenUrl", + "authorizationUrl": "exampleAuthorizeUrl", + "clientId": "exampleClientId", + "clientSecret": "exampleClientSecret", + "credentialsInBody": false, + "disabled": false, + "grantType": "authorization_code", + "password": "", + "pkceMethod": "S256", + "redirectUrl": "exampleCallbackUrl", + "scope": "", + "state": "", + "tokenPrefix": "", + "type": "oauth2", + "usePkce": undefined, + "username": "", + }, + "body": {}, + "description": "", + "headers": [], + "metaSortKey": 2, + "method": "GET", + "name": "Example request with OAuth2", + "parameters": [], + "parentId": "__GRP_1__", + "preRequestScript": "", + "url": "", + }, + ], +} +`; + +exports[`Fixtures Import postman-env basic-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__ENV_1__", + "_type": "environment", + "data": { + "foo": "production", + }, + "name": "Production Env", + "parentId": "__BASE_ENVIRONMENT_ID__", + }, + ], +} +`; + +exports[`Fixtures Import postman-env no-name-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__ENV_1__", + "_type": "environment", + "data": { + "foo": "production", + }, + "name": "Postman Environment", + "parentId": "__BASE_ENVIRONMENT_ID__", + }, + ], +} +`; + +exports[`Fixtures Import swagger2 dereferenced-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__WORKSPACE_ID__", + "_type": "workspace", + "description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key \`special-key\` to test the authorization filters.", + "name": "Swagger Petstore 1.0.0", + "parentId": null, + }, + { + "_id": "__BASE_ENVIRONMENT_ID__", + "_type": "environment", + "data": { + "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}", + }, + "name": "Base environment", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "env___BASE_ENVIRONMENT_ID___sub", + "_type": "environment", + "data": { + "base_path": "/v2", + "host": "petstore.swagger.io", + "scheme": "http", + }, + "name": "Swagger env", + "parentId": "__BASE_ENVIRONMENT_ID__", + }, + { + "_id": "fld___WORKSPACE_ID__1b034c38", + "_type": "request_group", + "description": "", + "environment": {}, + "name": "pet", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "fld___WORKSPACE_ID__3a21295d", + "_type": "request_group", + "description": "", + "environment": {}, + "name": "store", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "fld___WORKSPACE_ID__12dea96f", + "_type": "request_group", + "description": "", + "environment": {}, + "name": "user", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "addPet", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.client_id }}", + "disabled": false, + "grantType": "authorization_code", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": { + "mimeType": "application/json", + "text": "{ + "id": 0, + "category": { + "id": 0, + "name": "string" + }, + "name": "doggie", + "photoUrls": [ + "string" + ], + "tags": [ + { + "id": 0, + "name": "string" + } + ], + "status": "string" +}", + }, + "description": "", + "headers": [ + { + "disabled": false, + "name": "Content-Type", + "value": "application/json", + }, + ], + "method": "POST", + "name": "Add a new pet to the store", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet", + }, + { + "_id": "updatePet", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.client_id }}", + "disabled": false, + "grantType": "authorization_code", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": { + "mimeType": "application/json", + "text": "{ + "id": 0, + "category": { + "id": 0, + "name": "string" + }, + "name": "doggie", + "photoUrls": [ + "string" + ], + "tags": [ + { + "id": 0, + "name": "string" + } + ], + "status": "string" +}", + }, + "description": "", + "headers": [ + { + "disabled": false, + "name": "Content-Type", + "value": "application/json", + }, + ], + "method": "PUT", + "name": "Update an existing pet", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet", + }, + { + "_id": "findPetsByStatus", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.client_id }}", + "disabled": false, + "grantType": "authorization_code", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": {}, + "description": "Multiple status values can be provided with comma separated strings", + "headers": [], + "method": "GET", + "name": "Finds Pets by status", + "parameters": [ + { + "disabled": false, + "name": "status", + "value": "available", + }, + ], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/findByStatus", + }, + { + "_id": "findPetsByTags", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.client_id }}", + "disabled": false, + "grantType": "authorization_code", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": {}, + "description": "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", + "headers": [], + "method": "GET", + "name": "Finds Pets by tags", + "parameters": [ + { + "disabled": false, + "name": "tags", + "value": "string", + }, + ], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/findByTags", + }, + { + "_id": "getPetById", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "Returns a single pet", + "headers": [ + { + "disabled": false, + "name": "api_key", + "value": "{{ _.api_key }}", + }, + ], + "method": "GET", + "name": "Find pet by ID", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/{{ _.petId }}", + }, + { + "_id": "updatePetWithForm", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.client_id }}", + "disabled": false, + "grantType": "authorization_code", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": { + "mimeType": "application/x-www-form-urlencoded", + "params": [ + { + "disabled": true, + "name": "name", + "value": "string", + }, + { + "disabled": true, + "name": "status", + "value": "string", + }, + ], + }, + "description": "", + "headers": [ + { + "disabled": false, + "name": "Content-Type", + "value": "application/x-www-form-urlencoded", + }, + ], + "method": "POST", + "name": "Updates a pet in the store with form data", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/{{ _.petId }}", + }, + { + "_id": "deletePet", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.client_id }}", + "disabled": false, + "grantType": "authorization_code", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": {}, + "description": "", + "headers": [ + { + "disabled": true, + "name": "api_key", + "value": "string", + }, + ], + "method": "DELETE", + "name": "Deletes a pet", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/{{ _.petId }}", + }, + { + "_id": "uploadFile", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.client_id }}", + "disabled": false, + "grantType": "authorization_code", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": { + "mimeType": "multipart/form-data", + "params": [ + { + "disabled": true, + "name": "additionalMetadata", + "value": "string", + }, + { + "disabled": true, + "name": "file", + "type": "file", + }, + ], + }, + "description": "", + "headers": [ + { + "disabled": false, + "name": "Content-Type", + "value": "multipart/form-data", + }, + ], + "method": "POST", + "name": "uploads an image", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/{{ _.petId }}/uploadImage", + }, + { + "_id": "getInventory", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "Returns a map of status codes to quantities", + "headers": [ + { + "disabled": false, + "name": "api_key", + "value": "{{ _.api_key }}", + }, + ], + "method": "GET", + "name": "Returns pet inventories by status", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__3a21295d", + "url": "{{ _.base_url }}/store/inventory", + }, + { + "_id": "placeOrder", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "", + "headers": [], + "method": "POST", + "name": "Place an order for a pet", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__3a21295d", + "url": "{{ _.base_url }}/store/order", + }, + { + "_id": "getOrderById", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions", + "headers": [], + "method": "GET", + "name": "Find purchase order by ID", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__3a21295d", + "url": "{{ _.base_url }}/store/order/{{ _.orderId }}", + }, + { + "_id": "deleteOrder", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors", + "headers": [], + "method": "DELETE", + "name": "Delete purchase order by ID", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__3a21295d", + "url": "{{ _.base_url }}/store/order/{{ _.orderId }}", + }, + { + "_id": "createUser", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "This can only be done by the logged in user.", + "headers": [], + "method": "POST", + "name": "Create user", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user", + }, + { + "_id": "createUsersWithArrayInput", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "", + "headers": [], + "method": "POST", + "name": "Creates list of users with given input array", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/createWithArray", + }, + { + "_id": "createUsersWithListInput", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "", + "headers": [], + "method": "POST", + "name": "Creates list of users with given input array", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/createWithList", + }, + { + "_id": "loginUser", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "", + "headers": [], + "method": "GET", + "name": "Logs user into the system", + "parameters": [ + { + "disabled": false, + "name": "username", + "value": "string", + }, + { + "disabled": false, + "name": "password", + "value": "string", + }, + ], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/login", + }, + { + "_id": "logoutUser", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "", + "headers": [], + "method": "GET", + "name": "Logs out current logged in user session", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/logout", + }, + { + "_id": "getUserByName", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "", + "headers": [], + "method": "GET", + "name": "Get user by user name", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/{{ _.username }}", + }, + { + "_id": "updateUser", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "This can only be done by the logged in user.", + "headers": [], + "method": "PUT", + "name": "Updated user", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/{{ _.username }}", + }, + { + "_id": "deleteUser", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "This can only be done by the logged in user.", + "headers": [], + "method": "DELETE", + "name": "Delete user", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/{{ _.username }}", + }, + ], +} +`; + +exports[`Fixtures Import swagger2 dereferenced-with-tags-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__WORKSPACE_ID__", + "_type": "workspace", + "description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key \`special-key\` to test the authorization filters.", + "name": "Swagger Petstore 1.0.0", + "parentId": null, + }, + { + "_id": "__BASE_ENVIRONMENT_ID__", + "_type": "environment", + "data": { + "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}", + }, + "name": "Base environment", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "env___BASE_ENVIRONMENT_ID___sub", + "_type": "environment", + "data": { + "base_path": "/v2", + "host": "petstore.swagger.io", + "scheme": "http", + }, + "name": "Swagger env", + "parentId": "__BASE_ENVIRONMENT_ID__", + }, + { + "_id": "fld___WORKSPACE_ID__1b034c38", + "_type": "request_group", + "description": "Everything about your Pets", + "environment": {}, + "name": "pet", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "fld___WORKSPACE_ID__3a21295d", + "_type": "request_group", + "description": "Access to Petstore orders", + "environment": {}, + "name": "store", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "fld___WORKSPACE_ID__12dea96f", + "_type": "request_group", + "description": "Operations about user", + "environment": {}, + "name": "user", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "addPet", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.client_id }}", + "disabled": false, + "grantType": "authorization_code", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": { + "mimeType": "application/json", + "text": "{ + "id": 0, + "category": { + "id": 0, + "name": "string" + }, + "name": "doggie", + "photoUrls": [ + "string" + ], + "tags": [ + { + "id": 0, + "name": "string" + } + ], + "status": "string" +}", + }, + "description": "", + "headers": [ + { + "disabled": false, + "name": "Content-Type", + "value": "application/json", + }, + ], + "method": "POST", + "name": "Add a new pet to the store", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet", + }, + { + "_id": "updatePet", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.client_id }}", + "disabled": false, + "grantType": "authorization_code", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": { + "mimeType": "application/json", + "text": "{ + "id": 0, + "category": { + "id": 0, + "name": "string" + }, + "name": "doggie", + "photoUrls": [ + "string" + ], + "tags": [ + { + "id": 0, + "name": "string" + } + ], + "status": "string" +}", + }, + "description": "", + "headers": [ + { + "disabled": false, + "name": "Content-Type", + "value": "application/json", + }, + ], + "method": "PUT", + "name": "Update an existing pet", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet", + }, + { + "_id": "findPetsByStatus", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.client_id }}", + "disabled": false, + "grantType": "authorization_code", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": {}, + "description": "Multiple status values can be provided with comma separated strings", + "headers": [], + "method": "GET", + "name": "Finds Pets by status", + "parameters": [ + { + "disabled": false, + "name": "status", + "value": "available", + }, + ], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/findByStatus", + }, + { + "_id": "findPetsByTags", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.client_id }}", + "disabled": false, + "grantType": "authorization_code", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": {}, + "description": "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", + "headers": [], + "method": "GET", + "name": "Finds Pets by tags", + "parameters": [ + { + "disabled": false, + "name": "tags", + "value": "string", + }, + ], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/findByTags", + }, + { + "_id": "getPetById", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "Returns a single pet", + "headers": [ + { + "disabled": false, + "name": "api_key", + "value": "{{ _.api_key }}", + }, + ], + "method": "GET", + "name": "Find pet by ID", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/{{ _.petId }}", + }, + { + "_id": "updatePetWithForm", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.client_id }}", + "disabled": false, + "grantType": "authorization_code", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": { + "mimeType": "application/x-www-form-urlencoded", + "params": [ + { + "disabled": true, + "name": "name", + "value": "string", + }, + { + "disabled": true, + "name": "status", + "value": "string", + }, + ], + }, + "description": "", + "headers": [ + { + "disabled": false, + "name": "Content-Type", + "value": "application/x-www-form-urlencoded", + }, + ], + "method": "POST", + "name": "Updates a pet in the store with form data", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/{{ _.petId }}", + }, + { + "_id": "deletePet", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.client_id }}", + "disabled": false, + "grantType": "authorization_code", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": {}, + "description": "", + "headers": [ + { + "disabled": true, + "name": "api_key", + "value": "string", + }, + ], + "method": "DELETE", + "name": "Deletes a pet", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/{{ _.petId }}", + }, + { + "_id": "uploadFile", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.client_id }}", + "disabled": false, + "grantType": "authorization_code", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": { + "mimeType": "multipart/form-data", + "params": [ + { + "disabled": true, + "name": "additionalMetadata", + "value": "string", + }, + { + "disabled": true, + "name": "file", + "type": "file", + }, + ], + }, + "description": "", + "headers": [ + { + "disabled": false, + "name": "Content-Type", + "value": "multipart/form-data", + }, + ], + "method": "POST", + "name": "uploads an image", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/{{ _.petId }}/uploadImage", + }, + { + "_id": "getInventory", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "Returns a map of status codes to quantities", + "headers": [ + { + "disabled": false, + "name": "api_key", + "value": "{{ _.api_key }}", + }, + ], + "method": "GET", + "name": "Returns pet inventories by status", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__3a21295d", + "url": "{{ _.base_url }}/store/inventory", + }, + { + "_id": "placeOrder", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "", + "headers": [], + "method": "POST", + "name": "Place an order for a pet", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__3a21295d", + "url": "{{ _.base_url }}/store/order", + }, + { + "_id": "getOrderById", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions", + "headers": [], + "method": "GET", + "name": "Find purchase order by ID", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__3a21295d", + "url": "{{ _.base_url }}/store/order/{{ _.orderId }}", + }, + { + "_id": "deleteOrder", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors", + "headers": [], + "method": "DELETE", + "name": "Delete purchase order by ID", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__3a21295d", + "url": "{{ _.base_url }}/store/order/{{ _.orderId }}", + }, + { + "_id": "createUser", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "This can only be done by the logged in user.", + "headers": [], + "method": "POST", + "name": "Create user", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user", + }, + { + "_id": "createUsersWithArrayInput", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "", + "headers": [], + "method": "POST", + "name": "Creates list of users with given input array", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/createWithArray", + }, + { + "_id": "createUsersWithListInput", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "", + "headers": [], + "method": "POST", + "name": "Creates list of users with given input array", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/createWithList", + }, + { + "_id": "loginUser", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "", + "headers": [], + "method": "GET", + "name": "Logs user into the system", + "parameters": [ + { + "disabled": false, + "name": "username", + "value": "string", + }, + { + "disabled": false, + "name": "password", + "value": "string", + }, + ], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/login", + }, + { + "_id": "logoutUser", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "", + "headers": [], + "method": "GET", + "name": "Logs out current logged in user session", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/logout", + }, + { + "_id": "getUserByName", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "", + "headers": [], + "method": "GET", + "name": "Get user by user name", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/{{ _.username }}", + }, + { + "_id": "updateUser", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "This can only be done by the logged in user.", + "headers": [], + "method": "PUT", + "name": "Updated user", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/{{ _.username }}", + }, + { + "_id": "deleteUser", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "This can only be done by the logged in user.", + "headers": [], + "method": "DELETE", + "name": "Delete user", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/{{ _.username }}", + }, + ], +} +`; + +exports[`Fixtures Import swagger2 petstore-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__WORKSPACE_ID__", + "_type": "workspace", + "description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key \`special-key\` to test the authorization filters.", + "name": "Swagger Petstore 1.0.0", + "parentId": null, + }, + { + "_id": "__BASE_ENVIRONMENT_ID__", + "_type": "environment", + "data": { + "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}", + }, + "name": "Base environment", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "env___BASE_ENVIRONMENT_ID___sub", + "_type": "environment", + "data": { + "base_path": "/v2", + "host": "petstore.swagger.io", + "scheme": "http", + }, + "name": "Swagger env", + "parentId": "__BASE_ENVIRONMENT_ID__", + }, + { + "_id": "fld___WORKSPACE_ID__1b034c38", + "_type": "request_group", + "description": "", + "environment": {}, + "name": "pet", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "fld___WORKSPACE_ID__3a21295d", + "_type": "request_group", + "description": "", + "environment": {}, + "name": "store", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "fld___WORKSPACE_ID__12dea96f", + "_type": "request_group", + "description": "", + "environment": {}, + "name": "user", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "addPet", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.client_id }}", + "disabled": false, + "grantType": "authorization_code", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": { + "mimeType": "application/json", + "text": "{ + "id": 0, + "category": { + "id": 0, + "name": "string" + }, + "name": "doggie", + "photoUrls": [ + "string" + ], + "tags": [ + { + "id": 0, + "name": "string" + } + ], + "status": "string" +}", + }, + "description": "", + "headers": [ + { + "disabled": false, + "name": "Content-Type", + "value": "application/json", + }, + ], + "method": "POST", + "name": "Add a new pet to the store", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet", + }, + { + "_id": "updatePet", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.client_id }}", + "disabled": false, + "grantType": "authorization_code", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": { + "mimeType": "application/json", + "text": "{ + "id": 0, + "category": { + "id": 0, + "name": "string" + }, + "name": "doggie", + "photoUrls": [ + "string" + ], + "tags": [ + { + "id": 0, + "name": "string" + } + ], + "status": "string" +}", + }, + "description": "", + "headers": [ + { + "disabled": false, + "name": "Content-Type", + "value": "application/json", + }, + ], + "method": "PUT", + "name": "Update an existing pet", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet", + }, + { + "_id": "findPetsByStatus", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.client_id }}", + "disabled": false, + "grantType": "authorization_code", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": {}, + "description": "Multiple status values can be provided with comma separated strings", + "headers": [], + "method": "GET", + "name": "Finds Pets by status", + "parameters": [ + { + "disabled": false, + "name": "status", + "value": "available", + }, + ], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/findByStatus", + }, + { + "_id": "findPetsByTags", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.client_id }}", + "disabled": false, + "grantType": "authorization_code", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": {}, + "description": "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", + "headers": [], + "method": "GET", + "name": "Finds Pets by tags", + "parameters": [ + { + "disabled": false, + "name": "tags", + "value": "string", + }, + ], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/findByTags", + }, + { + "_id": "getPetById", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "Returns a single pet", + "headers": [ + { + "disabled": false, + "name": "api_key", + "value": "{{ _.api_key }}", + }, + ], + "method": "GET", + "name": "Find pet by ID", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/{{ _.petId }}", + }, + { + "_id": "updatePetWithForm", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.client_id }}", + "disabled": false, + "grantType": "authorization_code", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": { + "mimeType": "application/x-www-form-urlencoded", + "params": [ + { + "disabled": true, + "name": "name", + "value": "string", + }, + { + "disabled": true, + "name": "status", + "value": "string", + }, + ], + }, + "description": "", + "headers": [ + { + "disabled": false, + "name": "Content-Type", + "value": "application/x-www-form-urlencoded", + }, + ], + "method": "POST", + "name": "Updates a pet in the store with form data", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/{{ _.petId }}", + }, + { + "_id": "deletePet", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.client_id }}", + "disabled": false, + "grantType": "authorization_code", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": {}, + "description": "", + "headers": [ + { + "disabled": true, + "name": "api_key", + "value": "string", + }, + ], + "method": "DELETE", + "name": "Deletes a pet", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/{{ _.petId }}", + }, + { + "_id": "uploadFile", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.client_id }}", + "disabled": false, + "grantType": "authorization_code", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": { + "mimeType": "multipart/form-data", + "params": [ + { + "disabled": true, + "name": "additionalMetadata", + "value": "string", + }, + { + "disabled": true, + "name": "file", + "type": "file", + }, + ], + }, + "description": "", + "headers": [ + { + "disabled": false, + "name": "Content-Type", + "value": "multipart/form-data", + }, + ], + "method": "POST", + "name": "uploads an image", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/{{ _.petId }}/uploadImage", + }, + { + "_id": "getInventory", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "Returns a map of status codes to quantities", + "headers": [ + { + "disabled": false, + "name": "api_key", + "value": "{{ _.api_key }}", + }, + ], + "method": "GET", + "name": "Returns pet inventories by status", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__3a21295d", + "url": "{{ _.base_url }}/store/inventory", + }, + { + "_id": "placeOrder", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "", + "headers": [], + "method": "POST", + "name": "Place an order for a pet", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__3a21295d", + "url": "{{ _.base_url }}/store/order", + }, + { + "_id": "getOrderById", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions", + "headers": [], + "method": "GET", + "name": "Find purchase order by ID", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__3a21295d", + "url": "{{ _.base_url }}/store/order/{{ _.orderId }}", + }, + { + "_id": "deleteOrder", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors", + "headers": [], + "method": "DELETE", + "name": "Delete purchase order by ID", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__3a21295d", + "url": "{{ _.base_url }}/store/order/{{ _.orderId }}", + }, + { + "_id": "createUser", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "This can only be done by the logged in user.", + "headers": [], + "method": "POST", + "name": "Create user", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user", + }, + { + "_id": "createUsersWithArrayInput", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "", + "headers": [], + "method": "POST", + "name": "Creates list of users with given input array", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/createWithArray", + }, + { + "_id": "createUsersWithListInput", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "", + "headers": [], + "method": "POST", + "name": "Creates list of users with given input array", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/createWithList", + }, + { + "_id": "loginUser", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "", + "headers": [], + "method": "GET", + "name": "Logs user into the system", + "parameters": [ + { + "disabled": false, + "name": "username", + "value": "string", + }, + { + "disabled": false, + "name": "password", + "value": "string", + }, + ], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/login", + }, + { + "_id": "logoutUser", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "", + "headers": [], + "method": "GET", + "name": "Logs out current logged in user session", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/logout", + }, + { + "_id": "getUserByName", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "", + "headers": [], + "method": "GET", + "name": "Get user by user name", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/{{ _.username }}", + }, + { + "_id": "updateUser", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "This can only be done by the logged in user.", + "headers": [], + "method": "PUT", + "name": "Updated user", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/{{ _.username }}", + }, + { + "_id": "deleteUser", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "This can only be done by the logged in user.", + "headers": [], + "method": "DELETE", + "name": "Delete user", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/{{ _.username }}", + }, + ], +} +`; + +exports[`Fixtures Import swagger2 petstore-with-tags-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__WORKSPACE_ID__", + "_type": "workspace", + "description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key \`special-key\` to test the authorization filters.", + "name": "Swagger Petstore 1.0.0", + "parentId": null, + }, + { + "_id": "__BASE_ENVIRONMENT_ID__", + "_type": "environment", + "data": { + "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}", + }, + "name": "Base environment", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "env___BASE_ENVIRONMENT_ID___sub", + "_type": "environment", + "data": { + "base_path": "/v2", + "host": "petstore.swagger.io", + "scheme": "http", + }, + "name": "Swagger env", + "parentId": "__BASE_ENVIRONMENT_ID__", + }, + { + "_id": "fld___WORKSPACE_ID__1b034c38", + "_type": "request_group", + "description": "Everything about your Pets", + "environment": {}, + "name": "pet", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "fld___WORKSPACE_ID__3a21295d", + "_type": "request_group", + "description": "Access to Petstore orders", + "environment": {}, + "name": "store", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "fld___WORKSPACE_ID__12dea96f", + "_type": "request_group", + "description": "Operations about user", + "environment": {}, + "name": "user", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "addPet", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.client_id }}", + "disabled": false, + "grantType": "authorization_code", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": { + "mimeType": "application/json", + "text": "{ + "id": 0, + "category": { + "id": 0, + "name": "string" + }, + "name": "doggie", + "photoUrls": [ + "string" + ], + "tags": [ + { + "id": 0, + "name": "string" + } + ], + "status": "string" +}", + }, + "description": "", + "headers": [ + { + "disabled": false, + "name": "Content-Type", + "value": "application/json", + }, + ], + "method": "POST", + "name": "Add a new pet to the store", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet", + }, + { + "_id": "updatePet", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.client_id }}", + "disabled": false, + "grantType": "authorization_code", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": { + "mimeType": "application/json", + "text": "{ + "id": 0, + "category": { + "id": 0, + "name": "string" + }, + "name": "doggie", + "photoUrls": [ + "string" + ], + "tags": [ + { + "id": 0, + "name": "string" + } + ], + "status": "string" +}", + }, + "description": "", + "headers": [ + { + "disabled": false, + "name": "Content-Type", + "value": "application/json", + }, + ], + "method": "PUT", + "name": "Update an existing pet", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet", + }, + { + "_id": "findPetsByStatus", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.client_id }}", + "disabled": false, + "grantType": "authorization_code", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": {}, + "description": "Multiple status values can be provided with comma separated strings", + "headers": [], + "method": "GET", + "name": "Finds Pets by status", + "parameters": [ + { + "disabled": false, + "name": "status", + "value": "available", + }, + ], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/findByStatus", + }, + { + "_id": "findPetsByTags", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.client_id }}", + "disabled": false, + "grantType": "authorization_code", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": {}, + "description": "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", + "headers": [], + "method": "GET", + "name": "Finds Pets by tags", + "parameters": [ + { + "disabled": false, + "name": "tags", + "value": "string", + }, + ], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/findByTags", + }, + { + "_id": "getPetById", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "Returns a single pet", + "headers": [ + { + "disabled": false, + "name": "api_key", + "value": "{{ _.api_key }}", + }, + ], + "method": "GET", + "name": "Find pet by ID", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/{{ _.petId }}", + }, + { + "_id": "updatePetWithForm", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.client_id }}", + "disabled": false, + "grantType": "authorization_code", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": { + "mimeType": "application/x-www-form-urlencoded", + "params": [ + { + "disabled": true, + "name": "name", + "value": "string", + }, + { + "disabled": true, + "name": "status", + "value": "string", + }, + ], + }, + "description": "", + "headers": [ + { + "disabled": false, + "name": "Content-Type", + "value": "application/x-www-form-urlencoded", + }, + ], + "method": "POST", + "name": "Updates a pet in the store with form data", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/{{ _.petId }}", + }, + { + "_id": "deletePet", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.client_id }}", + "disabled": false, + "grantType": "authorization_code", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": {}, + "description": "", + "headers": [ + { + "disabled": true, + "name": "api_key", + "value": "string", + }, + ], + "method": "DELETE", + "name": "Deletes a pet", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/{{ _.petId }}", + }, + { + "_id": "uploadFile", + "_type": "request", + "authentication": { + "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", + "clientId": "{{ _.client_id }}", + "disabled": false, + "grantType": "authorization_code", + "scope": "write:pets read:pets", + "type": "oauth2", + }, + "body": { + "mimeType": "multipart/form-data", + "params": [ + { + "disabled": true, + "name": "additionalMetadata", + "value": "string", + }, + { + "disabled": true, + "name": "file", + "type": "file", + }, + ], + }, + "description": "", + "headers": [ + { + "disabled": false, + "name": "Content-Type", + "value": "multipart/form-data", + }, + ], + "method": "POST", + "name": "uploads an image", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__1b034c38", + "url": "{{ _.base_url }}/pet/{{ _.petId }}/uploadImage", + }, + { + "_id": "getInventory", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "Returns a map of status codes to quantities", + "headers": [ + { + "disabled": false, + "name": "api_key", + "value": "{{ _.api_key }}", + }, + ], + "method": "GET", + "name": "Returns pet inventories by status", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__3a21295d", + "url": "{{ _.base_url }}/store/inventory", + }, + { + "_id": "placeOrder", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "", + "headers": [], + "method": "POST", + "name": "Place an order for a pet", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__3a21295d", + "url": "{{ _.base_url }}/store/order", + }, + { + "_id": "getOrderById", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions", + "headers": [], + "method": "GET", + "name": "Find purchase order by ID", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__3a21295d", + "url": "{{ _.base_url }}/store/order/{{ _.orderId }}", + }, + { + "_id": "deleteOrder", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors", + "headers": [], + "method": "DELETE", + "name": "Delete purchase order by ID", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__3a21295d", + "url": "{{ _.base_url }}/store/order/{{ _.orderId }}", + }, + { + "_id": "createUser", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "This can only be done by the logged in user.", + "headers": [], + "method": "POST", + "name": "Create user", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user", + }, + { + "_id": "createUsersWithArrayInput", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "", + "headers": [], + "method": "POST", + "name": "Creates list of users with given input array", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/createWithArray", + }, + { + "_id": "createUsersWithListInput", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "", + "headers": [], + "method": "POST", + "name": "Creates list of users with given input array", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/createWithList", + }, + { + "_id": "loginUser", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "", + "headers": [], + "method": "GET", + "name": "Logs user into the system", + "parameters": [ + { + "disabled": false, + "name": "username", + "value": "string", + }, + { + "disabled": false, + "name": "password", + "value": "string", + }, + ], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/login", + }, + { + "_id": "logoutUser", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "", + "headers": [], + "method": "GET", + "name": "Logs out current logged in user session", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/logout", + }, + { + "_id": "getUserByName", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "", + "headers": [], + "method": "GET", + "name": "Get user by user name", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/{{ _.username }}", + }, + { + "_id": "updateUser", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "This can only be done by the logged in user.", + "headers": [], + "method": "PUT", + "name": "Updated user", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/{{ _.username }}", + }, + { + "_id": "deleteUser", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "This can only be done by the logged in user.", + "headers": [], + "method": "DELETE", + "name": "Delete user", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__12dea96f", + "url": "{{ _.base_url }}/user/{{ _.username }}", + }, + ], +} +`; + +exports[`Fixtures Import swagger2 petstore-yml-input.yml 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__WORKSPACE_ID__", + "_type": "workspace", + "description": "", + "name": "Swagger Petstore 1.0.0", + "parentId": null, + }, + { + "_id": "__BASE_ENVIRONMENT_ID__", + "_type": "environment", + "data": { + "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}", + }, + "name": "Base environment", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "env___BASE_ENVIRONMENT_ID___sub", + "_type": "environment", + "data": { + "base_path": "/v1", + "host": "petstore.swagger.io", + "scheme": "http", + }, + "name": "Swagger env", + "parentId": "__BASE_ENVIRONMENT_ID__", + }, + { + "_id": "fld___WORKSPACE_ID__a8acce24", + "_type": "request_group", + "description": "", + "environment": {}, + "name": "pets", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "listPets", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "", + "headers": [], + "method": "GET", + "name": "List all pets", + "parameters": [ + { + "disabled": true, + "name": "limit", + "value": "0", + }, + ], + "parentId": "fld___WORKSPACE_ID__a8acce24", + "url": "{{ _.base_url }}/pets", + }, + { + "_id": "createPets", + "_type": "request", + "authentication": {}, + "body": { + "mimeType": "application/json", + "text": "{ + "id": 0, + "name": "string", + "tag": "string" +}", + }, + "description": "", + "headers": [ + { + "disabled": false, + "name": "Content-Type", + "value": "application/json", + }, + ], + "method": "POST", + "name": "Create a pet", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__a8acce24", + "url": "{{ _.base_url }}/pets", + }, + { + "_id": "showPetById", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "This is a longer description", + "headers": [], + "method": "GET", + "name": "Info for a specific pet", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__a8acce24", + "url": "{{ _.base_url }}/pets/{{ _.petId }}", + }, + { + "_id": "updatePet", + "_type": "request", + "authentication": {}, + "body": { + "mimeType": "application/x-www-form-urlencoded", + "params": [ + { + "disabled": false, + "name": "name", + "value": "string", + }, + ], + }, + "description": "", + "headers": [ + { + "disabled": false, + "name": "Content-Type", + "value": "application/x-www-form-urlencoded", + }, + ], + "method": "POST", + "name": "Update specific pet", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__a8acce24", + "url": "{{ _.base_url }}/pets/{{ _.petId }}", + }, + ], +} +`; + +exports[`Fixtures Import swagger2 petstore-yml-with-tags-input.yml 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__WORKSPACE_ID__", + "_type": "workspace", + "description": "", + "name": "Swagger Petstore 1.0.0", + "parentId": null, + }, + { + "_id": "__BASE_ENVIRONMENT_ID__", + "_type": "environment", + "data": { + "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}", + }, + "name": "Base environment", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "env___BASE_ENVIRONMENT_ID___sub", + "_type": "environment", + "data": { + "base_path": "/v1", + "host": "petstore.swagger.io", + "scheme": "http", + }, + "name": "Swagger env", + "parentId": "__BASE_ENVIRONMENT_ID__", + }, + { + "_id": "fld___WORKSPACE_ID__a8acce24", + "_type": "request_group", + "description": "Everything about your Pets", + "environment": {}, + "name": "pets", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "listPets", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "", + "headers": [], + "method": "GET", + "name": "List all pets", + "parameters": [ + { + "disabled": true, + "name": "limit", + "value": "0", + }, + ], + "parentId": "fld___WORKSPACE_ID__a8acce24", + "url": "{{ _.base_url }}/pets", + }, + { + "_id": "createPets", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "", + "headers": [], + "method": "POST", + "name": "Create a pet", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__a8acce24", + "url": "{{ _.base_url }}/pets", + }, + { + "_id": "showPetById", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "", + "headers": [], + "method": "GET", + "name": "Info for a specific pet", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__a8acce24", + "url": "{{ _.base_url }}/pets/{{ _.petId }}", + }, + ], +} +`; + +exports[`Fixtures Import swagger2 user-example-input.json 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__WORKSPACE_ID__", + "_type": "workspace", + "description": "", + "name": "docs v1", + "parentId": null, + }, + { + "_id": "__BASE_ENVIRONMENT_ID__", + "_type": "environment", + "data": { + "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}", + }, + "name": "Base environment", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "env___BASE_ENVIRONMENT_ID___sub", + "_type": "environment", + "data": { + "base_path": "", + "host": "", + "scheme": "http", + }, + "name": "Swagger env", + "parentId": "__BASE_ENVIRONMENT_ID__", + }, + { + "_id": "fld___WORKSPACE_ID__e214b8a2", + "_type": "request_group", + "description": "", + "environment": {}, + "name": "Document", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "ApiId", + "_type": "request", + "authentication": {}, + "body": {}, + "description": "", + "headers": [], + "method": "GET", + "name": "Some list", + "parameters": [], + "parentId": "fld___WORKSPACE_ID__e214b8a2", + "url": "{{ _.base_url }}/api/list", + }, + ], +} +`; + +exports[`Fixtures Import wsdl addition-input.wsdl 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__GRP_1__", + "_type": "request_group", + "description": "", + "environment": {}, + "name": "Calculator", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "__GRP_2__", + "_type": "request_group", + "description": "", + "environment": {}, + "name": "Calculator", + "parentId": "__GRP_1__", + }, + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": {}, + "body": { + "mimeType": "text/xml", + "text": " + + + + + + string + string + string + string + + + string + string + + + + + + 3 + 3 + + +", + }, + "description": "", + "headers": [ + { + "name": "SOAPAction", + "value": "http://tempuri.org/Add", + }, + { + "name": "Content-Type", + "value": "text/xml", + }, + { + "name": "Accept", + "value": "application/xml", + }, + ], + "metaSortKey": 2, + "method": "POST", + "name": "Add", + "parameters": [], + "parentId": "__GRP_2__", + "preRequestScript": "", + "url": "http://www.dneonline.com/calculator.asmx", + }, + ], +} +`; + +exports[`Fixtures Import wsdl calculator-input.wsdl 1`] = ` +{ + "__export_date": "", + "__export_format": 4, + "__export_source": "insomnia.importers:v0.1.0", + "_type": "export", + "resources": [ + { + "_id": "__GRP_1__", + "_type": "request_group", + "description": "", + "environment": {}, + "name": "Calculator", + "parentId": "__WORKSPACE_ID__", + }, + { + "_id": "__GRP_2__", + "_type": "request_group", + "description": "", + "environment": {}, + "name": "Calculator", + "parentId": "__GRP_1__", + }, + { + "_id": "__REQ_1__", + "_type": "request", + "authentication": {}, + "body": { + "mimeType": "text/xml", + "text": " + + + + + + string + string + string + string + + + string + string + + + + + + 3 + 3 + + +", + }, + "description": "", + "headers": [ + { + "name": "SOAPAction", + "value": "http://tempuri.org/Add", + }, + { + "name": "Content-Type", + "value": "text/xml", + }, + { + "name": "Accept", + "value": "application/xml", + }, + ], + "metaSortKey": 2, + "method": "POST", + "name": "Add", + "parameters": [], + "parentId": "__GRP_2__", + "preRequestScript": "", + "url": "http://www.dneonline.com/calculator.asmx", + }, + { + "_id": "__REQ_2__", + "_type": "request", + "authentication": {}, + "body": { + "mimeType": "text/xml", + "text": " + + + + + + string + string + string + string + + + string + string + + + + + + 3 + 3 + + +", + }, + "description": "", + "headers": [ + { + "name": "SOAPAction", + "value": "http://tempuri.org/Subtract", + }, + { + "name": "Content-Type", + "value": "text/xml", + }, + { + "name": "Accept", + "value": "application/xml", + }, + ], + "metaSortKey": 3, + "method": "POST", + "name": "Subtract", + "parameters": [], + "parentId": "__GRP_2__", + "preRequestScript": "", + "url": "http://www.dneonline.com/calculator.asmx", + }, + { + "_id": "__REQ_3__", + "_type": "request", + "authentication": {}, + "body": { + "mimeType": "text/xml", + "text": " + + + + + + string + string + string + string + + + string + string + + + + + + 3 + 3 + + +", + }, + "description": "", + "headers": [ + { + "name": "SOAPAction", + "value": "http://tempuri.org/Multiply", + }, + { + "name": "Content-Type", + "value": "text/xml", + }, + { + "name": "Accept", + "value": "application/xml", + }, + ], + "metaSortKey": 4, + "method": "POST", + "name": "Multiply", + "parameters": [], + "parentId": "__GRP_2__", + "preRequestScript": "", + "url": "http://www.dneonline.com/calculator.asmx", + }, + { + "_id": "__REQ_4__", + "_type": "request", + "authentication": {}, + "body": { + "mimeType": "text/xml", + "text": " + + + + + + string + string + string + string + + + string + string + + + + + + 3 + 3 + + +", + }, + "description": "", + "headers": [ + { + "name": "SOAPAction", + "value": "http://tempuri.org/Divide", + }, + { + "name": "Content-Type", + "value": "text/xml", + }, + { + "name": "Accept", + "value": "application/xml", + }, + ], + "metaSortKey": 5, + "method": "POST", + "name": "Divide", + "parameters": [], + "parentId": "__GRP_2__", + "preRequestScript": "", + "url": "http://www.dneonline.com/calculator.asmx", + }, + ], +} +`; diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/curl/complex-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/curl/complex-output.json deleted file mode 100755 index ca58c58ff0..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/curl/complex-output.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2016-11-18T22:34:51.526Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__WORKSPACE_ID__", - "url": "http://localhost:8000/api/v1/send", - "name": "http://localhost:8000/api/v1/send", - "method": "POST", - "body": { - "mimeType": "application/json", - "text": "{\"email_id\": \"tem_123\"}" - }, - "parameters": [], - "headers": [ - { - "name": "x-custom-header", - "value": "foo bar" - }, - { - "name": "content-type", - "value": "application/json" - }, - { - "name": "Cookie", - "value": "foo=bar; NID=91=iOf1sU9Ovlns9Dzn2Ipz05syr2K4AlZ4Kgp84eRVLf3_6DgcNrkqpWg4lfUvCB5cNxD26t" - }, - { - "name": "another-header", - "value": "foo" - } - ], - "authentication": { - "username": "My User", - "password": "My:Secret:Password" - } - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/curl/dollar-sign-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/curl/dollar-sign-output.json deleted file mode 100644 index f2ec7492af..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/curl/dollar-sign-output.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2016-11-18T22:34:51.526Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__WORKSPACE_ID__", - "url": "https://test.dk", - "name": "https://test.dk", - "method": "POST", - "body": { - "mimeType": "", - "text": "{\"key\":\"TEST\",\"websiteId\":2,\"storeId\":4,\"remove\":true,\"coupon\":{\"code\":\"erwrwer\"}}" - }, - "parameters": [], - "headers": [ - { - "name": "Origin", - "value": "https://test.dk" - }, - { - "name": "Accept-Encoding", - "value": "gzip, deflate, br" - }, - { - "name": "Accept-Language", - "value": "en-US,en;q=0.9,da-DK;q=0.8,da;q=0.7,mt;q=0.6" - }, - { - "name": "Cookie", - "value": "CookieTestConsent={stamp:\\xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=='%2Cnecessary..." - }, - { - "name": "Connection", - "value": "keep-alive" - }, - { - "name": "Pragma", - "value": "no-cache" - } - ], - "authentication": {} - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/curl/form-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/curl/form-output.json deleted file mode 100755 index 98fd788853..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/curl/form-output.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2016-11-18T22:34:51.526Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__WORKSPACE_ID__", - "url": "https://insomnia.rest/signup", - "name": "https://insomnia.rest/signup", - "method": "POST", - "body": { - "mimeType": "multipart/form-data", - "params": [ - { - "name": "file", - "type": "file", - "fileName": "/home/user/file.txt" - }, - { - "type": "text", - "name": "foo", - "value": "bar" - }, - { - "type": "text", - "name": "baz", - "value": "qux" - } - ] - }, - "parameters": [], - "headers": [], - "authentication": {} - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/curl/from-chrome-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/curl/from-chrome-output.json deleted file mode 100755 index 9880353db6..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/curl/from-chrome-output.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2016-11-18T22:34:51.526Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__WORKSPACE_ID__", - "url": "http://requestb.in/api/v1/bins", - "name": "http://requestb.in/api/v1/bins", - "method": "POST", - "body": { - "mimeType": "application/x-www-form-urlencoded", - "params": [ - { - "name": "private", - "value": "false" - } - ] - }, - "parameters": [], - "headers": [ - { - "name": "Cookie", - "value": "__cfduid=d9e3031f00abce97dfdf7119a2d4620cc1478677611; _gat=1; session=eyJyZWNlbnQiOlsiMTlwd3g5NzEiLCIxYTNsaHg2MSJdfQ.CxF25Q.WfyUPLe9lQjtibrpD55c2gOD-YA; _ga=GA1.2.525721040.1478677612" - }, - { - "name": "Origin", - "value": "http://requestb.in" - }, - { - "name": "Accept-Encoding", - "value": "gzip, deflate" - }, - { - "name": "Accept-Language", - "value": "en-US,en;q=0.8" - }, - { - "name": "User-Agent", - "value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36" - }, - { - "name": "Content-Type", - "value": "application/x-www-form-urlencoded; charset=UTF-8" - }, - { - "name": "Accept", - "value": "*/*" - }, - { - "name": "Referer", - "value": "http://requestb.in/" - }, - { - "name": "X-Requested-With", - "value": "XMLHttpRequest" - }, - { - "name": "Connection", - "value": "keep-alive" - } - ], - "authentication": {} - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/curl/get-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/curl/get-output.json deleted file mode 100755 index 54a762f4ae..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/curl/get-output.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2016-11-18T22:34:51.526Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__WORKSPACE_ID__", - "url": "http://somesite.com/getdata", - "name": "http://somesite.com/getdata", - "method": "GET", - "body": {}, - "parameters": [ - { - "name": "id", - "value": "1234" - } - ], - "headers": [], - "authentication": {} - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/curl/header-colon-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/curl/header-colon-output.json deleted file mode 100755 index 9383041425..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/curl/header-colon-output.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2016-11-18T22:34:51.526Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__WORKSPACE_ID__", - "url": "https://insomnia.rest", - "name": "https://insomnia.rest", - "method": "GET", - "body": {}, - "parameters": [], - "headers": [ - { - "name": "X-Something", - "value": "foo: bar:baz" - } - ], - "authentication": {} - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/curl/multi-data-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/curl/multi-data-output.json deleted file mode 100755 index e41bd8fbb3..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/curl/multi-data-output.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2016-11-18T22:34:51.526Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__WORKSPACE_ID__", - "url": "https://insomnia.rest", - "name": "https://insomnia.rest", - "method": "POST", - "body": { - "mimeType": "application/x-www-form-urlencoded", - "params": [ - { - "name": "foo", - "value": "bar" - }, - { - "name": "baz", - "value": "qux" - } - ] - }, - "parameters": [], - "headers": [ - { - "name": "Content-Type", - "value": "application/x-www-form-urlencoded" - } - ], - "authentication": {} - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/curl/multi-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/curl/multi-output.json deleted file mode 100755 index 4a91392706..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/curl/multi-output.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2016-11-18T22:34:51.526Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__WORKSPACE_ID__", - "url": "https://insomnia.rest/1/2/3", - "name": "https://insomnia.rest/1/2/3", - "method": "GET", - "body": {}, - "parameters": [], - "headers": [], - "authentication": {} - }, - { - "_id": "__REQ_2__", - "_type": "request", - "parentId": "__WORKSPACE_ID__", - "url": "https://insomnia.rest/foo/bar", - "name": "https://insomnia.rest/foo/bar", - "method": "GET", - "body": {}, - "parameters": [], - "headers": [], - "authentication": {} - }, - { - "_id": "__REQ_3__", - "_type": "request", - "parentId": "__WORKSPACE_ID__", - "url": "https://insomnia.rest", - "name": "https://insomnia.rest", - "method": "GET", - "body": {}, - "parameters": [], - "headers": [ - { - "name": "Cookie", - "value": "foo=bar" - } - ], - "authentication": {} - }, - { - "_id": "__REQ_4__", - "_type": "request", - "parentId": "__WORKSPACE_ID__", - "url": "https://insomnia.rest", - "name": "https://insomnia.rest", - "method": "GET", - "body": {}, - "parameters": [], - "headers": [], - "authentication": {} - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/curl/no-url-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/curl/no-url-output.json deleted file mode 100755 index f0d5ec9a88..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/curl/no-url-output.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2016-11-18T22:34:51.526Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__WORKSPACE_ID__", - "url": "", - "name": "cURL Import 1", - "method": "POST", - "body": {}, - "parameters": [], - "headers": [], - "authentication": {} - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/curl/question-mark-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/curl/question-mark-output.json deleted file mode 100755 index 814b28e3c4..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/curl/question-mark-output.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2016-11-18T22:34:51.526Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__WORKSPACE_ID__", - "url": "http://192.168.1.1:9200/executions/_search", - "name": "http://192.168.1.1:9200/executions/_search", - "method": "POST", - "body": { - "mimeType": "", - "text": "{\"query\":{\"match_all\":{}}}" - }, - "parameters": [{ "name": "pretty", "disabled": false, "value": "" }], - "headers": [], - "authentication": {} - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/curl/simple-url-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/curl/simple-url-output.json deleted file mode 100644 index 64c60a5757..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/curl/simple-url-output.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2016-11-18T22:34:51.526Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__WORKSPACE_ID__", - "url": "https://www.google.com", - "name": "https://www.google.com", - "method": "GET", - "body": {}, - "parameters": [], - "headers": [], - "authentication": {} - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/curl/squished-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/curl/squished-output.json deleted file mode 100755 index 7a05574873..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/curl/squished-output.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "__export_format": 4, - "__export_source": "insomnia.importers:v0.1.0", - "_type": "export", - "resources": [ - { - "_id": "__REQ_1__", - "_type": "request", - "authentication": {}, - "body": { - "mimeType": "", - "text": "id=1234" - }, - "headers": [], - "method": "POST", - "name": "https://insomnia.rest", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "https://insomnia.rest" - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/curl/url-only-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/curl/url-only-output.json deleted file mode 100755 index 2f642ff7b7..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/curl/url-only-output.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2016-11-18T22:34:51.526Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__WORKSPACE_ID__", - "url": "https://insomnia.rest/foo/bar", - "name": "https://insomnia.rest/foo/bar", - "method": "GET", - "body": {}, - "parameters": [], - "headers": [], - "authentication": {} - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/curl/urlencoded-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/curl/urlencoded-output.json deleted file mode 100755 index e41bd8fbb3..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/curl/urlencoded-output.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2016-11-18T22:34:51.526Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__WORKSPACE_ID__", - "url": "https://insomnia.rest", - "name": "https://insomnia.rest", - "method": "POST", - "body": { - "mimeType": "application/x-www-form-urlencoded", - "params": [ - { - "name": "foo", - "value": "bar" - }, - { - "name": "baz", - "value": "qux" - } - ] - }, - "parameters": [], - "headers": [ - { - "name": "Content-Type", - "value": "application/x-www-form-urlencoded" - } - ], - "authentication": {} - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/har/deep-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/har/deep-output.json deleted file mode 100755 index 073a3330de..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/har/deep-output.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2016-11-18T22:34:51.526Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__WORKSPACE_ID__", - "url": "", - "name": "HAR Import 1", - "method": "POST", - "body": { - "mimeType": "", - "text": "" - }, - "parameters": [], - "headers": [], - "authentication": {} - }, - { - "_id": "__REQ_2__", - "_type": "request", - "parentId": "__WORKSPACE_ID__", - "url": "https://insomnia.rest/foo/bar", - "name": "https://insomnia.rest/foo/bar", - "method": "POST", - "body": { - "mimeType": "", - "text": "hello world!" - }, - "parameters": [ - { - "name": "foo", - "value": "bar" - } - ], - "headers": [ - { - "name": "Host", - "value": "insomnia.rest" - }, - { - "name": "cookie", - "value": "foo=bar; __cfduid=df7b43586f071c4aaa79dc8a9de0845771478571055; _ga=GA1.2.697086801.1478571058" - } - ], - "authentication": {} - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/har/form-data-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/har/form-data-output.json deleted file mode 100755 index 85a589d72e..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/har/form-data-output.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2016-11-18T22:34:51.526Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__WORKSPACE_ID__", - "url": "https://insomnia.rest/foo/bar", - "name": "https://insomnia.rest/foo/bar", - "method": "POST", - "body": { - "mimeType": "application/x-www-form-urlencoded", - "params": [ - { - "name": "file", - "fileName": "/home/user/test.txt" - }, - { - "name": "foo", - "value": "bar" - } - ] - }, - "parameters": [], - "headers": [], - "authentication": {} - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/har/minimal-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/har/minimal-output.json deleted file mode 100755 index 8ca3074a70..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/har/minimal-output.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2016-11-18T22:34:51.526Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__WORKSPACE_ID__", - "url": "https://insomnia.rest/foo/bar", - "name": "My Request", - "method": "GET", - "body": {}, - "parameters": [], - "headers": [], - "authentication": {} - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/har/no-requests-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/har/no-requests-output.json deleted file mode 100755 index 7c6c95b243..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/har/no-requests-output.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2016-11-18T22:34:51.526Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/har/shallow-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/har/shallow-output.json deleted file mode 100755 index 7ab52bb257..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/har/shallow-output.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2016-11-18T22:34:51.526Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__WORKSPACE_ID__", - "url": "https://insomnia.rest/foo/bar", - "name": "https://insomnia.rest/foo/bar", - "method": "POST", - "body": { - "mimeType": "application/x-www-form-urlencoded", - "params": [ - { - "name": "foo", - "value": "bar" - } - ] - }, - "parameters": [ - { - "name": "foo", - "value": "bar" - } - ], - "headers": [ - { - "name": "Host", - "value": "insomnia.rest" - }, - { - "name": "Cookie", - "value": "__cfduid=df7b43586f071c4aaa79dc8a9de0845771478571055; _ga=GA1.2.697086801.1478571058" - } - ], - "authentication": {} - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/insomnia-1/complex-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/insomnia-1/complex-output.json deleted file mode 100755 index d44c3b4c3c..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/insomnia-1/complex-output.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2016-11-18T22:34:51.526Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__GRP_1__", - "_type": "request_group", - "parentId": "__WORKSPACE_ID__", - "name": "Test Folder", - "environment": { - "base_url": "https://insomnia.rest/api/v1", - "api_key": "live_123" - } - }, - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__GRP_1__", - "url": "{{ base_url }}/users", - "name": "Test Request", - "method": "POST", - "body": { - "mimeType": "application/json", - "text": "{\"foo\": \"bar\"}" - }, - "parameters": [ - { - "name": "testing", - "value": "hi 123" - }, - { - "name": "testing 2", - "value": "hi 456" - } - ], - "headers": [ - { - "name": "Content-TYPE", - "value": "application/json; charset=utf-8" - } - ], - "authentication": { - "username": "{{ api_key }}", - "password": "" - } - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/insomnia-1/form-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/insomnia-1/form-output.json deleted file mode 100755 index 094b22ff7c..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/insomnia-1/form-output.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2016-11-18T22:34:51.526Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__GRP_1__", - "_type": "request_group", - "parentId": "__WORKSPACE_ID__", - "name": "Imported Folder 1", - "environment": {} - }, - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__GRP_1__", - "url": "", - "name": "Imported HAR 1", - "method": "GET", - "body": { - "mimeType": "application/x-www-form-urlencoded", - "params": [ - { - "name": "foo", - "value": "bar" - }, - { - "name": "baz", - "value": "qux" - }, - { - "name": "msg", - "value": "Hello World!" - }, - { - "name": "flag", - "value": "" - } - ] - }, - "parameters": [], - "headers": [ - { - "name": "Content-Type", - "value": "application/x-www-form-urlencoded" - } - ], - "authentication": {} - }, - { - "_id": "__REQ_2__", - "_type": "request", - "parentId": "__GRP_1__", - "url": "", - "name": "Imported HAR 2", - "method": "GET", - "body": { - "mimeType": "multipart/form-encoded", - "params": [ - { - "name": "foo", - "value": "bar" - }, - { - "name": "baz", - "value": "qux" - }, - { - "name": "msg", - "value": "Hello World!" - }, - { - "name": "flag", - "value": "" - } - ] - }, - "parameters": [], - "headers": [ - { - "name": "content-type", - "value": "multipart/form-encoded" - } - ], - "authentication": {} - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/insomnia-1/minimal-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/insomnia-1/minimal-output.json deleted file mode 100755 index b5c90e4fe9..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/insomnia-1/minimal-output.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2016-11-18T22:34:51.526Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__GRP_1__", - "_type": "request_group", - "parentId": "__WORKSPACE_ID__", - "name": "Imported Folder 1", - "environment": {} - }, - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__GRP_1__", - "url": "", - "name": "Imported HAR 1", - "method": "GET", - "body": {}, - "parameters": [], - "headers": [], - "authentication": {} - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/insomnia-2/complex-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/insomnia-2/complex-output.json deleted file mode 100755 index 0ab5fa8d1f..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/insomnia-2/complex-output.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2016-11-18T22:34:51.526Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__GRP_1__", - "_type": "request_group", - "parentId": "__WORKSPACE_ID__", - "name": "Test Folder", - "environment": { - "base_url": "https://insomnia.rest/api/v1", - "api_key": "live_123" - } - }, - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__GRP_1__", - "url": "{{ base_url }}/users", - "name": "Test Request", - "method": "POST", - "body": { - "mimeType": "application/json", - "text": "{\"foo\": \"bar\"}" - }, - "parameters": [ - { - "name": "testing", - "value": "hi 123" - }, - { - "name": "testing 2", - "value": "hi 456" - } - ], - "headers": [ - { - "name": "Content-Type", - "value": "application/json; charset=utf-8" - } - ], - "authentication": { - "username": "{{ api_key }}", - "password": "" - } - }, - { - "_id": "__REQ_2__", - "_type": "request", - "parentId": "__GRP_1__", - "url": "{{ base_url }}/users", - "name": "Test Request", - "method": "POST", - "body": { - "mimeType": "", - "text": "Hello World!" - }, - "parameters": [ - { - "name": "testing", - "value": "hi 123" - }, - { - "name": "testing 2", - "value": "hi 456" - } - ], - "headers": [], - "authentication": { - "username": "{{ api_key }}", - "password": "" - } - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/insomnia-3/basic-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/insomnia-3/basic-output.json deleted file mode 100755 index df64a78a01..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/insomnia-3/basic-output.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2016-11-18T22:34:51.526Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "wrk_123abc", - "parentId": null, - "modified": 1477939910686, - "created": 1474340560460, - "name": "Insomnia", - "description": "", - "certificates": [], - "_type": "workspace" - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/insomnia-4/basic-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/insomnia-4/basic-output.json deleted file mode 100755 index d5b3041897..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/insomnia-4/basic-output.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2016-11-18T22:34:51.526Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "wrk_123abc-v4", - "parentId": null, - "modified": 1477939910686, - "created": 1474340560460, - "name": "Insomnia", - "description": "", - "certificates": [], - "_type": "workspace" - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/dereferenced-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/dereferenced-output.json deleted file mode 100644 index 224a58aea0..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/dereferenced-output.json +++ /dev/null @@ -1,392 +0,0 @@ -{ - "__export_date": "2019-08-15T19:31:41.712Z", - "__export_format": 4, - "__export_source": "insomnia.importers:v0.1.0", - "_type": "export", - "resources": [ - { - "_id": "__WORKSPACE_ID__", - "_type": "workspace", - "description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.", - "name": "Swagger Petstore 1.0.0", - "parentId": null - }, - { - "_id": "__BASE_ENVIRONMENT_ID__", - "_type": "environment", - "data": { - "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}" - }, - "name": "Base environment", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "env___BASE_ENVIRONMENT_ID___sub__33ebaa67", - "_type": "environment", - "data": { - "apiKey": "apiKey", - "base_path": "/v2", - "host": "petstore.swagger.io", - "oauth2ClientId": "clientId", - "oauth2RedirectUrl": "http://localhost/", - "scheme": "http" - }, - "name": "OpenAPI env petstore.swagger.io", - "parentId": "__BASE_ENVIRONMENT_ID__" - }, - { - "_id": "req___WORKSPACE_ID__23acbe44", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.oauth2ClientId }}", - "grantType": "implicit", - "redirectUrl": "{{ _.oauth2RedirectUrl }}", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": { - "mimeType": "application/json", - "text": "{\n \"id\": 0,\n \"category\": {\n \"id\": 0,\n \"name\": \"string\"\n },\n \"name\": \"doggie\",\n \"photoUrls\": [\n \"string\"\n ],\n \"tags\": [\n {\n \"id\": 0,\n \"name\": \"string\"\n }\n ],\n \"status\": \"string\"\n}" - }, - "headers": [{ - "disabled": false, - "name": "Content-Type", - "value": "application/json" - }], - "method": "POST", - "name": "Add a new pet to the store", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/pet" - }, - { - "_id": "req___WORKSPACE_ID__74a7a059", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.oauth2ClientId }}", - "grantType": "implicit", - "redirectUrl": "{{ _.oauth2RedirectUrl }}", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": { - "mimeType": "application/json", - "text": "{\n \"id\": 0,\n \"category\": {\n \"id\": 0,\n \"name\": \"string\"\n },\n \"name\": \"doggie\",\n \"photoUrls\": [\n \"string\"\n ],\n \"tags\": [\n {\n \"id\": 0,\n \"name\": \"string\"\n }\n ],\n \"status\": \"string\"\n}" - }, - "headers": [{ - "disabled": false, - "name": "Content-Type", - "value": "application/json" - }], - "method": "PUT", - "name": "Update an existing pet", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/pet" - }, - { - "_id": "req___WORKSPACE_ID__80ab0d08", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.oauth2ClientId }}", - "grantType": "implicit", - "redirectUrl": "{{ _.oauth2RedirectUrl }}", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": {}, - "headers": [], - "method": "GET", - "name": "Finds Pets by status", - "parameters": [ - { - "disabled": false, - "name": "status", - "value": "available" - } - ], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/pet/findByStatus" - }, - { - "_id": "req___WORKSPACE_ID__42a17980", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.oauth2ClientId }}", - "grantType": "implicit", - "redirectUrl": "{{ _.oauth2RedirectUrl }}", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": {}, - "headers": [], - "method": "GET", - "name": "Finds Pets by tags", - "parameters": [ - { - "disabled": false, - "name": "tags", - "value": "string" - } - ], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/pet/findByTags" - }, - { - "_id": "req___WORKSPACE_ID__3d1a51d3", - "_type": "request", - "authentication": { - "addTo": "header", - "key": "api_key", - "type": "apikey", - "value": "{{ _.apiKey }}" - }, - "body": {}, - "headers": [], - "method": "GET", - "name": "Find pet by ID", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/pet/{{ _.petId }}" - }, - { - "_id": "req___WORKSPACE_ID__a4608701", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.oauth2ClientId }}", - "grantType": "implicit", - "redirectUrl": "{{ _.oauth2RedirectUrl }}", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": { - "mimeType": "application/x-www-form-urlencoded" - }, - "headers": [{ - "disabled": false, - "name": "Content-Type", - "value": "application/x-www-form-urlencoded" - }], - "method": "POST", - "name": "Updates a pet in the store with form data", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/pet/{{ _.petId }}" - }, - { - "_id": "req___WORKSPACE_ID__e804bd05", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.oauth2ClientId }}", - "grantType": "implicit", - "redirectUrl": "{{ _.oauth2RedirectUrl }}", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": {}, - "headers": [ - { - "disabled": true, - "name": "api_key", - "value": "string" - } - ], - "method": "DELETE", - "name": "Deletes a pet", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/pet/{{ _.petId }}" - }, - { - "_id": "req___WORKSPACE_ID__8081fb6f", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.oauth2ClientId }}", - "grantType": "implicit", - "redirectUrl": "{{ _.oauth2RedirectUrl }}", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": { - "mimeType": "multipart/form-data" - }, - "headers": [{ - "disabled": false, - "name": "Content-Type", - "value": "multipart/form-data" - }], - "method": "POST", - "name": "uploads an image", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/pet/{{ _.petId }}/uploadImage" - }, - { - "_id": "req___WORKSPACE_ID__443ac9e7", - "_type": "request", - "authentication": { - "addTo": "header", - "key": "api_key", - "type": "apikey", - "value": "{{ _.apiKey }}" - }, - "body": {}, - "headers": [], - "method": "GET", - "name": "Returns pet inventories by status", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/store/inventory" - }, - { - "_id": "req___WORKSPACE_ID__e24a4f9e", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "POST", - "name": "Place an order for a pet", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/store/order" - }, - { - "_id": "req___WORKSPACE_ID__f021bcd3", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "GET", - "name": "Find purchase order by ID", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/store/order/{{ _.orderId }}" - }, - { - "_id": "req___WORKSPACE_ID__15e47538", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "DELETE", - "name": "Delete purchase order by ID", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/store/order/{{ _.orderId }}" - }, - { - "_id": "req___WORKSPACE_ID__fe3d55d0", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "POST", - "name": "Create user", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/user" - }, - { - "_id": "req___WORKSPACE_ID__4cb83333", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "POST", - "name": "Creates list of users with given input array", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/user/createWithArray" - }, - { - "_id": "req___WORKSPACE_ID__e94a615f", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "POST", - "name": "Creates list of users with given input array", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/user/createWithList" - }, - { - "_id": "req___WORKSPACE_ID__00ac9da2", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "GET", - "name": "Logs user into the system", - "parameters": [ - { - "disabled": false, - "name": "username", - "value": "string" - }, - { - "disabled": false, - "name": "password", - "value": "string" - } - ], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/user/login" - }, - { - "_id": "req___WORKSPACE_ID__740025cb", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "GET", - "name": "Logs out current logged in user session", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/user/logout" - }, - { - "_id": "req___WORKSPACE_ID__74f1d1d1", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "GET", - "name": "Get user by user name", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/user/{{ _.username }}" - }, - { - "_id": "req___WORKSPACE_ID__6d74493f", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "PUT", - "name": "Updated user", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/user/{{ _.username }}" - }, - { - "_id": "req___WORKSPACE_ID__38e8e88f", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "DELETE", - "name": "Delete user", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/user/{{ _.username }}" - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/dereferenced-with-tags-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/dereferenced-with-tags-output.json deleted file mode 100644 index 911872b835..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/dereferenced-with-tags-output.json +++ /dev/null @@ -1,416 +0,0 @@ -{ - "__export_date": "2019-08-15T19:31:41.767Z", - "__export_format": 4, - "__export_source": "insomnia.importers:v0.1.0", - "_type": "export", - "resources": [ - { - "_id": "__WORKSPACE_ID__", - "_type": "workspace", - "description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.", - "name": "Swagger Petstore 1.0.0", - "parentId": null - }, - { - "_id": "__BASE_ENVIRONMENT_ID__", - "_type": "environment", - "data": { - "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}" - }, - "name": "Base environment", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "env___BASE_ENVIRONMENT_ID___sub__33ebaa67", - "_type": "environment", - "data": { - "apiKey": "apiKey", - "base_path": "/v2", - "host": "petstore.swagger.io", - "oauth2ClientId": "clientId", - "oauth2RedirectUrl": "http://localhost/", - "scheme": "http" - }, - "name": "OpenAPI env petstore.swagger.io", - "parentId": "__BASE_ENVIRONMENT_ID__" - }, - { - "_id": "fld___WORKSPACE_ID__1b034c38", - "_type": "request_group", - "description": "Everything about your Pets", - "environment": {}, - "name": "pet", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "fld___WORKSPACE_ID__3a21295d", - "_type": "request_group", - "description": "Access to Petstore orders", - "environment": {}, - "name": "store", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "fld___WORKSPACE_ID__12dea96f", - "_type": "request_group", - "description": "Operations about user", - "environment": {}, - "name": "user", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "req___WORKSPACE_ID__23acbe44", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.oauth2ClientId }}", - "grantType": "implicit", - "redirectUrl": "{{ _.oauth2RedirectUrl }}", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": { - "mimeType": "application/json", - "text": "{\n \"id\": 0,\n \"category\": {\n \"id\": 0,\n \"name\": \"string\"\n },\n \"name\": \"doggie\",\n \"photoUrls\": [\n \"string\"\n ],\n \"tags\": [\n {\n \"id\": 0,\n \"name\": \"string\"\n }\n ],\n \"status\": \"string\"\n}" - }, - "headers": [{ - "disabled": false, - "name": "Content-Type", - "value": "application/json" - }], - "method": "POST", - "name": "Add a new pet to the store", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__1b034c38", - "url": "{{ _.base_url }}/pet" - }, - { - "_id": "req___WORKSPACE_ID__74a7a059", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.oauth2ClientId }}", - "grantType": "implicit", - "redirectUrl": "{{ _.oauth2RedirectUrl }}", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": { - "mimeType": "application/json", - "text": "{\n \"id\": 0,\n \"category\": {\n \"id\": 0,\n \"name\": \"string\"\n },\n \"name\": \"doggie\",\n \"photoUrls\": [\n \"string\"\n ],\n \"tags\": [\n {\n \"id\": 0,\n \"name\": \"string\"\n }\n ],\n \"status\": \"string\"\n}" - }, - "headers": [{ - "disabled": false, - "name": "Content-Type", - "value": "application/json" - }], - "method": "PUT", - "name": "Update an existing pet", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__1b034c38", - "url": "{{ _.base_url }}/pet" - }, - { - "_id": "req___WORKSPACE_ID__80ab0d08", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.oauth2ClientId }}", - "grantType": "implicit", - "redirectUrl": "{{ _.oauth2RedirectUrl }}", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": {}, - "headers": [], - "method": "GET", - "name": "Finds Pets by status", - "parameters": [ - { - "disabled": false, - "name": "status", - "value": "available" - } - ], - "parentId": "fld___WORKSPACE_ID__1b034c38", - "url": "{{ _.base_url }}/pet/findByStatus" - }, - { - "_id": "req___WORKSPACE_ID__42a17980", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.oauth2ClientId }}", - "grantType": "implicit", - "redirectUrl": "{{ _.oauth2RedirectUrl }}", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": {}, - "headers": [], - "method": "GET", - "name": "Finds Pets by tags", - "parameters": [ - { - "disabled": false, - "name": "tags", - "value": "string" - } - ], - "parentId": "fld___WORKSPACE_ID__1b034c38", - "url": "{{ _.base_url }}/pet/findByTags" - }, - { - "_id": "req___WORKSPACE_ID__3d1a51d3", - "_type": "request", - "authentication": { - "addTo": "header", - "key": "api_key", - "type": "apikey", - "value": "{{ _.apiKey }}" - }, - "body": {}, - "headers": [], - "method": "GET", - "name": "Find pet by ID", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__1b034c38", - "url": "{{ _.base_url }}/pet/{{ _.petId }}" - }, - { - "_id": "req___WORKSPACE_ID__a4608701", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.oauth2ClientId }}", - "grantType": "implicit", - "redirectUrl": "{{ _.oauth2RedirectUrl }}", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": { - "mimeType": "application/x-www-form-urlencoded" - }, - "headers": [{ - "disabled": false, - "name": "Content-Type", - "value": "application/x-www-form-urlencoded" - }], - "method": "POST", - "name": "Updates a pet in the store with form data", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__1b034c38", - "url": "{{ _.base_url }}/pet/{{ _.petId }}" - }, - { - "_id": "req___WORKSPACE_ID__e804bd05", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.oauth2ClientId }}", - "grantType": "implicit", - "redirectUrl": "{{ _.oauth2RedirectUrl }}", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": {}, - "headers": [ - { - "disabled": true, - "name": "api_key", - "value": "string" - } - ], - "method": "DELETE", - "name": "Deletes a pet", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__1b034c38", - "url": "{{ _.base_url }}/pet/{{ _.petId }}" - }, - { - "_id": "req___WORKSPACE_ID__8081fb6f", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.oauth2ClientId }}", - "grantType": "implicit", - "redirectUrl": "{{ _.oauth2RedirectUrl }}", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": { - "mimeType": "multipart/form-data" - }, - "headers": [{ - "disabled": false, - "name": "Content-Type", - "value": "multipart/form-data" - }], - "method": "POST", - "name": "uploads an image", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__1b034c38", - "url": "{{ _.base_url }}/pet/{{ _.petId }}/uploadImage" - }, - { - "_id": "req___WORKSPACE_ID__443ac9e7", - "_type": "request", - "authentication": { - "addTo": "header", - "key": "api_key", - "type": "apikey", - "value": "{{ _.apiKey }}" - }, - "body": {}, - "headers": [], - "method": "GET", - "name": "Returns pet inventories by status", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__3a21295d", - "url": "{{ _.base_url }}/store/inventory" - }, - { - "_id": "req___WORKSPACE_ID__e24a4f9e", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "POST", - "name": "Place an order for a pet", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__3a21295d", - "url": "{{ _.base_url }}/store/order" - }, - { - "_id": "req___WORKSPACE_ID__f021bcd3", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "GET", - "name": "Find purchase order by ID", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__3a21295d", - "url": "{{ _.base_url }}/store/order/{{ _.orderId }}" - }, - { - "_id": "req___WORKSPACE_ID__15e47538", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "DELETE", - "name": "Delete purchase order by ID", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__3a21295d", - "url": "{{ _.base_url }}/store/order/{{ _.orderId }}" - }, - { - "_id": "req___WORKSPACE_ID__fe3d55d0", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "POST", - "name": "Create user", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__12dea96f", - "url": "{{ _.base_url }}/user" - }, - { - "_id": "req___WORKSPACE_ID__4cb83333", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "POST", - "name": "Creates list of users with given input array", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__12dea96f", - "url": "{{ _.base_url }}/user/createWithArray" - }, - { - "_id": "req___WORKSPACE_ID__e94a615f", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "POST", - "name": "Creates list of users with given input array", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__12dea96f", - "url": "{{ _.base_url }}/user/createWithList" - }, - { - "_id": "req___WORKSPACE_ID__00ac9da2", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "GET", - "name": "Logs user into the system", - "parameters": [ - { - "disabled": false, - "name": "username", - "value": "string" - }, - { - "disabled": false, - "name": "password", - "value": "string" - } - ], - "parentId": "fld___WORKSPACE_ID__12dea96f", - "url": "{{ _.base_url }}/user/login" - }, - { - "_id": "req___WORKSPACE_ID__740025cb", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "GET", - "name": "Logs out current logged in user session", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__12dea96f", - "url": "{{ _.base_url }}/user/logout" - }, - { - "_id": "req___WORKSPACE_ID__74f1d1d1", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "GET", - "name": "Get user by user name", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__12dea96f", - "url": "{{ _.base_url }}/user/{{ _.username }}" - }, - { - "_id": "req___WORKSPACE_ID__6d74493f", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "PUT", - "name": "Updated user", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__12dea96f", - "url": "{{ _.base_url }}/user/{{ _.username }}" - }, - { - "_id": "req___WORKSPACE_ID__38e8e88f", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "DELETE", - "name": "Delete user", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__12dea96f", - "url": "{{ _.base_url }}/user/{{ _.username }}" - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/endpoint-security-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/endpoint-security-output.json deleted file mode 100644 index eb7da9d7dd..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/endpoint-security-output.json +++ /dev/null @@ -1,286 +0,0 @@ -{ - "__export_date": "2020-05-13T23:55:24.712Z", - "__export_format": 4, - "__export_source": "insomnia.importers:v0.1.0", - "_type": "export", - "resources": [ - { - "_id": "__WORKSPACE_ID__", - "_type": "workspace", - "description": "", - "name": "Endpoint Security 1.2", - "parentId": null - }, - { - "_id": "__BASE_ENVIRONMENT_ID__", - "_type": "environment", - "data": { - "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}" - }, - "name": "Base environment", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "env___BASE_ENVIRONMENT_ID___sub__64c0ce7d", - "_type": "environment", - "data": { - "anotherCookieName": "anotherCookieName", - "anotherKey": "anotherKey", - "base_path": "/v1", - "bearerToken": "bearerToken", - "cookieName": "cookieName", - "host": "api.server.test", - "httpPassword": "password", - "httpUsername": "username", - "oauth2ClientId": "clientId", - "oauth2ClientSecret": "clientSecret", - "oauth2RedirectUrl": "http://localhost/", - "oauth2Username": "username", - "oauth2Password": "password", - "key": "key", - "scheme": "https", - "xApiKey": "xApiKey", - "xAppVersion": "xAppVersion" - }, - "name": "OpenAPI env api.server.test", - "parentId": "__BASE_ENVIRONMENT_ID__" - }, - { - "_id": "req___WORKSPACE_ID__05bfadcb", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "GET", - "name": "/none", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/none" - }, - { - "_id": "req___WORKSPACE_ID__4112dc81", - "_type": "request", - "authentication": { - "password": "{{ _.httpPassword }}", - "type": "basic", - "username": "{{ _.httpUsername }}" - }, - "body": {}, - "headers": [], - "method": "GET", - "name": "/none/basic", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/none/basic" - }, - { - "_id": "req___WORKSPACE_ID__4a563129", - "_type": "request", - "authentication": { - "password": "{{ _.httpPassword }}", - "type": "basic", - "username": "{{ _.httpUsername }}" - }, - "body": {}, - "headers": [], - "method": "GET", - "name": "/basic", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/basic" - }, - { - "_id": "req___WORKSPACE_ID__6ecf1fc2", - "_type": "request", - "authentication": { - "prefix": "", - "token": "{{ _.bearerToken }}", - "type": "bearer" - }, - "body": {}, - "headers": [], - "method": "GET", - "name": "/bearer", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/bearer" - }, - { - "_id": "req___WORKSPACE_ID__48bba8a5", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [ - { - "disabled": false, - "name": "x-api_key", - "value": "{{ _.xApiKey }}" - }, - { - "disabled": false, - "name": "x-app-version", - "value": "{{ _.xAppVersion }}" - } - ], - "method": "GET", - "name": "/key/header", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/key/header" - }, - { - "_id": "req___WORKSPACE_ID__2ea006cf", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [ - { - "disabled": false, - "name": "Cookie", - "value": "CookieName={{ _.cookieName }}; AnotherCookieName={{ _.anotherCookieName }}" - } - ], - "method": "GET", - "name": "/key/cookie", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/key/cookie" - }, - { - "_id": "req___WORKSPACE_ID__0a8d5285", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "GET", - "name": "/key/query", - "parameters": [ - { - "disabled": false, - "name": "key", - "value": "{{ _.key }}" - }, - { - "disabled": false, - "name": "another_key", - "value": "{{ _.anotherKey }}" - } - ], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/key/query" - }, - { - "_id": "req___WORKSPACE_ID__028b5fb7", - "_type": "request", - "authentication": { - "clientId": "{{ _.oauth2ClientId }}", - "clientSecret": "{{ _.oauth2ClientSecret }}", - "redirectUrl": "{{ _.oauth2RedirectUrl }}", - "accessTokenUrl": "https://api.server.test/v1/token", - "authorizationUrl": "https://api.server.test/v1/auth", - "grantType": "authorization_code", - "scope": "read:something write:something", - "type": "oauth2" - }, - "body": {}, - "headers": [], - "method": "GET", - "name": "/oauth2/authorization-code", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/oauth2/authorization-code" - }, - { - "_id": "req___WORKSPACE_ID__e5d224de", - "_type": "request", - "authentication": { - "clientId": "{{ _.oauth2ClientId }}", - "redirectUrl": "{{ _.oauth2RedirectUrl }}", - "authorizationUrl": "https://api.server.test/v1/auth", - "grantType": "implicit", - "scope": "read:something write:something", - "type": "oauth2" - }, - "body": {}, - "headers": [], - "method": "GET", - "name": "/oauth2/implicit", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/oauth2/implicit" - }, - { - "_id": "req___WORKSPACE_ID__ef33c6a4", - "_type": "request", - "authentication": { - "clientId": "{{ _.oauth2ClientId }}", - "clientSecret": "{{ _.oauth2ClientSecret }}", - "accessTokenUrl": "https://api.server.test/v1/token", - "grantType": "client_credentials", - "scope": "read:something write:something", - "type": "oauth2" - }, - "body": {}, - "headers": [], - "method": "GET", - "name": "/oauth2/client-credentials", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/oauth2/client-credentials" - }, - { - "_id": "req___WORKSPACE_ID__06ba5946", - "_type": "request", - "authentication": { - "clientId": "{{ _.oauth2ClientId }}", - "clientSecret": "{{ _.oauth2ClientSecret }}", - "username": "{{ _.oauth2Username }}", - "password": "{{ _.oauth2Password }}", - "accessTokenUrl": "https://api.server.test/v1/token", - "grantType": "password", - "scope": "read:something write:something", - "type": "oauth2" - }, - "body": {}, - "headers": [], - "method": "GET", - "name": "/oauth2/password", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/oauth2/password" - }, - { - "_id": "req___WORKSPACE_ID__e285189c", - "_type": "request", - "authentication": { - "password": "{{ _.httpPassword }}", - "type": "basic", - "username": "{{ _.httpUsername }}" - }, - "body": {}, - "headers": [ - { - "disabled": false, - "name": "x-api_key", - "value": "{{ _.xApiKey }}" - }, - { - "disabled": false, - "name": "Cookie", - "value": "CookieName={{ _.cookieName }}" - } - ], - "method": "GET", - "name": "/all", - "parameters": [ - { - "disabled": false, - "name": "key", - "value": "{{ _.key }}" - } - ], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/all" - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/example-with-server-variables-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/example-with-server-variables-output.json deleted file mode 100644 index 6bc729c4f1..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/example-with-server-variables-output.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "__export_date": "2020-05-11T00:51:52.464Z", - "__export_format": 4, - "__export_source": "insomnia.importers:v0.1.0", - "_type": "export", - "resources": [ - { - "_id": "__WORKSPACE_ID__", - "_type": "workspace", - "description": "This API is for administrating files and file storages.", - "name": "File and Storage API 0.1.0", - "parentId": null - }, - { - "_id": "__BASE_ENVIRONMENT_ID__", - "_type": "environment", - "data": { - "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}" - }, - "name": "Base environment", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "env___BASE_ENVIRONMENT_ID___sub__b0168b4d", - "_type": "environment", - "data": { - "base_path": "/filemanagement", - "host": "localhost:8080", - "scheme": "https" - }, - "name": "OpenAPI env localhost:8080", - "parentId": "__BASE_ENVIRONMENT_ID__" - }, - { - "_id": "req___WORKSPACE_ID__a6294159", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "GET", - "name": "/files", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/files" - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/example-without-servers-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/example-without-servers-output.json deleted file mode 100644 index ef9002072a..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/example-without-servers-output.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "__export_date": "2020-03-24T06:16:20.516Z", - "__export_format": 4, - "__export_source": "insomnia.importers:v0.1.0", - "_type": "export", - "resources": [ - { - "_id": "__WORKSPACE_ID__", - "_type": "workspace", - "description": "", - "name": "Simple API overview 2.0.0", - "parentId": null - }, - { - "_id": "__BASE_ENVIRONMENT_ID__", - "_type": "environment", - "data": { - "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}" - }, - "name": "Base environment", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "env___BASE_ENVIRONMENT_ID___sub__9c17e047", - "_type": "environment", - "data": { - "base_path": "", - "host": "example.com", - "scheme": "http" - }, - "name": "OpenAPI env example.com", - "parentId": "__BASE_ENVIRONMENT_ID__" - }, - { - "_id": "req___WORKSPACE_ID__316fc296", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "GET", - "name": "List API versions", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/" - }, - { - "_id": "req___WORKSPACE_ID__4dd01204", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "GET", - "name": "Show API version details", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/v2" - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/global-security-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/global-security-output.json deleted file mode 100644 index e2e913494b..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/global-security-output.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2020-02-19T03:46:03.524Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_type": "workspace", - "_id": "__WORKSPACE_ID__", - "parentId": null, - "name": "Global Security 1.2", - "description": "" - }, - { - "parentId": "__WORKSPACE_ID__", - "name": "Base environment", - "data": { - "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}" - }, - "_type": "environment", - "_id": "__BASE_ENVIRONMENT_ID__" - }, - { - "parentId": "__BASE_ENVIRONMENT_ID__", - "name": "OpenAPI env api.server.test", - "data": { - "scheme": "https", - "apiKeyHere": "apiKeyHere", - "cookieName": "cookieName", - "base_path": "/v1", - "host": "api.server.test", - "httpUsername": "username", - "httpPassword": "password", - "bearerToken": "bearerToken", - "xApiKey": "xApiKey" - }, - "_type": "environment", - "_id": "env___BASE_ENVIRONMENT_ID___sub__64c0ce7d" - }, - { - "parentId": "__WORKSPACE_ID__", - "name": "/global", - "url": "{{ _.base_url }}/global", - "body": {}, - "method": "GET", - "parameters": [], - "headers": [ - { - "name": "x-api_key", - "disabled": false, - "value": "{{ _.xApiKey }}" - } - ], - "authentication": { - "type": "basic", - "username": "{{ _.httpUsername }}", - "password": "{{ _.httpPassword }}" - }, - "_type": "request", - "_id": "req___WORKSPACE_ID__21946b60" - }, - { - "parentId": "__WORKSPACE_ID__", - "name": "/override", - "url": "{{ _.base_url }}/override", - "body": {}, - "method": "GET", - "parameters": [], - "headers": [], - "authentication": { - "addTo": "query", - "key": "apiKeyHere", - "type": "apikey", - "value": "{{ _.apiKeyHere }}" - }, - "_type": "request", - "_id": "req___WORKSPACE_ID__b410454b" - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/multiple-api-keys-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/multiple-api-keys-output.json deleted file mode 100644 index e12662aad5..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/multiple-api-keys-output.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "__export_date": "2022-08-05T10:38:46.184Z", - "__export_format": 4, - "__export_source": "insomnia.importers:v0.1.0", - "_type": "export", - "resources": [ - { - "_id": "__WORKSPACE_ID__", - "_type": "workspace", - "description": "This is a sample server Petstore server.", - "name": "Swagger Petstore 1.0.2", - "parentId": null - }, - { - "_id": "__BASE_ENVIRONMENT_ID__", - "_type": "environment", - "data": { - "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}" - }, - "name": "Base environment", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "env___BASE_ENVIRONMENT_ID___sub__3d8ac28f", - "_type": "environment", - "data": { - "base_path": "/v2", - "host": "petstore.swagger.io", - "scheme": "https", - "xApiKey": "xApiKey", - "xAppId": "xAppId", - "xAppSecret": "xAppSecret" - }, - "name": "OpenAPI env petstore.swagger.io", - "parentId": "__BASE_ENVIRONMENT_ID__" - }, - { - "_id": "fld___WORKSPACE_ID__1b034c38", - "_type": "request_group", - "description": "Everything about your Pets", - "environment": {}, - "name": "pet", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "req___WORKSPACE_ID__23acbe44", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [ - { - "disabled": false, - "name": "X-API-KEY", - "value": "{{ _.xApiKey }}" - }, - { - "disabled": false, - "name": "X-APP-ID", - "value": "{{ _.xAppId }}" - }, - { - "disabled": false, - "name": "X-APP-SECRET", - "value": "{{ _.xAppSecret }}" - } - ], - "method": "POST", - "name": "Add a new pet to the store", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__1b034c38", - "url": "{{ _.base_url }}/pet" - }, - { - "_id": "req___WORKSPACE_ID__80ab0d08", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [ - { - "disabled": false, - "name": "X-API-KEY", - "value": "{{ _.xApiKey }}" - }, - { - "disabled": false, - "name": "X-APP-ID", - "value": "{{ _.xAppId }}" - }, - { - "disabled": false, - "name": "X-APP-SECRET", - "value": "{{ _.xAppSecret }}" - } - ], - "method": "GET", - "name": "Finds Pets by status", - "parameters": [ - { - "disabled": false, - "name": "status", - "value": "available" - } - ], - "parentId": "fld___WORKSPACE_ID__1b034c38", - "url": "{{ _.base_url }}/pet/findByStatus" - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/oauth2-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/oauth2-output.json deleted file mode 100644 index 7ab9c39d50..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/oauth2-output.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "__export_date": "2020-05-13T23:55:24.712Z", - "__export_format": 4, - "__export_source": "insomnia.importers:v0.1.0", - "_type": "export", - "resources": [ - { - "_id": "__WORKSPACE_ID__", - "_type": "workspace", - "description": "", - "name": "Endpoint Security 1.2", - "parentId": null - }, - { - "_id": "__BASE_ENVIRONMENT_ID__", - "_type": "environment", - "data": { - "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}" - }, - "name": "Base environment", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "env___BASE_ENVIRONMENT_ID___sub__64c0ce7d", - "_type": "environment", - "data": { - "base_path": "/v1", - "host": "api.server.test", - "oauth2ClientId": "clientId", - "oauth2ClientSecret": "clientSecret", - "oauth2RedirectUrl": "http://localhost/", - "scheme": "https" - }, - "name": "OpenAPI env api.server.test", - "parentId": "__BASE_ENVIRONMENT_ID__" - }, - { - "_id": "req___WORKSPACE_ID__028b5fb7", - "_type": "request", - "authentication": { - "clientId": "{{ _.oauth2ClientId }}", - "clientSecret": "{{ _.oauth2ClientSecret }}", - "accessTokenUrl": "https://api.server.test/v1/token", - "authorizationUrl": "https://api.server.test/v1/auth", - "grantType": "authorization_code", - "redirectUrl": "{{ _.oauth2RedirectUrl }}", - "scope": "", - "type": "oauth2" - }, - "body": {}, - "headers": [], - "method": "GET", - "name": "/oauth2/authorization-code", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/oauth2/authorization-code" - }, - { - "_id": "req___WORKSPACE_ID__cbd0a0fa", - "_type": "request", - "authentication": { - "clientId": "{{ _.oauth2ClientId }}", - "clientSecret": "{{ _.oauth2ClientSecret }}", - "accessTokenUrl": "https://api.server.test/v1/token", - "authorizationUrl": "https://api.server.test/v1/auth", - "grantType": "authorization_code", - "redirectUrl": "{{ _.oauth2RedirectUrl }}", - "scope": "read:something", - "type": "oauth2" - }, - "body": {}, - "headers": [], - "method": "GET", - "name": "/oauth2/authorization-code-read", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/oauth2/authorization-code-read" - }, - { - "_id": "req___WORKSPACE_ID__d7972b84", - "_type": "request", - "authentication": { - "clientId": "{{ _.oauth2ClientId }}", - "clientSecret": "{{ _.oauth2ClientSecret }}", - "accessTokenUrl": "https://api.server.test/v1/token", - "authorizationUrl": "https://api.server.test/v1/auth", - "grantType": "authorization_code", - "redirectUrl": "{{ _.oauth2RedirectUrl }}", - "scope": "read:something write:something", - "type": "oauth2" - }, - "body": {}, - "headers": [], - "method": "GET", - "name": "/oauth2/authorization-code-read-write", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/oauth2/authorization-code-read-write" - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/path-plugin-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/path-plugin-output.json deleted file mode 100644 index 40206b05d9..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/path-plugin-output.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "__export_date": "2020-04-27T06:07:10.686Z", - "__export_format": 4, - "__export_source": "insomnia.importers:v0.1.0", - "_type": "export", - "resources": [ - { - "_id": "__WORKSPACE_ID__", - "_type": "workspace", - "description": "Description", - "name": "API 1.0.0", - "parentId": null - }, - { - "_id": "__BASE_ENVIRONMENT_ID__", - "_type": "environment", - "data": { - "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}" - }, - "name": "Base environment", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "env___BASE_ENVIRONMENT_ID___sub__64b4aec9", - "_type": "environment", - "data": { - "base_path": "", - "host": "api.insomnia.rest", - "scheme": "https" - }, - "name": "OpenAPI env api.insomnia.rest", - "parentId": "__BASE_ENVIRONMENT_ID__" - }, - { - "_id": "req___WORKSPACE_ID__2cade550", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "GET", - "name": "/path", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/path" - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/petstore-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/petstore-output.json deleted file mode 100644 index 5966879f42..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/petstore-output.json +++ /dev/null @@ -1,406 +0,0 @@ -{ - "__export_date": "2019-08-15T19:32:12.775Z", - "__export_format": 4, - "__export_source": "insomnia.importers:v0.1.0", - "_type": "export", - "resources": [ - { - "_id": "__WORKSPACE_ID__", - "_type": "workspace", - "description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.", - "name": "Swagger Petstore 1.0.0", - "parentId": null - }, - { - "_id": "__BASE_ENVIRONMENT_ID__", - "_type": "environment", - "data": { - "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}" - }, - "name": "Base environment", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "env___BASE_ENVIRONMENT_ID___sub__c88af77d", - "_type": "environment", - "data": { - "apiKey": "apiKey", - "base_path": "/v2", - "host": "petstore.swagger.io", - "oauth2ClientId": "clientId", - "oauth2RedirectUrl": "http://localhost/", - "scheme": "http" - }, - "name": "OpenAPI env petstore.swagger.io", - "parentId": "__BASE_ENVIRONMENT_ID__" - }, - { - "_id": "env___BASE_ENVIRONMENT_ID___sub__33d9f12e", - "_type": "environment", - "data": { - "apiKey": "apiKey", - "base_path": "/v2", - "host": "petstore-preprod.swagger.io", - "oauth2ClientId": "clientId", - "oauth2RedirectUrl": "http://localhost/", - "scheme": "http" - }, - "name": "OpenAPI env petstore-preprod.swagger.io", - "parentId": "__BASE_ENVIRONMENT_ID__" - }, - { - "_id": "req___WORKSPACE_ID__23acbe44", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.oauth2ClientId }}", - "grantType": "implicit", - "redirectUrl": "{{ _.oauth2RedirectUrl }}", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": { - "mimeType": "application/json", - "text": "{\n \"id\": 0,\n \"category\": {\n \"id\": 0,\n \"name\": \"string\"\n },\n \"name\": \"doggie\",\n \"photoUrls\": [\n \"string\"\n ],\n \"tags\": [\n {\n \"id\": 0,\n \"name\": \"string\"\n }\n ],\n \"status\": \"string\"\n}" - }, - "headers": [{ - "disabled": false, - "name": "Content-Type", - "value": "application/json" - }], - "method": "POST", - "name": "Add a new pet to the store", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/pet" - }, - { - "_id": "req___WORKSPACE_ID__74a7a059", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.oauth2ClientId }}", - "grantType": "implicit", - "redirectUrl": "{{ _.oauth2RedirectUrl }}", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": { - "mimeType": "application/json", - "text": "{\n \"id\": 0,\n \"category\": {\n \"id\": 0,\n \"name\": \"string\"\n },\n \"name\": \"doggie\",\n \"photoUrls\": [\n \"string\"\n ],\n \"tags\": [\n {\n \"id\": 0,\n \"name\": \"string\"\n }\n ],\n \"status\": \"string\"\n}" - }, - "headers": [{ - "disabled": false, - "name": "Content-Type", - "value": "application/json" - }], - "method": "PUT", - "name": "Update an existing pet", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/pet" - }, - { - "_id": "req___WORKSPACE_ID__80ab0d08", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.oauth2ClientId }}", - "grantType": "implicit", - "redirectUrl": "{{ _.oauth2RedirectUrl }}", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": {}, - "headers": [], - "method": "GET", - "name": "Finds Pets by status", - "parameters": [ - { - "disabled": false, - "name": "status", - "value": "available" - } - ], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/pet/findByStatus" - }, - { - "_id": "req___WORKSPACE_ID__42a17980", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.oauth2ClientId }}", - "grantType": "implicit", - "redirectUrl": "{{ _.oauth2RedirectUrl }}", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": {}, - "headers": [], - "method": "GET", - "name": "Finds Pets by tags", - "parameters": [ - { - "disabled": false, - "name": "tags", - "value": "string" - } - ], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/pet/findByTags" - }, - { - "_id": "req___WORKSPACE_ID__3d1a51d3", - "_type": "request", - "authentication": { - "addTo": "header", - "key": "api_key", - "type": "apikey", - "value": "{{ _.apiKey }}" - }, - "body": {}, - "headers": [], - "method": "GET", - "name": "Find pet by ID", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/pet/{{ _.petId }}" - }, - { - "_id": "req___WORKSPACE_ID__a4608701", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.oauth2ClientId }}", - "grantType": "implicit", - "redirectUrl": "{{ _.oauth2RedirectUrl }}", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": { - "mimeType": "application/x-www-form-urlencoded" - }, - "headers": [{ - "disabled": false, - "name": "Content-Type", - "value": "application/x-www-form-urlencoded" - }], - "method": "POST", - "name": "Updates a pet in the store with form data", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/pet/{{ _.petId }}" - }, - { - "_id": "req___WORKSPACE_ID__e804bd05", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.oauth2ClientId }}", - "grantType": "implicit", - "redirectUrl": "{{ _.oauth2RedirectUrl }}", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": {}, - "headers": [ - { - "disabled": true, - "name": "api_key", - "value": "string" - } - ], - "method": "DELETE", - "name": "Deletes a pet", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/pet/{{ _.petId }}" - }, - { - "_id": "req___WORKSPACE_ID__8081fb6f", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.oauth2ClientId }}", - "grantType": "implicit", - "redirectUrl": "{{ _.oauth2RedirectUrl }}", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": { - "mimeType": "multipart/form-data" - }, - "headers": [{ - "disabled": false, - "name": "Content-Type", - "value": "multipart/form-data" - }], - "method": "POST", - "name": "uploads an image", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/pet/{{ _.petId }}/uploadImage" - }, - { - "_id": "req___WORKSPACE_ID__443ac9e7", - "_type": "request", - "authentication": { - "addTo": "header", - "key": "api_key", - "type": "apikey", - "value": "{{ _.apiKey }}" - }, - "body": {}, - "headers": [], - "method": "GET", - "name": "Returns pet inventories by status", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/store/inventory" - }, - { - "_id": "req___WORKSPACE_ID__e24a4f9e", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "POST", - "name": "Place an order for a pet", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/store/order" - }, - { - "_id": "req___WORKSPACE_ID__f021bcd3", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "GET", - "name": "Find purchase order by ID", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/store/order/{{ _.orderId }}" - }, - { - "_id": "req___WORKSPACE_ID__15e47538", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "DELETE", - "name": "Delete purchase order by ID", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/store/order/{{ _.orderId }}" - }, - { - "_id": "req___WORKSPACE_ID__fe3d55d0", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "POST", - "name": "Create user", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/user" - }, - { - "_id": "req___WORKSPACE_ID__4cb83333", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "POST", - "name": "Creates list of users with given input array", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/user/createWithArray" - }, - { - "_id": "req___WORKSPACE_ID__e94a615f", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "POST", - "name": "Creates list of users with given input array", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/user/createWithList" - }, - { - "_id": "req___WORKSPACE_ID__00ac9da2", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "GET", - "name": "Logs user into the system", - "parameters": [ - { - "disabled": false, - "name": "username", - "value": "string" - }, - { - "disabled": false, - "name": "password", - "value": "string" - } - ], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/user/login" - }, - { - "_id": "req___WORKSPACE_ID__740025cb", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "GET", - "name": "Logs out current logged in user session", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/user/logout" - }, - { - "_id": "req___WORKSPACE_ID__74f1d1d1", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "GET", - "name": "Get user by user name", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/user/{{ _.username }}" - }, - { - "_id": "req___WORKSPACE_ID__6d74493f", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "PUT", - "name": "Updated user", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/user/{{ _.username }}" - }, - { - "_id": "req___WORKSPACE_ID__38e8e88f", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "DELETE", - "name": "Delete user", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/user/{{ _.username }}" - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/petstore-readonly-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/petstore-readonly-output.json deleted file mode 100644 index b55ca790ee..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/petstore-readonly-output.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "__export_date": "2019-08-15T19:32:12.806Z", - "__export_format": 4, - "__export_source": "insomnia.importers:v0.1.0", - "_type": "export", - "resources": [ - { - "_id": "__WORKSPACE_ID__", - "_type": "workspace", - "description": "", - "name": "Swagger Petstore 1.0.0", - "parentId": null - }, - { - "_id": "__BASE_ENVIRONMENT_ID__", - "_type": "environment", - "data": { - "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}" - }, - "name": "Base environment", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "env___BASE_ENVIRONMENT_ID___sub__5be46d1c", - "_type": "environment", - "data": { - "base_path": "/v1", - "host": "petstore.swagger.io", - "scheme": "http" - }, - "name": "OpenAPI env petstore.swagger.io", - "parentId": "__BASE_ENVIRONMENT_ID__" - }, - { - "_id": "req___WORKSPACE_ID__26e3ae98", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "GET", - "name": "List all pets", - "parameters": [ - { - "disabled": true, - "name": "limit", - "value": "0" - } - ], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/pets" - }, - { - "_id": "req___WORKSPACE_ID__09e1157b", - "_type": "request", - "authentication": {}, - "body": { - "mimeType": "application/json", - "text": "{\n \"name\": \"string\",\n \"tag\": \"string\"\n}" - }, - "headers": [{ - "disabled": false, - "name": "Content-Type", - "value": "application/json" - }], - "method": "POST", - "name": "Create a pet", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/pets" - }, - { - "_id": "req___WORKSPACE_ID__3b13e39c", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "GET", - "name": "Info for a specific pet", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/pets/{{ _.petId }}" - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/petstore-with-tags-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/petstore-with-tags-output.json deleted file mode 100644 index be79c6e29a..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/petstore-with-tags-output.json +++ /dev/null @@ -1,416 +0,0 @@ -{ - "__export_date": "2019-08-15T19:32:12.839Z", - "__export_format": 4, - "__export_source": "insomnia.importers:v0.1.0", - "_type": "export", - "resources": [ - { - "_id": "__WORKSPACE_ID__", - "_type": "workspace", - "description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.", - "name": "Swagger Petstore 1.0.0", - "parentId": null - }, - { - "_id": "__BASE_ENVIRONMENT_ID__", - "_type": "environment", - "data": { - "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}" - }, - "name": "Base environment", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "env___BASE_ENVIRONMENT_ID___sub__33ebaa67", - "_type": "environment", - "data": { - "apiKey": "apiKey", - "base_path": "/v2", - "host": "petstore.swagger.io", - "oauth2ClientId": "clientId", - "oauth2RedirectUrl": "http://localhost/", - "scheme": "http" - }, - "name": "OpenAPI env petstore.swagger.io", - "parentId": "__BASE_ENVIRONMENT_ID__" - }, - { - "_id": "fld___WORKSPACE_ID__1b034c38", - "_type": "request_group", - "description": "Everything about your Pets", - "environment": {}, - "name": "pet", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "fld___WORKSPACE_ID__3a21295d", - "_type": "request_group", - "description": "Access to Petstore orders", - "environment": {}, - "name": "store", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "fld___WORKSPACE_ID__12dea96f", - "_type": "request_group", - "description": "Operations about user", - "environment": {}, - "name": "user", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "req___WORKSPACE_ID__23acbe44", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.oauth2ClientId }}", - "grantType": "implicit", - "redirectUrl": "{{ _.oauth2RedirectUrl }}", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": { - "mimeType": "application/json", - "text": "{\n \"id\": 0,\n \"category\": {\n \"id\": 0,\n \"name\": \"string\"\n },\n \"name\": \"doggie\",\n \"photoUrls\": [\n \"string\"\n ],\n \"tags\": [\n {\n \"id\": 0,\n \"name\": \"string\"\n }\n ],\n \"status\": \"string\"\n}" - }, - "headers": [{ - "disabled": false, - "name": "Content-Type", - "value": "application/json" - }], - "method": "POST", - "name": "Add a new pet to the store", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__1b034c38", - "url": "{{ _.base_url }}/pet" - }, - { - "_id": "req___WORKSPACE_ID__74a7a059", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.oauth2ClientId }}", - "grantType": "implicit", - "redirectUrl": "{{ _.oauth2RedirectUrl }}", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": { - "mimeType": "application/json", - "text": "{\n \"id\": 0,\n \"category\": {\n \"id\": 0,\n \"name\": \"string\"\n },\n \"name\": \"doggie\",\n \"photoUrls\": [\n \"string\"\n ],\n \"tags\": [\n {\n \"id\": 0,\n \"name\": \"string\"\n }\n ],\n \"status\": \"string\"\n}" - }, - "headers": [{ - "disabled": false, - "name": "Content-Type", - "value": "application/json" - }], - "method": "PUT", - "name": "Update an existing pet", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__1b034c38", - "url": "{{ _.base_url }}/pet" - }, - { - "_id": "req___WORKSPACE_ID__80ab0d08", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.oauth2ClientId }}", - "grantType": "implicit", - "redirectUrl": "{{ _.oauth2RedirectUrl }}", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": {}, - "headers": [], - "method": "GET", - "name": "Finds Pets by status", - "parameters": [ - { - "disabled": false, - "name": "status", - "value": "available" - } - ], - "parentId": "fld___WORKSPACE_ID__1b034c38", - "url": "{{ _.base_url }}/pet/findByStatus" - }, - { - "_id": "req___WORKSPACE_ID__42a17980", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.oauth2ClientId }}", - "grantType": "implicit", - "redirectUrl": "{{ _.oauth2RedirectUrl }}", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": {}, - "headers": [], - "method": "GET", - "name": "Finds Pets by tags", - "parameters": [ - { - "disabled": false, - "name": "tags", - "value": "string" - } - ], - "parentId": "fld___WORKSPACE_ID__1b034c38", - "url": "{{ _.base_url }}/pet/findByTags" - }, - { - "_id": "req___WORKSPACE_ID__3d1a51d3", - "_type": "request", - "authentication": { - "addTo": "header", - "key": "api_key", - "type": "apikey", - "value": "{{ _.apiKey }}" - }, - "body": {}, - "headers": [], - "method": "GET", - "name": "Find pet by ID", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__1b034c38", - "url": "{{ _.base_url }}/pet/{{ _.petId }}" - }, - { - "_id": "req___WORKSPACE_ID__a4608701", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.oauth2ClientId }}", - "grantType": "implicit", - "redirectUrl": "{{ _.oauth2RedirectUrl }}", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": { - "mimeType": "application/x-www-form-urlencoded" - }, - "headers": [{ - "disabled": false, - "name": "Content-Type", - "value": "application/x-www-form-urlencoded" - }], - "method": "POST", - "name": "Updates a pet in the store with form data", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__1b034c38", - "url": "{{ _.base_url }}/pet/{{ _.petId }}" - }, - { - "_id": "req___WORKSPACE_ID__e804bd05", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.oauth2ClientId }}", - "grantType": "implicit", - "redirectUrl": "{{ _.oauth2RedirectUrl }}", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": {}, - "headers": [ - { - "disabled": true, - "name": "api_key", - "value": "string" - } - ], - "method": "DELETE", - "name": "Deletes a pet", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__1b034c38", - "url": "{{ _.base_url }}/pet/{{ _.petId }}" - }, - { - "_id": "req___WORKSPACE_ID__8081fb6f", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.oauth2ClientId }}", - "grantType": "implicit", - "redirectUrl": "{{ _.oauth2RedirectUrl }}", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": { - "mimeType": "multipart/form-data" - }, - "headers": [{ - "disabled": false, - "name": "Content-Type", - "value": "multipart/form-data" - }], - "method": "POST", - "name": "uploads an image", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__1b034c38", - "url": "{{ _.base_url }}/pet/{{ _.petId }}/uploadImage" - }, - { - "_id": "req___WORKSPACE_ID__443ac9e7", - "_type": "request", - "authentication": { - "addTo": "header", - "key": "api_key", - "type": "apikey", - "value": "{{ _.apiKey }}" - }, - "body": {}, - "headers": [], - "method": "GET", - "name": "Returns pet inventories by status", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__3a21295d", - "url": "{{ _.base_url }}/store/inventory" - }, - { - "_id": "req___WORKSPACE_ID__e24a4f9e", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "POST", - "name": "Place an order for a pet", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__3a21295d", - "url": "{{ _.base_url }}/store/order" - }, - { - "_id": "req___WORKSPACE_ID__f021bcd3", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "GET", - "name": "Find purchase order by ID", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__3a21295d", - "url": "{{ _.base_url }}/store/order/{{ _.orderId }}" - }, - { - "_id": "req___WORKSPACE_ID__15e47538", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "DELETE", - "name": "Delete purchase order by ID", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__3a21295d", - "url": "{{ _.base_url }}/store/order/{{ _.orderId }}" - }, - { - "_id": "req___WORKSPACE_ID__fe3d55d0", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "POST", - "name": "Create user", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__12dea96f", - "url": "{{ _.base_url }}/user" - }, - { - "_id": "req___WORKSPACE_ID__4cb83333", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "POST", - "name": "Creates list of users with given input array", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__12dea96f", - "url": "{{ _.base_url }}/user/createWithArray" - }, - { - "_id": "req___WORKSPACE_ID__e94a615f", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "POST", - "name": "Creates list of users with given input array", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__12dea96f", - "url": "{{ _.base_url }}/user/createWithList" - }, - { - "_id": "req___WORKSPACE_ID__00ac9da2", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "GET", - "name": "Logs user into the system", - "parameters": [ - { - "disabled": false, - "name": "username", - "value": "string" - }, - { - "disabled": false, - "name": "password", - "value": "string" - } - ], - "parentId": "fld___WORKSPACE_ID__12dea96f", - "url": "{{ _.base_url }}/user/login" - }, - { - "_id": "req___WORKSPACE_ID__740025cb", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "GET", - "name": "Logs out current logged in user session", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__12dea96f", - "url": "{{ _.base_url }}/user/logout" - }, - { - "_id": "req___WORKSPACE_ID__74f1d1d1", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "GET", - "name": "Get user by user name", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__12dea96f", - "url": "{{ _.base_url }}/user/{{ _.username }}" - }, - { - "_id": "req___WORKSPACE_ID__6d74493f", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "PUT", - "name": "Updated user", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__12dea96f", - "url": "{{ _.base_url }}/user/{{ _.username }}" - }, - { - "_id": "req___WORKSPACE_ID__38e8e88f", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "DELETE", - "name": "Delete user", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__12dea96f", - "url": "{{ _.base_url }}/user/{{ _.username }}" - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/petstore-yml-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/petstore-yml-output.json deleted file mode 100644 index 39ee513c22..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/petstore-yml-output.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "__export_date": "2019-08-15T19:45:14.616Z", - "__export_format": 4, - "__export_source": "insomnia.importers:v0.1.0", - "_type": "export", - "resources": [ - { - "_id": "__WORKSPACE_ID__", - "_type": "workspace", - "description": "", - "name": "Swagger Petstore 1.0.0", - "parentId": null - }, - { - "_id": "__BASE_ENVIRONMENT_ID__", - "_type": "environment", - "data": { - "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}" - }, - "name": "Base environment", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "env___BASE_ENVIRONMENT_ID___sub__5be46d1c", - "_type": "environment", - "data": { - "base_path": "/v1", - "host": "petstore.swagger.io", - "scheme": "http" - }, - "name": "OpenAPI env petstore.swagger.io", - "parentId": "__BASE_ENVIRONMENT_ID__" - }, - { - "_id": "req___WORKSPACE_ID__2aab4183", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "GET", - "name": "List all pets", - "parameters": [ - { - "disabled": true, - "name": "limit", - "value": "0" - } - ], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/pets" - }, - { - "_id": "req___WORKSPACE_ID__09e1157b", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "POST", - "name": "Create a pet", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/pets" - }, - { - "_id": "req___WORKSPACE_ID__3b13e39c", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "GET", - "name": "Info for a specific pet", - "parameters": [], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/pets/{{ _.petId }}" - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/petstore-yml-with-tags-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/petstore-yml-with-tags-output.json deleted file mode 100644 index c0e3f60aaf..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/openapi3/petstore-yml-with-tags-output.json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "__export_date": "2019-08-15T19:50:19.680Z", - "__export_format": 4, - "__export_source": "insomnia.importers:v0.1.0", - "_type": "export", - "resources": [ - { - "_id": "__WORKSPACE_ID__", - "_type": "workspace", - "description": "", - "name": "Swagger Petstore 1.0.0", - "parentId": null - }, - { - "_id": "__BASE_ENVIRONMENT_ID__", - "_type": "environment", - "data": { - "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}" - }, - "name": "Base environment", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "env___BASE_ENVIRONMENT_ID___sub__5be46d1c", - "_type": "environment", - "data": { - "base_path": "/v1", - "host": "petstore.swagger.io", - "scheme": "http" - }, - "name": "OpenAPI env petstore.swagger.io", - "parentId": "__BASE_ENVIRONMENT_ID__" - }, - { - "_id": "fld___WORKSPACE_ID__a8acce24", - "_type": "request_group", - "description": "Everything about your Pets", - "environment": {}, - "name": "pets", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "req___WORKSPACE_ID__26e3ae98", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "GET", - "name": "List all pets", - "parameters": [ - { - "disabled": true, - "name": "limit", - "value": "0" - } - ], - "parentId": "fld___WORKSPACE_ID__a8acce24", - "url": "{{ _.base_url }}/pets" - }, - { - "_id": "req___WORKSPACE_ID__26e3ae981", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "GET", - "name": "List all pets", - "parameters": [ - { - "disabled": true, - "name": "limit", - "value": "0" - } - ], - "parentId": "__WORKSPACE_ID__", - "url": "{{ _.base_url }}/pets" - }, - { - "_id": "req___WORKSPACE_ID__09e1157b", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "POST", - "name": "Create a pet", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__a8acce24", - "url": "{{ _.base_url }}/pets" - }, - { - "_id": "req___WORKSPACE_ID__3b13e39c", - "_type": "request", - "authentication": {}, - "body": {}, - "headers": [], - "method": "GET", - "name": "Info for a specific pet", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__a8acce24", - "url": "{{ _.base_url }}/pets/{{ _.petId }}" - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/postman-env/basic-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/postman-env/basic-output.json deleted file mode 100755 index 13a5819ebb..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/postman-env/basic-output.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "__export_date": "2016-12-01T03:24:37.929Z", - "__export_format": 4, - "__export_source": "insomnia.importers:v0.1.0", - "_type": "export", - "resources": [ - { - "_id": "__ENV_1__", - "_type": "environment", - "name": "Production Env", - "parentId": "__BASE_ENVIRONMENT_ID__", - "data": { - "foo": "production" - } - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/postman-env/no-name-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/postman-env/no-name-output.json deleted file mode 100755 index a12ab01f48..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/postman-env/no-name-output.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "__export_date": "2016-12-01T03:24:37.929Z", - "__export_format": 4, - "__export_source": "insomnia.importers:v0.1.0", - "_type": "export", - "resources": [ - { - "_id": "__ENV_1__", - "_type": "environment", - "name": "Postman Environment", - "parentId": "__BASE_ENVIRONMENT_ID__", - "data": { - "foo": "production" - } - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/postman/api-key-default-v2_1-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/postman/api-key-default-v2_1-output.json deleted file mode 100644 index 966cb77f32..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/postman/api-key-default-v2_1-output.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2022-11-09T17:15:02.632Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__GRP_1__", - "_type": "request_group", - "description": "", - "environment": {}, - "name": "New Collection", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "__REQ_1__", - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "mockbin.org/request/any", - "name": "New Request", - "description": "", - "method": "GET", - "body": {}, - "parameters": [], - "headers": [], - "authentication": { - "type": "apikey", - "key": "test", - "value": "test", - "addTo": "header", - "disabled": false - }, - "_type": "request" - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/postman/api-key-header-v2_1-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/postman/api-key-header-v2_1-output.json deleted file mode 100644 index 966cb77f32..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/postman/api-key-header-v2_1-output.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2022-11-09T17:15:02.632Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__GRP_1__", - "_type": "request_group", - "description": "", - "environment": {}, - "name": "New Collection", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "__REQ_1__", - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "mockbin.org/request/any", - "name": "New Request", - "description": "", - "method": "GET", - "body": {}, - "parameters": [], - "headers": [], - "authentication": { - "type": "apikey", - "key": "test", - "value": "test", - "addTo": "header", - "disabled": false - }, - "_type": "request" - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/postman/api-key-queryParams-v2_1-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/postman/api-key-queryParams-v2_1-output.json deleted file mode 100644 index f18310e102..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/postman/api-key-queryParams-v2_1-output.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2022-11-09T17:15:02.632Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__GRP_1__", - "_type": "request_group", - "description": "", - "environment": {}, - "name": "New Collection", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "__REQ_1__", - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "mockbin.org/request/any", - "name": "New Request", - "description": "", - "method": "GET", - "body": {}, - "parameters": [], - "headers": [], - "authentication": { - "type": "apikey", - "key": "test", - "value": "test", - "addTo": "queryParams", - "disabled": false - }, - "_type": "request" - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/postman/aws-signature-auth-v2_0-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/postman/aws-signature-auth-v2_0-output.json deleted file mode 100644 index f156661f8f..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/postman/aws-signature-auth-v2_0-output.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2018-10-27T19:15:26.661Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__GRP_1__", - "_type": "request_group", - "parentId": "__WORKSPACE_ID__", - "name": "AWS Signature Test", - "description": "A collection for testing", - "environment": {} - }, - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "https://insomnia.rest", - "name": "AWS Signature", - "description": "", - "method": "GET", - "body": {}, - "parameters": [], - "headers": [], - "authentication": { - "accessKeyId": "aws-access-key", - "disabled": false, - "region": "aws-region", - "secretAccessKey": "aws-secret-key", - "service": "aws-service-name", - "sessionToken": "aws-session-token", - "type": "iam" - } - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/postman/aws-signature-auth-v2_1-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/postman/aws-signature-auth-v2_1-output.json deleted file mode 100644 index f156661f8f..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/postman/aws-signature-auth-v2_1-output.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2018-10-27T19:15:26.661Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__GRP_1__", - "_type": "request_group", - "parentId": "__WORKSPACE_ID__", - "name": "AWS Signature Test", - "description": "A collection for testing", - "environment": {} - }, - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "https://insomnia.rest", - "name": "AWS Signature", - "description": "", - "method": "GET", - "body": {}, - "parameters": [], - "headers": [], - "authentication": { - "accessKeyId": "aws-access-key", - "disabled": false, - "region": "aws-region", - "secretAccessKey": "aws-secret-key", - "service": "aws-service-name", - "sessionToken": "aws-session-token", - "type": "iam" - } - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/postman/basic-auth-v2_0-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/postman/basic-auth-v2_0-output.json deleted file mode 100644 index e913b6545f..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/postman/basic-auth-v2_0-output.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2018-10-27T19:15:26.661Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__GRP_1__", - "_type": "request_group", - "parentId": "__WORKSPACE_ID__", - "name": "Basic Auth Test", - "description": "A collection for testing", - "environment": {} - }, - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "https://insomnia.rest", - "name": "Basic Auth", - "description": "", - "method": "GET", - "body": {}, - "parameters": [], - "headers": [], - "authentication": { - "disabled": false, - "password": "basic-password", - "type": "basic", - "username": "basic-username" - } - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/postman/basic-auth-v2_1-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/postman/basic-auth-v2_1-output.json deleted file mode 100644 index e913b6545f..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/postman/basic-auth-v2_1-output.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2018-10-27T19:15:26.661Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__GRP_1__", - "_type": "request_group", - "parentId": "__WORKSPACE_ID__", - "name": "Basic Auth Test", - "description": "A collection for testing", - "environment": {} - }, - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "https://insomnia.rest", - "name": "Basic Auth", - "description": "", - "method": "GET", - "body": {}, - "parameters": [], - "headers": [], - "authentication": { - "disabled": false, - "password": "basic-password", - "type": "basic", - "username": "basic-username" - } - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/postman/bearer-token-v2_0-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/postman/bearer-token-v2_0-output.json deleted file mode 100644 index efe89b2252..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/postman/bearer-token-v2_0-output.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2018-10-27T19:15:26.661Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__GRP_1__", - "_type": "request_group", - "parentId": "__WORKSPACE_ID__", - "name": "Bearer Token Test", - "description": "A collection for testing", - "environment": {} - }, - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "https://insomnia.rest", - "name": "Bearer Token", - "description": "", - "method": "GET", - "body": {}, - "parameters": [], - "headers": [], - "authentication": { - "disabled": false, - "prefix": "", - "token": "bearer-token-value", - "type": "bearer" - } - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/postman/bearer-token-v2_1-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/postman/bearer-token-v2_1-output.json deleted file mode 100644 index efe89b2252..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/postman/bearer-token-v2_1-output.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2018-10-27T19:15:26.661Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__GRP_1__", - "_type": "request_group", - "parentId": "__WORKSPACE_ID__", - "name": "Bearer Token Test", - "description": "A collection for testing", - "environment": {} - }, - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "https://insomnia.rest", - "name": "Bearer Token", - "description": "", - "method": "GET", - "body": {}, - "parameters": [], - "headers": [], - "authentication": { - "disabled": false, - "prefix": "", - "token": "bearer-token-value", - "type": "bearer" - } - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/postman/complex-url-v2_0-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/postman/complex-url-v2_0-output.json deleted file mode 100755 index a7d96d18cb..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/postman/complex-url-v2_0-output.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2016-11-18T22:34:51.526Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__GRP_1__", - "_type": "request_group", - "parentId": "__WORKSPACE_ID__", - "name": "Complex URL Test Collection", - "description": "A collection for testing", - "environment": {} - }, - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "https://insomnia.rest", - "name": "Test Request", - "description": "", - "parameters": [ - { - "name": "foo", - "value": "bar", - "disabled": false - } - ], - "method": "GET", - "body": {}, - "headers": [], - "authentication": {} - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/postman/complex-url-v2_1-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/postman/complex-url-v2_1-output.json deleted file mode 100755 index 5f23dc837f..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/postman/complex-url-v2_1-output.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2016-11-18T22:34:51.526Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__GRP_1__", - "_type": "request_group", - "parentId": "__WORKSPACE_ID__", - "name": "Complex URL Test Collection", - "description": "A collection for testing", - "environment": {} - }, - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "https://insomnia.rest", - "name": "Test Request", - "parameters": [ - { - "name": "foo", - "value": "bar", - "disabled": false - } - ], - "description": "", - "method": "GET", - "body": {}, - "headers": [], - "authentication": {} - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/postman/complex-v2_0-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/postman/complex-v2_0-output.json deleted file mode 100755 index b2bf118d18..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/postman/complex-v2_0-output.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2016-11-18T22:34:51.526Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__GRP_1__", - "_type": "request_group", - "parentId": "__WORKSPACE_ID__", - "name": "Complex Test Collection", - "description": "A collection for testing", - "environment": {} - }, - { - "_id": "__GRP_2__", - "_type": "request_group", - "parentId": "__GRP_1__", - "name": "First Folder", - "description": "The first folder", - "environment": {} - }, - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__GRP_2__", - "preRequestScript": "", - "url": "{{base_url}}/api/users", - "name": "{{base_url}}/api/users", - "description": "First Request", - "method": "POST", - "body": { - "mimeType": "multipart/form-data", - "params": [ - { - "disabled": false, - "type": "file", - "name": "file", - "fileName": "/home/user/test.txt" - }, - { - "disabled": false, - "type": "text", - "name": "foo", - "value": "bar" - } - ] - }, - "parameters": [], - "headers": [], - "authentication": { - "disabled": false, - "password": "password", - "type": "basic", - "username": "username" - } - }, - { - "_id": "__REQ_2__", - "_type": "request", - "parentId": "__GRP_2__", - "preRequestScript": "", - "url": "{{base_url}}/api/users", - "name": "Urlencoded Form Test", - "description": "First Request", - "method": "POST", - "body": { - "mimeType": "application/x-www-form-urlencoded", - "params": [ - { - "disabled": false, - "name": "foo", - "value": "bar" - } - ] - }, - "parameters": [], - "headers": [], - "authentication": { - "disabled": false, - "password": "password", - "type": "basic", - "username": "username" - } - }, - { - "_id": "__REQ_3__", - "_type": "request", - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "{{base_url}}/api/users", - "name": "Test Request Raw Body", - "description": "Request with raw body", - "method": "POST", - "body": { - "mimeType": "", - "text": "hello world!" - }, - "parameters": [], - "headers": [], - "authentication": {} - }, - { - "_id": "__REQ_4__", - "_type": "request", - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "{{base_url}}/api/users", - "name": "Test Request Empty Raw Body", - "description": "Request with empty raw body", - "method": "POST", - "body": {}, - "parameters": [], - "headers": [], - "authentication": {} - }, - { - "_id": "__REQ_5__", - "_type": "request", - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "{{base_url}}/api/users", - "name": "Test Request Unknown Body", - "description": "Request with unknown body", - "method": "POST", - "body": {}, - "parameters": [], - "headers": [], - "authentication": {} - }, - { - "_id": "__REQ_6__", - "_type": "request", - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "{{base_url}}/graphql/", - "name": "Test Request GraphQL Body", - "description": "Request with graphql body", - "method": "POST", - "body": { - "mimeType": "application/graphql", - "text": "{\"query\":\"mutation loginUser($username: String!, $password: String!) {\\n login(username: $username, password: $password) {\\n token\\n status {\\n success\\n }\\n }\\n}\\n\",\"variables\":\"{\\n \\\"password\\\": \\\"{{password}}\\\",\\n \\\"username\\\": \\\"{{username}}\\\"\\n}\"}" - }, - "parameters": [], - "headers": [], - "authentication": {} - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/postman/complex-v2_0_fromHeaders-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/postman/complex-v2_0_fromHeaders-output.json deleted file mode 100644 index 7ddd460093..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/postman/complex-v2_0_fromHeaders-output.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "__export_date": "2022-04-26T16:04:02.753Z", - "__export_format": 4, - "__export_source": "insomnia.importers:v0.1.0", - "_type": "export", - "resources": [ - { - "_id": "__GRP_1__", - "_type": "request_group", - "description": "", - "environment": {}, - "name": "Timing API", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "__GRP_2__", - "_type": "request_group", - "description": "", - "environment": {}, - "name": "Projects", - "parentId": "__GRP_1__" - }, - { - "_id": "__REQ_1__", - "_type": "request", - "authentication": { - "disabled": false, - "prefix": "", - "token": "{{token}}", - "type": "bearer" - }, - "body": { - "mimeType": "application/json", - "text": "[]" - }, - "description": "
See [Display the specified project.](#display-the-specified-project) for the returned attributes.", - "headers": [ - { - "name": "Accept", - "value": "application/json" - }, - { - "name": "Content-Type", - "value": "application/json" - } - ], - "method": "GET", - "name": "Return the complete project hierarchy.", - "parameters": [ - { - "name": "team_id", - "value": "", - "disabled": true - } - ], - "parentId": "__GRP_2__", - "preRequestScript": "", - "url": "" - }, - { - "_id": "__REQ_2__", - "_type": "request", - "authentication": { - "accessKeyId": "", - "disabled": false, - "region": "", - "secretAccessKey": "", - "service": "", - "type": "iam" - }, - "body": { - "mimeType": "application/json", - "text": "[]" - }, - "description": "
See [Display the specified project.](#display-the-specified-project) for the returned attributes.", - "headers": [ - { - "name": "Accept", - "value": "application/json" - }, - { - "name": "Content-Type", - "value": "application/json" - } - ], - "method": "GET", - "name": "Return a list containing all projects.", - "parameters": [ - { - "name": "title", - "value": "root", - "disabled": false - }, - { - "name": "hide_archived", - "value": "true", - "disabled": false - }, - { - "name": "team_id", - "value": "", - "disabled": true - } - ], - "parentId": "__GRP_2__", - "preRequestScript": "", - "url": "" - }, - { - "_id": "__REQ_3__", - "_type": "request", - "authentication": { - "disabled": false, - "password": "abc123", - "type": "basic", - "username": "john@example.com" - }, - "body": { - "mimeType": "application/json", - "text": "{\n \"title\": \"Acme Inc.\",\n \"parent\": \"\\/projects\\/1\",\n \"color\": \"#FF0000\",\n \"productivity_score\": 1,\n \"is_archived\": false\n}" - }, - "description": "
See [Display the specified project.](#display-the-specified-project) for the returned attributes.", - "headers": [ - { - "name": "Accept", - "value": "application/json" - }, - { - "name": "Content-Type", - "value": "application/json" - } - ], - "method": "POST", - "name": "Create a new project.", - "parameters": [], - "parentId": "__GRP_2__", - "preRequestScript": "", - "url": "" - }, - { - "_id": "__REQ_4__", - "_type": "request", - "authentication": { - "disabled": false, - "password": "", - "type": "digest", - "username": "Username" - }, - "body": { - "mimeType": "application/json", - "text": "[]" - }, - "description": "
The following attributes will be returned:\n\n - `self`: A reference to the entity itself, relative to the API root.\n - `title`: The project's title.\n - `title_chain`: An array containing the title of the project and all its ancestors. Example: `[\"Parent\", \"Child\"]`\n - `color`: The project's color, in hexadecimal format (`#RRGGBB`). Example: `#FF0000`\n - `productivity_score`: The project's productivity rating, between -1 (very unproductive) and 1 (very productive). Example: `1`\n - `is_archived`: Whether the project has been archived. Defaults to false. Example: `false`\n - `parent`: A reference to the enclosing project.\n - `children`: The project's children.\n\n", - "headers": [ - { - "name": "Accept", - "value": "application/json" - }, - { - "name": "Content-Type", - "value": "application/json" - } - ], - "method": "GET", - "name": "Display the specified project.", - "parameters": [], - "parentId": "__GRP_2__", - "preRequestScript": "", - "url": "" - }, - { - "_id": "__REQ_5__", - "_type": "request", - "authentication": { - "callback": "Callback%20URL", - "consumerKey": "Consumer%20Key", - "consumerSecret": "", - "disabled": false, - "nonce": "Nonce", - "privateKey": "", - "realm": "Realm", - "signatureMethod": "HMAC-SHA1", - "timestamp": "Timestamp", - "tokenKey": "Access%20Token", - "tokenSecret": "", - "type": "oauth1", - "verifier": "Verifier", - "version": "Version" - }, - "body": { - "mimeType": "application/json", - "text": "{\n \"title\": \"Acme Inc.\",\n \"color\": \"#FF0000\",\n \"productivity_score\": 1,\n \"is_archived\": false\n}" - }, - "description": "
See [Display the specified project.](#display-the-specified-project) for the returned attributes.\n\n\n\n", - "headers": [ - { - "name": "Accept", - "value": "application/json" - }, - { - "name": "Content-Type", - "value": "application/json" - } - ], - "method": "PUT", - "name": "Update the specified project.", - "parameters": [], - "parentId": "__GRP_2__", - "preRequestScript": "", - "url": "" - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/postman/complex-v2_1-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/postman/complex-v2_1-output.json deleted file mode 100755 index fdc9ff9773..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/postman/complex-v2_1-output.json +++ /dev/null @@ -1,155 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2016-11-18T22:34:51.526Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__GRP_1__", - "_type": "request_group", - "parentId": "__WORKSPACE_ID__", - "name": "Complex Test Collection", - "description": "A collection for testing", - "environment": {} - }, - { - "_id": "__GRP_2__", - "_type": "request_group", - "parentId": "__GRP_1__", - "name": "First Folder", - "description": "The first folder", - "environment": {} - }, - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__GRP_2__", - "preRequestScript": "", - "url": "{{base_url}}/api/users", - "name": "{{base_url}}/api/users", - "description": "First Request", - "method": "POST", - "body": { - "mimeType": "multipart/form-data", - "params": [ - { - "disabled": false, - "type": "file", - "name": "file", - "fileName": "/home/user/test.txt" - }, - { - "disabled": false, - "type": "text", - "name": "foo", - "value": "bar" - }, - { - "disabled": true, - "type": "text", - "name": "baz", - "value": "disabled" - } - ] - }, - "parameters": [], - "headers": [], - "authentication": { - "disabled": false, - "password": "password", - "type": "basic", - "username": "username" - } - }, - { - "_id": "__REQ_2__", - "_type": "request", - "parentId": "__GRP_2__", - "preRequestScript": "", - "url": "{{base_url}}/api/users", - "name": "Urlencoded Form Test", - "description": "First Request", - "method": "POST", - "body": { - "mimeType": "application/x-www-form-urlencoded", - "params": [ - { - "disabled": false, - "name": "foo", - "value": "bar" - } - ] - }, - "parameters": [], - "headers": [], - "authentication": { - "disabled": false, - "password": "password", - "type": "basic", - "username": "username" - } - }, - { - "_id": "__REQ_3__", - "_type": "request", - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "{{base_url}}/api/users", - "name": "Test Request", - "description": "Request with raw body", - "method": "POST", - "body": { - "mimeType": "", - "text": "hello world!" - }, - "parameters": [], - "headers": [], - "authentication": {} - }, - { - "_id": "__REQ_4__", - "_type": "request", - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "{{base_url}}/api/users", - "name": "Test Request Unknown Body", - "description": "Request with unknown body", - "method": "POST", - "body": {}, - "parameters": [], - "headers": [], - "authentication": {} - }, - { - "_id": "__REQ_5__", - "_type": "request", - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "{{base_url}}/api/users", - "name": "Test Request Empty Body", - "description": "Request with empty raw body", - "method": "POST", - "body": {}, - "parameters": [], - "headers": [], - "authentication": {} - }, - { - "_id": "__REQ_6__", - "_type": "request", - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "{{base_url}}/graphql/", - "name": "Test Request GraphQL Body", - "description": "Request with graphql body", - "method": "POST", - "body": { - "mimeType": "application/graphql", - "text": "{\"query\":\"mutation loginUser($username: String!, $password: String!) {\\n login(username: $username, password: $password) {\\n token\\n status {\\n success\\n }\\n }\\n}\\n\",\"variables\":\"{\\n \\\"password\\\": \\\"{{password}}\\\",\\n \\\"username\\\": \\\"{{username}}\\\"\\n}\"}" - }, - "parameters": [], - "headers": [], - "authentication": {} - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/postman/digest-auth-v2_0-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/postman/digest-auth-v2_0-output.json deleted file mode 100644 index 5722d3bced..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/postman/digest-auth-v2_0-output.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2018-10-27T19:15:26.661Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__GRP_1__", - "_type": "request_group", - "parentId": "__WORKSPACE_ID__", - "name": "Digest Authentication Test", - "description": "A collection for testing", - "environment": {} - }, - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "https://jigsaw.w3.org/HTTP/Digest/", - "name": "Digest Auth", - "description": "", - "method": "GET", - "body": {}, - "parameters": [], - "headers": [], - "authentication": { - "disabled": false, - "password": "guest", - "type": "digest", - "username": "guest" - } - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/postman/digest-auth-v2_1-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/postman/digest-auth-v2_1-output.json deleted file mode 100644 index 5722d3bced..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/postman/digest-auth-v2_1-output.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2018-10-27T19:15:26.661Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__GRP_1__", - "_type": "request_group", - "parentId": "__WORKSPACE_ID__", - "name": "Digest Authentication Test", - "description": "A collection for testing", - "environment": {} - }, - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "https://jigsaw.w3.org/HTTP/Digest/", - "name": "Digest Auth", - "description": "", - "method": "GET", - "body": {}, - "parameters": [], - "headers": [], - "authentication": { - "disabled": false, - "password": "guest", - "type": "digest", - "username": "guest" - } - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/postman/minimal-v2_0-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/postman/minimal-v2_0-output.json deleted file mode 100755 index ef32d3e309..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/postman/minimal-v2_0-output.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2016-11-18T22:34:51.526Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__GRP_1__", - "_type": "request_group", - "parentId": "__WORKSPACE_ID__", - "name": "Minimal Test Collection", - "description": "A collection for testing", - "environment": {} - }, - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "", - "name": "", - "description": "", - "method": "GET", - "body": {}, - "parameters": [], - "headers": [], - "authentication": {} - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/postman/minimal-v2_1-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/postman/minimal-v2_1-output.json deleted file mode 100755 index ef32d3e309..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/postman/minimal-v2_1-output.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2016-11-18T22:34:51.526Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__GRP_1__", - "_type": "request_group", - "parentId": "__WORKSPACE_ID__", - "name": "Minimal Test Collection", - "description": "A collection for testing", - "environment": {} - }, - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "", - "name": "", - "description": "", - "method": "GET", - "body": {}, - "parameters": [], - "headers": [], - "authentication": {} - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/postman/oauth1_0-auth-v2_0-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/postman/oauth1_0-auth-v2_0-output.json deleted file mode 100644 index f888a2141a..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/postman/oauth1_0-auth-v2_0-output.json +++ /dev/null @@ -1,161 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2018-10-27T19:15:26.661Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__GRP_1__", - "_type": "request_group", - "parentId": "__WORKSPACE_ID__", - "name": "Oauth 1.0 Test", - "description": "A collection for testing", - "environment": {} - }, - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "https://insomnia.rest", - "name": "Added to Request Body/URL", - "description": "", - "method": "GET", - "body": {}, - "parameters": [], - "headers": [], - "authentication": { - "callback": "", - "consumerKey": "consumer-key-value", - "consumerSecret": "consumer-secret-value", - "disabled": false, - "nonce": "nonce-value", - "privateKey": "", - "realm": "realm-value", - "signatureMethod": "HMAC-SHA1", - "timestamp": "timestamp-value", - "tokenKey": "access-token-value", - "tokenSecret": "token-secret-value", - "type": "oauth1", - "verifier": "", - "version": "1.0" - } - }, - { - "_id": "__REQ_2__", - "_type": "request", - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "https://insomnia.rest", - "name": "Added to Request Headers", - "description": "", - "method": "GET", - "body": {}, - "parameters": [], - "headers": [], - "authentication": { - "callback": "", - "consumerKey": "consumer-key-value", - "consumerSecret": "consumer-secret-value", - "disabled": false, - "nonce": "nonce-value", - "privateKey": "", - "realm": "realm-value", - "signatureMethod": "HMAC-SHA1", - "timestamp": "timestamp-value", - "tokenKey": "access-token-value", - "tokenSecret": "token-secret-value", - "type": "oauth1", - "verifier": "", - "version": "1.0" - } - }, - { - "_id": "__REQ_3__", - "_type": "request", - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "https://insomnia.rest", - "name": "Signature Method PLAINTEXT", - "description": "", - "method": "GET", - "body": {}, - "parameters": [], - "headers": [], - "authentication": { - "callback": "", - "consumerKey": "plaintext-consumer-key-value", - "consumerSecret": "plaintext-consumer-secret-value", - "disabled": false, - "nonce": "plaintext-nonce-value", - "privateKey": "", - "realm": "plaintext-realm-value", - "signatureMethod": "PLAINTEXT", - "timestamp": "plaintext-timestamp-value", - "tokenKey": "plaintext-access-token-value", - "tokenSecret": "plaintext-token-secret-value", - "type": "oauth1", - "verifier": "", - "version": "1.0" - } - }, - { - "_id": "__REQ_4__", - "_type": "request", - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "https://insomnia.rest", - "name": "Signature Method HMAC-SHA256", - "description": "", - "method": "GET", - "body": {}, - "parameters": [], - "headers": [], - "authentication": { - "callback": "", - "consumerKey": "sha256-consumer-key-value", - "consumerSecret": "sha256-consumer-secret-value", - "disabled": false, - "nonce": "sha256-nonce-value", - "privateKey": "", - "realm": "sha256-realm-value", - "signatureMethod": "HMAC-SHA256", - "timestamp": "sha256-timestamp-value", - "tokenKey": "sha256-access-token-value", - "tokenSecret": "sha256-token-secret-value", - "type": "oauth1", - "verifier": "", - "version": "1.0" - } - }, - { - "_id": "__REQ_5__", - "_type": "request", - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "https://insomnia.rest", - "name": "Signature Method HMAC-SHA1", - "description": "", - "method": "GET", - "body": {}, - "parameters": [], - "headers": [], - "authentication": { - "callback": "", - "consumerKey": "sha1-consumer-key-value", - "consumerSecret": "sha1-consumer-secret-value", - "disabled": false, - "nonce": "sha1-nonce-value", - "privateKey": "", - "realm": "sha1-realm-value", - "signatureMethod": "HMAC-SHA1", - "timestamp": "sha1-timestamp-value", - "tokenKey": "sha1-access-token-value", - "tokenSecret": "sha1-token-secret-value", - "type": "oauth1", - "verifier": "", - "version": "1.0" - } - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/postman/oauth1_0-auth-v2_1-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/postman/oauth1_0-auth-v2_1-output.json deleted file mode 100644 index f888a2141a..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/postman/oauth1_0-auth-v2_1-output.json +++ /dev/null @@ -1,161 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2018-10-27T19:15:26.661Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__GRP_1__", - "_type": "request_group", - "parentId": "__WORKSPACE_ID__", - "name": "Oauth 1.0 Test", - "description": "A collection for testing", - "environment": {} - }, - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "https://insomnia.rest", - "name": "Added to Request Body/URL", - "description": "", - "method": "GET", - "body": {}, - "parameters": [], - "headers": [], - "authentication": { - "callback": "", - "consumerKey": "consumer-key-value", - "consumerSecret": "consumer-secret-value", - "disabled": false, - "nonce": "nonce-value", - "privateKey": "", - "realm": "realm-value", - "signatureMethod": "HMAC-SHA1", - "timestamp": "timestamp-value", - "tokenKey": "access-token-value", - "tokenSecret": "token-secret-value", - "type": "oauth1", - "verifier": "", - "version": "1.0" - } - }, - { - "_id": "__REQ_2__", - "_type": "request", - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "https://insomnia.rest", - "name": "Added to Request Headers", - "description": "", - "method": "GET", - "body": {}, - "parameters": [], - "headers": [], - "authentication": { - "callback": "", - "consumerKey": "consumer-key-value", - "consumerSecret": "consumer-secret-value", - "disabled": false, - "nonce": "nonce-value", - "privateKey": "", - "realm": "realm-value", - "signatureMethod": "HMAC-SHA1", - "timestamp": "timestamp-value", - "tokenKey": "access-token-value", - "tokenSecret": "token-secret-value", - "type": "oauth1", - "verifier": "", - "version": "1.0" - } - }, - { - "_id": "__REQ_3__", - "_type": "request", - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "https://insomnia.rest", - "name": "Signature Method PLAINTEXT", - "description": "", - "method": "GET", - "body": {}, - "parameters": [], - "headers": [], - "authentication": { - "callback": "", - "consumerKey": "plaintext-consumer-key-value", - "consumerSecret": "plaintext-consumer-secret-value", - "disabled": false, - "nonce": "plaintext-nonce-value", - "privateKey": "", - "realm": "plaintext-realm-value", - "signatureMethod": "PLAINTEXT", - "timestamp": "plaintext-timestamp-value", - "tokenKey": "plaintext-access-token-value", - "tokenSecret": "plaintext-token-secret-value", - "type": "oauth1", - "verifier": "", - "version": "1.0" - } - }, - { - "_id": "__REQ_4__", - "_type": "request", - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "https://insomnia.rest", - "name": "Signature Method HMAC-SHA256", - "description": "", - "method": "GET", - "body": {}, - "parameters": [], - "headers": [], - "authentication": { - "callback": "", - "consumerKey": "sha256-consumer-key-value", - "consumerSecret": "sha256-consumer-secret-value", - "disabled": false, - "nonce": "sha256-nonce-value", - "privateKey": "", - "realm": "sha256-realm-value", - "signatureMethod": "HMAC-SHA256", - "timestamp": "sha256-timestamp-value", - "tokenKey": "sha256-access-token-value", - "tokenSecret": "sha256-token-secret-value", - "type": "oauth1", - "verifier": "", - "version": "1.0" - } - }, - { - "_id": "__REQ_5__", - "_type": "request", - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "https://insomnia.rest", - "name": "Signature Method HMAC-SHA1", - "description": "", - "method": "GET", - "body": {}, - "parameters": [], - "headers": [], - "authentication": { - "callback": "", - "consumerKey": "sha1-consumer-key-value", - "consumerSecret": "sha1-consumer-secret-value", - "disabled": false, - "nonce": "sha1-nonce-value", - "privateKey": "", - "realm": "sha1-realm-value", - "signatureMethod": "HMAC-SHA1", - "timestamp": "sha1-timestamp-value", - "tokenKey": "sha1-access-token-value", - "tokenSecret": "sha1-token-secret-value", - "type": "oauth1", - "verifier": "", - "version": "1.0" - } - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/postman/oauth2_0-auth-v2_0-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/postman/oauth2_0-auth-v2_0-output.json deleted file mode 100644 index ba72e7f800..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/postman/oauth2_0-auth-v2_0-output.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2018-10-27T19:15:26.661Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_id": "__GRP_1__", - "_type": "request_group", - "parentId": "__WORKSPACE_ID__", - "name": "Oauth 2.0 Test", - "description": "A collection for testing", - "environment": {} - }, - { - "_id": "__REQ_1__", - "_type": "request", - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "https://insomnia.rest", - "name": "Added to Request URL", - "description": "", - "method": "GET", - "body": {}, - "parameters": [], - "headers": [], - "authentication": { - "disabled": true, - "accessTokenUrl": "", - "authorizationUrl": "", - "grantType": "authorization_code", - "password": "", - "type": "oauth2", - "username": "" - } - }, - { - "_id": "__REQ_2__", - "_type": "request", - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "https://insomnia.rest", - "name": "Added to Request Headers", - "description": "", - "method": "GET", - "body": {}, - "parameters": [], - "headers": [], - "authentication": { - "disabled": true, - "accessTokenUrl": "", - "authorizationUrl": "", - "grantType": "authorization_code", - "password": "", - "type": "oauth2", - "username": "" - } - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/postman/oauth2_0-auth-v2_1-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/postman/oauth2_0-auth-v2_1-output.json deleted file mode 100644 index eeabc82560..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/postman/oauth2_0-auth-v2_1-output.json +++ /dev/null @@ -1,166 +0,0 @@ -{ - "__export_format": 4, - "__export_source": "insomnia.importers:v0.1.0", - "_type": "export", - "resources": [ - { - "_id": "__GRP_1__", - "_type": "request_group", - "description": "", - "environment": {}, - "name": "oauth2", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "__REQ_1__", - "_type": "request", - "authentication": { - "accessTokenUrl": "test", - "authorizationUrl": "test", - "clientId": "test", - "clientSecret": "test", - "credentialsInBody": false, - "disabled": false, - "grantType": "authorization_code", - "password": "", - "pkceMethod": "", - "redirectUrl": "test", - "scope": "test", - "state": "test", - "tokenPrefix": "test", - "type": "oauth2", - "username": "" - }, - "body": {}, - "description": "", - "headers": [], - "method": "GET", - "name": "auth code", - "parameters": [], - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "mockbin.org/request/any" - }, - { - "_id": "__REQ_2__", - "_type": "request", - "authentication": { - "accessTokenUrl": "test", - "authorizationUrl": "test", - "clientId": "test", - "clientSecret": "test", - "credentialsInBody": false, - "disabled": false, - "grantType": "authorization_code", - "password": "", - "pkceMethod": "", - "redirectUrl": "test", - "scope": "test", - "state": "test", - "tokenPrefix": "test", - "type": "oauth2", - "usePkce": true, - "username": "" - }, - "body": {}, - "description": "", - "headers": [], - "method": "GET", - "name": "pkce", - "parameters": [], - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "mockbin.org/request/any" - }, - { - "_id": "__REQ_3__", - "_type": "request", - "authentication": { - "accessTokenUrl": "test", - "authorizationUrl": "test", - "clientId": "test", - "clientSecret": "test", - "credentialsInBody": false, - "disabled": false, - "grantType": "implicit", - "password": "", - "pkceMethod": "", - "redirectUrl": "test", - "scope": "test", - "state": "test", - "tokenPrefix": "test", - "type": "oauth2", - "username": "" - }, - "body": {}, - "description": "", - "headers": [], - "method": "GET", - "name": "implicit", - "parameters": [], - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "mockbin.org/request/any" - }, - { - "_id": "__REQ_4__", - "_type": "request", - "authentication": { - "accessTokenUrl": "test", - "authorizationUrl": "test", - "clientId": "test", - "clientSecret": "test", - "credentialsInBody": false, - "disabled": false, - "grantType": "password", - "password": "test", - "pkceMethod": "", - "redirectUrl": "test", - "scope": "test", - "state": "test", - "tokenPrefix": "test", - "type": "oauth2", - "username": "test" - }, - "body": {}, - "description": "", - "headers": [], - "method": "GET", - "name": "password", - "parameters": [], - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "mockbin.org/request/any" - }, - { - "_id": "__REQ_5__", - "_type": "request", - "authentication": { - "accessTokenUrl": "test", - "authorizationUrl": "test", - "clientId": "test", - "clientSecret": "test", - "credentialsInBody": false, - "disabled": false, - "grantType": "client_credentials", - "password": "", - "pkceMethod": "", - "redirectUrl": "test", - "scope": "test", - "state": "test", - "tokenPrefix": "test", - "type": "oauth2", - "username": "" - }, - "body": {}, - "description": "", - "headers": [], - "method": "GET", - "name": "client", - "parameters": [], - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "mockbin.org/request/any" - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/postman/postman-export-oauth2-v2_1-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/postman/postman-export-oauth2-v2_1-output.json deleted file mode 100644 index 5670b6cffd..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/postman/postman-export-oauth2-v2_1-output.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "__export_date": "2022-04-04T22:51:36.852Z", - "__export_format": 4, - "__export_source": "insomnia.importers:v0.1.0", - "_type": "export", - "resources": [ - { - "_id": "__GRP_1__", - "_type": "request_group", - "description": "", - "environment": {}, - "name": "Example collection", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "__REQ_1__", - "_type": "request", - "authentication": { - "accessTokenUrl": "exampleAccessTokenUrl", - "authorizationUrl": "exampleAuthorizeUrl", - "clientId": "exampleClientId", - "clientSecret": "exampleClientSecret", - "credentialsInBody": false, - "pkceMethod": "S256", - "disabled": false, - "grantType": "authorization_code", - "password": "", - "scope": "", - "state": "", - "tokenPrefix": "", - "redirectUrl": "exampleCallbackUrl", - "type": "oauth2", - "username": "" - }, - "body": {}, - "description": "", - "headers": [], - "method": "GET", - "name": "Example request with OAuth2", - "parameters": [], - "parentId": "__GRP_1__", - "preRequestScript": "", - "url": "" - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/swagger2/dereferenced-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/swagger2/dereferenced-output.json deleted file mode 100644 index 4124e9fe59..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/swagger2/dereferenced-output.json +++ /dev/null @@ -1,467 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2018-01-09T23:32:46.908Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_type": "workspace", - "_id": "__WORKSPACE_ID__", - "parentId": null, - "name": "Swagger Petstore 1.0.0", - "description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters." - }, - { - "parentId": "__WORKSPACE_ID__", - "name": "Base environment", - "data": { - "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}" - }, - "_type": "environment", - "_id": "__BASE_ENVIRONMENT_ID__" - }, - { - "parentId": "__BASE_ENVIRONMENT_ID__", - "name": "Swagger env", - "data": { - "base_path": "/v2", - "scheme": "http", - "host": "petstore.swagger.io" - }, - "_type": "environment", - "_id": "env___BASE_ENVIRONMENT_ID___sub" - }, - { - "_id": "fld___WORKSPACE_ID__1b034c38", - "_type": "request_group", - "description": "", - "environment": {}, - "name": "pet", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "fld___WORKSPACE_ID__3a21295d", - "_type": "request_group", - "description": "", - "environment": {}, - "name": "store", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "fld___WORKSPACE_ID__12dea96f", - "_type": "request_group", - "description": "", - "environment": {}, - "name": "user", - "parentId": "__WORKSPACE_ID__" - }, - { - "parentId": "fld___WORKSPACE_ID__1b034c38", - "name": "Add a new pet to the store", - "description": "", - "url": "{{ _.base_url }}/pet", - "body": { - "mimeType": "application/json", - "text": "{\n \"id\": 0,\n \"category\": {\n \"id\": 0,\n \"name\": \"string\"\n },\n \"name\": \"doggie\",\n \"photoUrls\": [\n \"string\"\n ],\n \"tags\": [\n {\n \"id\": 0,\n \"name\": \"string\"\n }\n ],\n \"status\": \"string\"\n}" - }, - "method": "POST", - "parameters": [], - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.client_id }}", - "disabled": false, - "grantType": "authorization_code", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "headers": [ - { - "name": "Content-Type", - "disabled": false, - "value": "application/json" - } - ], - "_type": "request", - "_id": "addPet" - }, - { - "parentId": "fld___WORKSPACE_ID__1b034c38", - "name": "Update an existing pet", - "description": "", - "url": "{{ _.base_url }}/pet", - "body": { - "mimeType": "application/json", - "text": "{\n \"id\": 0,\n \"category\": {\n \"id\": 0,\n \"name\": \"string\"\n },\n \"name\": \"doggie\",\n \"photoUrls\": [\n \"string\"\n ],\n \"tags\": [\n {\n \"id\": 0,\n \"name\": \"string\"\n }\n ],\n \"status\": \"string\"\n}" - }, - "method": "PUT", - "parameters": [], - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.client_id }}", - "disabled": false, - "grantType": "authorization_code", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "headers": [ - { - "name": "Content-Type", - "disabled": false, - "value": "application/json" - } - ], - "_type": "request", - "_id": "updatePet" - }, - { - "parentId": "fld___WORKSPACE_ID__1b034c38", - "name": "Finds Pets by status", - "description": "Multiple status values can be provided with comma separated strings", - "url": "{{ _.base_url }}/pet/findByStatus", - "body": {}, - "method": "GET", - "parameters": [ - { - "name": "status", - "disabled": false, - "value": "available" - } - ], - "headers": [], - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.client_id }}", - "disabled": false, - "grantType": "authorization_code", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "_type": "request", - "_id": "findPetsByStatus" - }, - { - "parentId": "fld___WORKSPACE_ID__1b034c38", - "name": "Finds Pets by tags", - "description": "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", - "url": "{{ _.base_url }}/pet/findByTags", - "body": {}, - "method": "GET", - "parameters": [ - { - "name": "tags", - "disabled": false, - "value": "string" - } - ], - "headers": [], - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.client_id }}", - "disabled": false, - "grantType": "authorization_code", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "_type": "request", - "_id": "findPetsByTags" - }, - { - "parentId": "fld___WORKSPACE_ID__1b034c38", - "name": "Find pet by ID", - "description": "Returns a single pet", - "url": "{{ _.base_url }}/pet/{{ _.petId }}", - "body": {}, - "method": "GET", - "parameters": [], - "headers": [ - { - "disabled": false, - "name": "api_key", - "value": "{{ _.api_key }}" - } - ], - "authentication": {}, - "_type": "request", - "_id": "getPetById" - }, - { - "parentId": "fld___WORKSPACE_ID__1b034c38", - "name": "Updates a pet in the store with form data", - "description": "", - "url": "{{ _.base_url }}/pet/{{ _.petId }}", - "body": { - "mimeType": "application/x-www-form-urlencoded", - "params": [ - { - "disabled": true, - "name": "name", - "value": "string" - }, - { - "disabled": true, - "name": "status", - "value": "string" - } - ] - }, - "method": "POST", - "parameters": [], - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.client_id }}", - "disabled": false, - "grantType": "authorization_code", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "headers": [ - { - "name": "Content-Type", - "disabled": false, - "value": "application/x-www-form-urlencoded" - } - ], - "_type": "request", - "_id": "updatePetWithForm" - }, - { - "parentId": "fld___WORKSPACE_ID__1b034c38", - "name": "Deletes a pet", - "description": "", - "url": "{{ _.base_url }}/pet/{{ _.petId }}", - "body": {}, - "method": "DELETE", - "parameters": [], - "headers": [ - { - "name": "api_key", - "disabled": true, - "value": "string" - } - ], - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.client_id }}", - "disabled": false, - "grantType": "authorization_code", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "_type": "request", - "_id": "deletePet" - }, - { - "parentId": "fld___WORKSPACE_ID__1b034c38", - "name": "uploads an image", - "description": "", - "url": "{{ _.base_url }}/pet/{{ _.petId }}/uploadImage", - "body": { - "mimeType": "multipart/form-data", - "params": [ - { - "disabled": true, - "name": "additionalMetadata", - "value": "string" - }, - { - "disabled": true, - "name": "file", - "type": "file" - } - ] - }, - "method": "POST", - "parameters": [], - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.client_id }}", - "disabled": false, - "grantType": "authorization_code", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "headers": [ - { - "name": "Content-Type", - "disabled": false, - "value": "multipart/form-data" - } - ], - "_type": "request", - "_id": "uploadFile" - }, - { - "parentId": "fld___WORKSPACE_ID__3a21295d", - "name": "Returns pet inventories by status", - "description": "Returns a map of status codes to quantities", - "url": "{{ _.base_url }}/store/inventory", - "body": {}, - "method": "GET", - "parameters": [], - "headers": [ - { - "disabled": false, - "name": "api_key", - "value": "{{ _.api_key }}" - } - ], - "authentication": {}, - "_type": "request", - "_id": "getInventory" - }, - { - "parentId": "fld___WORKSPACE_ID__3a21295d", - "name": "Place an order for a pet", - "description": "", - "url": "{{ _.base_url }}/store/order", - "body": {}, - "method": "POST", - "parameters": [], - "headers": [], - "authentication": {}, - "_type": "request", - "_id": "placeOrder" - }, - { - "parentId": "fld___WORKSPACE_ID__3a21295d", - "name": "Find purchase order by ID", - "description": "For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions", - "url": "{{ _.base_url }}/store/order/{{ _.orderId }}", - "body": {}, - "method": "GET", - "parameters": [], - "headers": [], - "authentication": {}, - "_type": "request", - "_id": "getOrderById" - }, - { - "parentId": "fld___WORKSPACE_ID__3a21295d", - "name": "Delete purchase order by ID", - "description": "For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors", - "url": "{{ _.base_url }}/store/order/{{ _.orderId }}", - "body": {}, - "method": "DELETE", - "parameters": [], - "headers": [], - "authentication": {}, - "_type": "request", - "_id": "deleteOrder" - }, - { - "parentId": "fld___WORKSPACE_ID__12dea96f", - "name": "Create user", - "description": "This can only be done by the logged in user.", - "url": "{{ _.base_url }}/user", - "body": {}, - "method": "POST", - "parameters": [], - "headers": [], - "authentication": {}, - "_type": "request", - "_id": "createUser" - }, - { - "parentId": "fld___WORKSPACE_ID__12dea96f", - "name": "Creates list of users with given input array", - "description": "", - "url": "{{ _.base_url }}/user/createWithArray", - "body": {}, - "method": "POST", - "parameters": [], - "headers": [], - "authentication": {}, - "_type": "request", - "_id": "createUsersWithArrayInput" - }, - { - "parentId": "fld___WORKSPACE_ID__12dea96f", - "name": "Creates list of users with given input array", - "description": "", - "url": "{{ _.base_url }}/user/createWithList", - "body": {}, - "method": "POST", - "parameters": [], - "headers": [], - "authentication": {}, - "_type": "request", - "_id": "createUsersWithListInput" - }, - { - "parentId": "fld___WORKSPACE_ID__12dea96f", - "name": "Logs user into the system", - "description": "", - "url": "{{ _.base_url }}/user/login", - "body": {}, - "method": "GET", - "parameters": [ - { - "name": "username", - "disabled": false, - "value": "string" - }, - { - "name": "password", - "disabled": false, - "value": "string" - } - ], - "headers": [], - "authentication": {}, - "_type": "request", - "_id": "loginUser" - }, - { - "parentId": "fld___WORKSPACE_ID__12dea96f", - "name": "Logs out current logged in user session", - "description": "", - "url": "{{ _.base_url }}/user/logout", - "body": {}, - "method": "GET", - "parameters": [], - "headers": [], - "authentication": {}, - "_type": "request", - "_id": "logoutUser" - }, - { - "parentId": "fld___WORKSPACE_ID__12dea96f", - "name": "Get user by user name", - "description": "", - "url": "{{ _.base_url }}/user/{{ _.username }}", - "body": {}, - "method": "GET", - "parameters": [], - "headers": [], - "authentication": {}, - "_type": "request", - "_id": "getUserByName" - }, - { - "parentId": "fld___WORKSPACE_ID__12dea96f", - "name": "Updated user", - "description": "This can only be done by the logged in user.", - "url": "{{ _.base_url }}/user/{{ _.username }}", - "body": {}, - "method": "PUT", - "parameters": [], - "headers": [], - "authentication": {}, - "_type": "request", - "_id": "updateUser" - }, - { - "parentId": "fld___WORKSPACE_ID__12dea96f", - "name": "Delete user", - "description": "This can only be done by the logged in user.", - "url": "{{ _.base_url }}/user/{{ _.username }}", - "body": {}, - "method": "DELETE", - "parameters": [], - "headers": [], - "authentication": {}, - "_type": "request", - "_id": "deleteUser" - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/swagger2/dereferenced-with-tags-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/swagger2/dereferenced-with-tags-output.json deleted file mode 100644 index 9698325f3e..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/swagger2/dereferenced-with-tags-output.json +++ /dev/null @@ -1,467 +0,0 @@ -{ - "__export_date": "2019-11-22T18:54:59.926Z", - "__export_format": 4, - "__export_source": "insomnia.importers:v0.1.0", - "_type": "export", - "resources": [ - { - "_id": "__WORKSPACE_ID__", - "_type": "workspace", - "description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.", - "name": "Swagger Petstore 1.0.0", - "parentId": null - }, - { - "_id": "__BASE_ENVIRONMENT_ID__", - "_type": "environment", - "data": { - "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}" - }, - "name": "Base environment", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "env___BASE_ENVIRONMENT_ID___sub", - "_type": "environment", - "data": { - "base_path": "/v2", - "host": "petstore.swagger.io", - "scheme": "http" - }, - "name": "Swagger env", - "parentId": "__BASE_ENVIRONMENT_ID__" - }, - { - "_id": "fld___WORKSPACE_ID__1b034c38", - "_type": "request_group", - "description": "Everything about your Pets", - "environment": {}, - "name": "pet", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "fld___WORKSPACE_ID__3a21295d", - "_type": "request_group", - "description": "Access to Petstore orders", - "environment": {}, - "name": "store", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "fld___WORKSPACE_ID__12dea96f", - "_type": "request_group", - "description": "Operations about user", - "environment": {}, - "name": "user", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "addPet", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.client_id }}", - "disabled": false, - "grantType": "authorization_code", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": { - "mimeType": "application/json", - "text": "{\n \"id\": 0,\n \"category\": {\n \"id\": 0,\n \"name\": \"string\"\n },\n \"name\": \"doggie\",\n \"photoUrls\": [\n \"string\"\n ],\n \"tags\": [\n {\n \"id\": 0,\n \"name\": \"string\"\n }\n ],\n \"status\": \"string\"\n}" - }, - "description": "", - "headers": [ - { - "disabled": false, - "name": "Content-Type", - "value": "application/json" - } - ], - "method": "POST", - "name": "Add a new pet to the store", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__1b034c38", - "url": "{{ _.base_url }}/pet" - }, - { - "_id": "updatePet", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.client_id }}", - "disabled": false, - "grantType": "authorization_code", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": { - "mimeType": "application/json", - "text": "{\n \"id\": 0,\n \"category\": {\n \"id\": 0,\n \"name\": \"string\"\n },\n \"name\": \"doggie\",\n \"photoUrls\": [\n \"string\"\n ],\n \"tags\": [\n {\n \"id\": 0,\n \"name\": \"string\"\n }\n ],\n \"status\": \"string\"\n}" - }, - "description": "", - "headers": [ - { - "disabled": false, - "name": "Content-Type", - "value": "application/json" - } - ], - "method": "PUT", - "name": "Update an existing pet", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__1b034c38", - "url": "{{ _.base_url }}/pet" - }, - { - "_id": "findPetsByStatus", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.client_id }}", - "disabled": false, - "grantType": "authorization_code", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": {}, - "description": "Multiple status values can be provided with comma separated strings", - "headers": [], - "method": "GET", - "name": "Finds Pets by status", - "parameters": [ - { - "disabled": false, - "name": "status", - "value": "available" - } - ], - "parentId": "fld___WORKSPACE_ID__1b034c38", - "url": "{{ _.base_url }}/pet/findByStatus" - }, - { - "_id": "findPetsByTags", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.client_id }}", - "disabled": false, - "grantType": "authorization_code", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": {}, - "description": "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", - "headers": [], - "method": "GET", - "name": "Finds Pets by tags", - "parameters": [ - { - "disabled": false, - "name": "tags", - "value": "string" - } - ], - "parentId": "fld___WORKSPACE_ID__1b034c38", - "url": "{{ _.base_url }}/pet/findByTags" - }, - { - "_id": "getPetById", - "_type": "request", - "authentication": {}, - "body": {}, - "description": "Returns a single pet", - "headers": [ - { - "disabled": false, - "name": "api_key", - "value": "{{ _.api_key }}" - } - ], - "method": "GET", - "name": "Find pet by ID", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__1b034c38", - "url": "{{ _.base_url }}/pet/{{ _.petId }}" - }, - { - "_id": "updatePetWithForm", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.client_id }}", - "disabled": false, - "grantType": "authorization_code", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": { - "mimeType": "application/x-www-form-urlencoded", - "params": [ - { - "disabled": true, - "name": "name", - "value": "string" - }, - { - "disabled": true, - "name": "status", - "value": "string" - } - ] - }, - "description": "", - "headers": [ - { - "disabled": false, - "name": "Content-Type", - "value": "application/x-www-form-urlencoded" - } - ], - "method": "POST", - "name": "Updates a pet in the store with form data", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__1b034c38", - "url": "{{ _.base_url }}/pet/{{ _.petId }}" - }, - { - "_id": "deletePet", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.client_id }}", - "disabled": false, - "grantType": "authorization_code", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": {}, - "description": "", - "headers": [ - { - "disabled": true, - "name": "api_key", - "value": "string" - } - ], - "method": "DELETE", - "name": "Deletes a pet", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__1b034c38", - "url": "{{ _.base_url }}/pet/{{ _.petId }}" - }, - { - "_id": "uploadFile", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.client_id }}", - "disabled": false, - "grantType": "authorization_code", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": { - "mimeType": "multipart/form-data", - "params": [ - { - "disabled": true, - "name": "additionalMetadata", - "value": "string" - }, - { - "disabled": true, - "name": "file", - "type": "file" - } - ] - }, - "description": "", - "headers": [ - { - "disabled": false, - "name": "Content-Type", - "value": "multipart/form-data" - } - ], - "method": "POST", - "name": "uploads an image", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__1b034c38", - "url": "{{ _.base_url }}/pet/{{ _.petId }}/uploadImage" - }, - { - "_id": "getInventory", - "_type": "request", - "authentication": {}, - "body": {}, - "description": "Returns a map of status codes to quantities", - "headers": [ - { - "disabled": false, - "name": "api_key", - "value": "{{ _.api_key }}" - } - ], - "method": "GET", - "name": "Returns pet inventories by status", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__3a21295d", - "url": "{{ _.base_url }}/store/inventory" - }, - { - "_id": "placeOrder", - "_type": "request", - "authentication": {}, - "body": {}, - "description": "", - "headers": [], - "method": "POST", - "name": "Place an order for a pet", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__3a21295d", - "url": "{{ _.base_url }}/store/order" - }, - { - "_id": "getOrderById", - "_type": "request", - "authentication": {}, - "body": {}, - "description": "For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions", - "headers": [], - "method": "GET", - "name": "Find purchase order by ID", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__3a21295d", - "url": "{{ _.base_url }}/store/order/{{ _.orderId }}" - }, - { - "_id": "deleteOrder", - "_type": "request", - "authentication": {}, - "body": {}, - "description": "For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors", - "headers": [], - "method": "DELETE", - "name": "Delete purchase order by ID", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__3a21295d", - "url": "{{ _.base_url }}/store/order/{{ _.orderId }}" - }, - { - "_id": "createUser", - "_type": "request", - "authentication": {}, - "body": {}, - "description": "This can only be done by the logged in user.", - "headers": [], - "method": "POST", - "name": "Create user", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__12dea96f", - "url": "{{ _.base_url }}/user" - }, - { - "_id": "createUsersWithArrayInput", - "_type": "request", - "authentication": {}, - "body": {}, - "description": "", - "headers": [], - "method": "POST", - "name": "Creates list of users with given input array", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__12dea96f", - "url": "{{ _.base_url }}/user/createWithArray" - }, - { - "_id": "createUsersWithListInput", - "_type": "request", - "authentication": {}, - "body": {}, - "description": "", - "headers": [], - "method": "POST", - "name": "Creates list of users with given input array", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__12dea96f", - "url": "{{ _.base_url }}/user/createWithList" - }, - { - "_id": "loginUser", - "_type": "request", - "authentication": {}, - "body": {}, - "description": "", - "headers": [], - "method": "GET", - "name": "Logs user into the system", - "parameters": [ - { - "disabled": false, - "name": "username", - "value": "string" - }, - { - "disabled": false, - "name": "password", - "value": "string" - } - ], - "parentId": "fld___WORKSPACE_ID__12dea96f", - "url": "{{ _.base_url }}/user/login" - }, - { - "_id": "logoutUser", - "_type": "request", - "authentication": {}, - "body": {}, - "description": "", - "headers": [], - "method": "GET", - "name": "Logs out current logged in user session", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__12dea96f", - "url": "{{ _.base_url }}/user/logout" - }, - { - "_id": "getUserByName", - "_type": "request", - "authentication": {}, - "body": {}, - "description": "", - "headers": [], - "method": "GET", - "name": "Get user by user name", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__12dea96f", - "url": "{{ _.base_url }}/user/{{ _.username }}" - }, - { - "_id": "updateUser", - "_type": "request", - "authentication": {}, - "body": {}, - "description": "This can only be done by the logged in user.", - "headers": [], - "method": "PUT", - "name": "Updated user", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__12dea96f", - "url": "{{ _.base_url }}/user/{{ _.username }}" - }, - { - "_id": "deleteUser", - "_type": "request", - "authentication": {}, - "body": {}, - "description": "This can only be done by the logged in user.", - "headers": [], - "method": "DELETE", - "name": "Delete user", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__12dea96f", - "url": "{{ _.base_url }}/user/{{ _.username }}" - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/swagger2/petstore-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/swagger2/petstore-output.json deleted file mode 100644 index 6ef571dc8d..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/swagger2/petstore-output.json +++ /dev/null @@ -1,467 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2018-01-09T23:32:54.091Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "_type": "workspace", - "_id": "__WORKSPACE_ID__", - "parentId": null, - "name": "Swagger Petstore 1.0.0", - "description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters." - }, - { - "parentId": "__WORKSPACE_ID__", - "name": "Base environment", - "data": { - "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}" - }, - "_type": "environment", - "_id": "__BASE_ENVIRONMENT_ID__" - }, - { - "parentId": "__BASE_ENVIRONMENT_ID__", - "name": "Swagger env", - "data": { - "base_path": "/v2", - "scheme": "http", - "host": "petstore.swagger.io" - }, - "_type": "environment", - "_id": "env___BASE_ENVIRONMENT_ID___sub" - }, - { - "_id": "fld___WORKSPACE_ID__1b034c38", - "_type": "request_group", - "description": "", - "environment": {}, - "name": "pet", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "fld___WORKSPACE_ID__3a21295d", - "_type": "request_group", - "description": "", - "environment": {}, - "name": "store", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "fld___WORKSPACE_ID__12dea96f", - "_type": "request_group", - "description": "", - "environment": {}, - "name": "user", - "parentId": "__WORKSPACE_ID__" - }, - { - "parentId": "fld___WORKSPACE_ID__1b034c38", - "name": "Add a new pet to the store", - "description": "", - "url": "{{ _.base_url }}/pet", - "body": { - "mimeType": "application/json", - "text": "{\n \"id\": 0,\n \"category\": {\n \"id\": 0,\n \"name\": \"string\"\n },\n \"name\": \"doggie\",\n \"photoUrls\": [\n \"string\"\n ],\n \"tags\": [\n {\n \"id\": 0,\n \"name\": \"string\"\n }\n ],\n \"status\": \"string\"\n}" - }, - "method": "POST", - "parameters": [], - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.client_id }}", - "disabled": false, - "grantType": "authorization_code", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "headers": [ - { - "name": "Content-Type", - "disabled": false, - "value": "application/json" - } - ], - "_type": "request", - "_id": "addPet" - }, - { - "parentId": "fld___WORKSPACE_ID__1b034c38", - "name": "Update an existing pet", - "description": "", - "url": "{{ _.base_url }}/pet", - "body": { - "mimeType": "application/json", - "text": "{\n \"id\": 0,\n \"category\": {\n \"id\": 0,\n \"name\": \"string\"\n },\n \"name\": \"doggie\",\n \"photoUrls\": [\n \"string\"\n ],\n \"tags\": [\n {\n \"id\": 0,\n \"name\": \"string\"\n }\n ],\n \"status\": \"string\"\n}" - }, - "method": "PUT", - "parameters": [], - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.client_id }}", - "disabled": false, - "grantType": "authorization_code", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "headers": [ - { - "name": "Content-Type", - "disabled": false, - "value": "application/json" - } - ], - "_type": "request", - "_id": "updatePet" - }, - { - "parentId": "fld___WORKSPACE_ID__1b034c38", - "name": "Finds Pets by status", - "description": "Multiple status values can be provided with comma separated strings", - "url": "{{ _.base_url }}/pet/findByStatus", - "body": {}, - "method": "GET", - "parameters": [ - { - "name": "status", - "disabled": false, - "value": "available" - } - ], - "headers": [], - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.client_id }}", - "disabled": false, - "grantType": "authorization_code", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "_type": "request", - "_id": "findPetsByStatus" - }, - { - "parentId": "fld___WORKSPACE_ID__1b034c38", - "name": "Finds Pets by tags", - "description": "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", - "url": "{{ _.base_url }}/pet/findByTags", - "body": {}, - "method": "GET", - "parameters": [ - { - "name": "tags", - "disabled": false, - "value": "string" - } - ], - "headers": [], - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.client_id }}", - "disabled": false, - "grantType": "authorization_code", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "_type": "request", - "_id": "findPetsByTags" - }, - { - "parentId": "fld___WORKSPACE_ID__1b034c38", - "name": "Find pet by ID", - "description": "Returns a single pet", - "url": "{{ _.base_url }}/pet/{{ _.petId }}", - "body": {}, - "method": "GET", - "parameters": [], - "headers": [ - { - "disabled": false, - "name": "api_key", - "value": "{{ _.api_key }}" - } - ], - "authentication": {}, - "_type": "request", - "_id": "getPetById" - }, - { - "parentId": "fld___WORKSPACE_ID__1b034c38", - "name": "Updates a pet in the store with form data", - "description": "", - "url": "{{ _.base_url }}/pet/{{ _.petId }}", - "body": { - "mimeType": "application/x-www-form-urlencoded", - "params": [ - { - "disabled": true, - "name": "name", - "value": "string" - }, - { - "disabled": true, - "name": "status", - "value": "string" - } - ] - }, - "method": "POST", - "parameters": [], - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.client_id }}", - "disabled": false, - "grantType": "authorization_code", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "headers": [ - { - "name": "Content-Type", - "disabled": false, - "value": "application/x-www-form-urlencoded" - } - ], - "_type": "request", - "_id": "updatePetWithForm" - }, - { - "parentId": "fld___WORKSPACE_ID__1b034c38", - "name": "Deletes a pet", - "description": "", - "url": "{{ _.base_url }}/pet/{{ _.petId }}", - "body": {}, - "method": "DELETE", - "parameters": [], - "headers": [ - { - "name": "api_key", - "disabled": true, - "value": "string" - } - ], - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.client_id }}", - "disabled": false, - "grantType": "authorization_code", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "_type": "request", - "_id": "deletePet" - }, - { - "parentId": "fld___WORKSPACE_ID__1b034c38", - "name": "uploads an image", - "description": "", - "url": "{{ _.base_url }}/pet/{{ _.petId }}/uploadImage", - "body": { - "mimeType": "multipart/form-data", - "params": [ - { - "disabled": true, - "name": "additionalMetadata", - "value": "string" - }, - { - "disabled": true, - "name": "file", - "type": "file" - } - ] - }, - "method": "POST", - "parameters": [], - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.client_id }}", - "disabled": false, - "grantType": "authorization_code", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "headers": [ - { - "name": "Content-Type", - "disabled": false, - "value": "multipart/form-data" - } - ], - "_type": "request", - "_id": "uploadFile" - }, - { - "parentId": "fld___WORKSPACE_ID__3a21295d", - "name": "Returns pet inventories by status", - "description": "Returns a map of status codes to quantities", - "url": "{{ _.base_url }}/store/inventory", - "body": {}, - "method": "GET", - "parameters": [], - "headers": [ - { - "disabled": false, - "name": "api_key", - "value": "{{ _.api_key }}" - } - ], - "authentication": {}, - "_type": "request", - "_id": "getInventory" - }, - { - "parentId": "fld___WORKSPACE_ID__3a21295d", - "name": "Place an order for a pet", - "description": "", - "url": "{{ _.base_url }}/store/order", - "body": {}, - "method": "POST", - "parameters": [], - "headers": [], - "authentication": {}, - "_type": "request", - "_id": "placeOrder" - }, - { - "parentId": "fld___WORKSPACE_ID__3a21295d", - "name": "Find purchase order by ID", - "description": "For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions", - "url": "{{ _.base_url }}/store/order/{{ _.orderId }}", - "body": {}, - "method": "GET", - "parameters": [], - "headers": [], - "authentication": {}, - "_type": "request", - "_id": "getOrderById" - }, - { - "parentId": "fld___WORKSPACE_ID__3a21295d", - "name": "Delete purchase order by ID", - "description": "For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors", - "url": "{{ _.base_url }}/store/order/{{ _.orderId }}", - "body": {}, - "method": "DELETE", - "parameters": [], - "headers": [], - "authentication": {}, - "_type": "request", - "_id": "deleteOrder" - }, - { - "parentId": "fld___WORKSPACE_ID__12dea96f", - "name": "Create user", - "description": "This can only be done by the logged in user.", - "url": "{{ _.base_url }}/user", - "body": {}, - "method": "POST", - "parameters": [], - "headers": [], - "authentication": {}, - "_type": "request", - "_id": "createUser" - }, - { - "parentId": "fld___WORKSPACE_ID__12dea96f", - "name": "Creates list of users with given input array", - "description": "", - "url": "{{ _.base_url }}/user/createWithArray", - "body": {}, - "method": "POST", - "parameters": [], - "headers": [], - "authentication": {}, - "_type": "request", - "_id": "createUsersWithArrayInput" - }, - { - "parentId": "fld___WORKSPACE_ID__12dea96f", - "name": "Creates list of users with given input array", - "description": "", - "url": "{{ _.base_url }}/user/createWithList", - "body": {}, - "method": "POST", - "parameters": [], - "headers": [], - "authentication": {}, - "_type": "request", - "_id": "createUsersWithListInput" - }, - { - "parentId": "fld___WORKSPACE_ID__12dea96f", - "name": "Logs user into the system", - "description": "", - "url": "{{ _.base_url }}/user/login", - "body": {}, - "method": "GET", - "parameters": [ - { - "name": "username", - "disabled": false, - "value": "string" - }, - { - "name": "password", - "disabled": false, - "value": "string" - } - ], - "headers": [], - "authentication": {}, - "_type": "request", - "_id": "loginUser" - }, - { - "parentId": "fld___WORKSPACE_ID__12dea96f", - "name": "Logs out current logged in user session", - "description": "", - "url": "{{ _.base_url }}/user/logout", - "body": {}, - "method": "GET", - "parameters": [], - "headers": [], - "authentication": {}, - "_type": "request", - "_id": "logoutUser" - }, - { - "parentId": "fld___WORKSPACE_ID__12dea96f", - "name": "Get user by user name", - "description": "", - "url": "{{ _.base_url }}/user/{{ _.username }}", - "body": {}, - "method": "GET", - "parameters": [], - "headers": [], - "authentication": {}, - "_type": "request", - "_id": "getUserByName" - }, - { - "parentId": "fld___WORKSPACE_ID__12dea96f", - "name": "Updated user", - "description": "This can only be done by the logged in user.", - "url": "{{ _.base_url }}/user/{{ _.username }}", - "body": {}, - "method": "PUT", - "parameters": [], - "headers": [], - "authentication": {}, - "_type": "request", - "_id": "updateUser" - }, - { - "parentId": "fld___WORKSPACE_ID__12dea96f", - "name": "Delete user", - "description": "This can only be done by the logged in user.", - "url": "{{ _.base_url }}/user/{{ _.username }}", - "body": {}, - "method": "DELETE", - "parameters": [], - "headers": [], - "authentication": {}, - "_type": "request", - "_id": "deleteUser" - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/swagger2/petstore-with-tags-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/swagger2/petstore-with-tags-output.json deleted file mode 100644 index 475823d444..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/swagger2/petstore-with-tags-output.json +++ /dev/null @@ -1,467 +0,0 @@ -{ - "__export_date": "2019-11-22T18:56:19.505Z", - "__export_format": 4, - "__export_source": "insomnia.importers:v0.1.0", - "_type": "export", - "resources": [ - { - "_id": "__WORKSPACE_ID__", - "_type": "workspace", - "description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.", - "name": "Swagger Petstore 1.0.0", - "parentId": null - }, - { - "_id": "__BASE_ENVIRONMENT_ID__", - "_type": "environment", - "data": { - "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}" - }, - "name": "Base environment", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "env___BASE_ENVIRONMENT_ID___sub", - "_type": "environment", - "data": { - "base_path": "/v2", - "host": "petstore.swagger.io", - "scheme": "http" - }, - "name": "Swagger env", - "parentId": "__BASE_ENVIRONMENT_ID__" - }, - { - "_id": "fld___WORKSPACE_ID__1b034c38", - "_type": "request_group", - "description": "Everything about your Pets", - "environment": {}, - "name": "pet", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "fld___WORKSPACE_ID__3a21295d", - "_type": "request_group", - "description": "Access to Petstore orders", - "environment": {}, - "name": "store", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "fld___WORKSPACE_ID__12dea96f", - "_type": "request_group", - "description": "Operations about user", - "environment": {}, - "name": "user", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "addPet", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.client_id }}", - "disabled": false, - "grantType": "authorization_code", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": { - "mimeType": "application/json", - "text": "{\n \"id\": 0,\n \"category\": {\n \"id\": 0,\n \"name\": \"string\"\n },\n \"name\": \"doggie\",\n \"photoUrls\": [\n \"string\"\n ],\n \"tags\": [\n {\n \"id\": 0,\n \"name\": \"string\"\n }\n ],\n \"status\": \"string\"\n}" - }, - "description": "", - "headers": [ - { - "disabled": false, - "name": "Content-Type", - "value": "application/json" - } - ], - "method": "POST", - "name": "Add a new pet to the store", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__1b034c38", - "url": "{{ _.base_url }}/pet" - }, - { - "_id": "updatePet", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.client_id }}", - "disabled": false, - "grantType": "authorization_code", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": { - "mimeType": "application/json", - "text": "{\n \"id\": 0,\n \"category\": {\n \"id\": 0,\n \"name\": \"string\"\n },\n \"name\": \"doggie\",\n \"photoUrls\": [\n \"string\"\n ],\n \"tags\": [\n {\n \"id\": 0,\n \"name\": \"string\"\n }\n ],\n \"status\": \"string\"\n}" - }, - "description": "", - "headers": [ - { - "disabled": false, - "name": "Content-Type", - "value": "application/json" - } - ], - "method": "PUT", - "name": "Update an existing pet", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__1b034c38", - "url": "{{ _.base_url }}/pet" - }, - { - "_id": "findPetsByStatus", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.client_id }}", - "disabled": false, - "grantType": "authorization_code", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": {}, - "description": "Multiple status values can be provided with comma separated strings", - "headers": [], - "method": "GET", - "name": "Finds Pets by status", - "parameters": [ - { - "disabled": false, - "name": "status", - "value": "available" - } - ], - "parentId": "fld___WORKSPACE_ID__1b034c38", - "url": "{{ _.base_url }}/pet/findByStatus" - }, - { - "_id": "findPetsByTags", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.client_id }}", - "disabled": false, - "grantType": "authorization_code", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": {}, - "description": "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", - "headers": [], - "method": "GET", - "name": "Finds Pets by tags", - "parameters": [ - { - "disabled": false, - "name": "tags", - "value": "string" - } - ], - "parentId": "fld___WORKSPACE_ID__1b034c38", - "url": "{{ _.base_url }}/pet/findByTags" - }, - { - "_id": "getPetById", - "_type": "request", - "authentication": {}, - "body": {}, - "description": "Returns a single pet", - "headers": [ - { - "disabled": false, - "name": "api_key", - "value": "{{ _.api_key }}" - } - ], - "method": "GET", - "name": "Find pet by ID", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__1b034c38", - "url": "{{ _.base_url }}/pet/{{ _.petId }}" - }, - { - "_id": "updatePetWithForm", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.client_id }}", - "disabled": false, - "grantType": "authorization_code", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": { - "mimeType": "application/x-www-form-urlencoded", - "params": [ - { - "disabled": true, - "name": "name", - "value": "string" - }, - { - "disabled": true, - "name": "status", - "value": "string" - } - ] - }, - "description": "", - "headers": [ - { - "disabled": false, - "name": "Content-Type", - "value": "application/x-www-form-urlencoded" - } - ], - "method": "POST", - "name": "Updates a pet in the store with form data", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__1b034c38", - "url": "{{ _.base_url }}/pet/{{ _.petId }}" - }, - { - "_id": "deletePet", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.client_id }}", - "disabled": false, - "grantType": "authorization_code", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": {}, - "description": "", - "headers": [ - { - "disabled": true, - "name": "api_key", - "value": "string" - } - ], - "method": "DELETE", - "name": "Deletes a pet", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__1b034c38", - "url": "{{ _.base_url }}/pet/{{ _.petId }}" - }, - { - "_id": "uploadFile", - "_type": "request", - "authentication": { - "authorizationUrl": "http://petstore.swagger.io/oauth/dialog", - "clientId": "{{ _.client_id }}", - "disabled": false, - "grantType": "authorization_code", - "scope": "write:pets read:pets", - "type": "oauth2" - }, - "body": { - "mimeType": "multipart/form-data", - "params": [ - { - "disabled": true, - "name": "additionalMetadata", - "value": "string" - }, - { - "disabled": true, - "name": "file", - "type": "file" - } - ] - }, - "description": "", - "headers": [ - { - "disabled": false, - "name": "Content-Type", - "value": "multipart/form-data" - } - ], - "method": "POST", - "name": "uploads an image", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__1b034c38", - "url": "{{ _.base_url }}/pet/{{ _.petId }}/uploadImage" - }, - { - "_id": "getInventory", - "_type": "request", - "authentication": {}, - "body": {}, - "description": "Returns a map of status codes to quantities", - "headers": [ - { - "disabled": false, - "name": "api_key", - "value": "{{ _.api_key }}" - } - ], - "method": "GET", - "name": "Returns pet inventories by status", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__3a21295d", - "url": "{{ _.base_url }}/store/inventory" - }, - { - "_id": "placeOrder", - "_type": "request", - "authentication": {}, - "body": {}, - "description": "", - "headers": [], - "method": "POST", - "name": "Place an order for a pet", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__3a21295d", - "url": "{{ _.base_url }}/store/order" - }, - { - "_id": "getOrderById", - "_type": "request", - "authentication": {}, - "body": {}, - "description": "For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions", - "headers": [], - "method": "GET", - "name": "Find purchase order by ID", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__3a21295d", - "url": "{{ _.base_url }}/store/order/{{ _.orderId }}" - }, - { - "_id": "deleteOrder", - "_type": "request", - "authentication": {}, - "body": {}, - "description": "For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors", - "headers": [], - "method": "DELETE", - "name": "Delete purchase order by ID", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__3a21295d", - "url": "{{ _.base_url }}/store/order/{{ _.orderId }}" - }, - { - "_id": "createUser", - "_type": "request", - "authentication": {}, - "body": {}, - "description": "This can only be done by the logged in user.", - "headers": [], - "method": "POST", - "name": "Create user", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__12dea96f", - "url": "{{ _.base_url }}/user" - }, - { - "_id": "createUsersWithArrayInput", - "_type": "request", - "authentication": {}, - "body": {}, - "description": "", - "headers": [], - "method": "POST", - "name": "Creates list of users with given input array", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__12dea96f", - "url": "{{ _.base_url }}/user/createWithArray" - }, - { - "_id": "createUsersWithListInput", - "_type": "request", - "authentication": {}, - "body": {}, - "description": "", - "headers": [], - "method": "POST", - "name": "Creates list of users with given input array", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__12dea96f", - "url": "{{ _.base_url }}/user/createWithList" - }, - { - "_id": "loginUser", - "_type": "request", - "authentication": {}, - "body": {}, - "description": "", - "headers": [], - "method": "GET", - "name": "Logs user into the system", - "parameters": [ - { - "disabled": false, - "name": "username", - "value": "string" - }, - { - "disabled": false, - "name": "password", - "value": "string" - } - ], - "parentId": "fld___WORKSPACE_ID__12dea96f", - "url": "{{ _.base_url }}/user/login" - }, - { - "_id": "logoutUser", - "_type": "request", - "authentication": {}, - "body": {}, - "description": "", - "headers": [], - "method": "GET", - "name": "Logs out current logged in user session", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__12dea96f", - "url": "{{ _.base_url }}/user/logout" - }, - { - "_id": "getUserByName", - "_type": "request", - "authentication": {}, - "body": {}, - "description": "", - "headers": [], - "method": "GET", - "name": "Get user by user name", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__12dea96f", - "url": "{{ _.base_url }}/user/{{ _.username }}" - }, - { - "_id": "updateUser", - "_type": "request", - "authentication": {}, - "body": {}, - "description": "This can only be done by the logged in user.", - "headers": [], - "method": "PUT", - "name": "Updated user", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__12dea96f", - "url": "{{ _.base_url }}/user/{{ _.username }}" - }, - { - "_id": "deleteUser", - "_type": "request", - "authentication": {}, - "body": {}, - "description": "This can only be done by the logged in user.", - "headers": [], - "method": "DELETE", - "name": "Delete user", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__12dea96f", - "url": "{{ _.base_url }}/user/{{ _.username }}" - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/swagger2/petstore-yml-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/swagger2/petstore-yml-output.json deleted file mode 100644 index 04dea93d52..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/swagger2/petstore-yml-output.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "__export_date": "2019-11-22T18:54:59.959Z", - "__export_format": 4, - "__export_source": "insomnia.importers:v0.1.0", - "_type": "export", - "resources": [ - { - "_id": "__WORKSPACE_ID__", - "_type": "workspace", - "description": "", - "name": "Swagger Petstore 1.0.0", - "parentId": null - }, - { - "_id": "__BASE_ENVIRONMENT_ID__", - "_type": "environment", - "data": { - "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}" - }, - "name": "Base environment", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "env___BASE_ENVIRONMENT_ID___sub", - "_type": "environment", - "data": { - "base_path": "/v1", - "host": "petstore.swagger.io", - "scheme": "http" - }, - "name": "Swagger env", - "parentId": "__BASE_ENVIRONMENT_ID__" - }, - { - "_id": "fld___WORKSPACE_ID__a8acce24", - "_type": "request_group", - "description": "", - "environment": {}, - "name": "pets", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "listPets", - "_type": "request", - "authentication": {}, - "body": {}, - "description": "", - "headers": [], - "method": "GET", - "name": "List all pets", - "parameters": [ - { - "disabled": true, - "name": "limit", - "value": "0" - } - ], - "parentId": "fld___WORKSPACE_ID__a8acce24", - "url": "{{ _.base_url }}/pets" - }, - { - "_id": "createPets", - "_type": "request", - "authentication": {}, - "body": { - "mimeType": "application/json", - "text": "{\n \"id\": 0,\n \"name\": \"string\",\n \"tag\": \"string\"\n}" - }, - "description": "", - "headers": [ - { - "disabled": false, - "name": "Content-Type", - "value": "application/json" - } - ], - "method": "POST", - "name": "Create a pet", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__a8acce24", - "url": "{{ _.base_url }}/pets" - }, - { - "_id": "showPetById", - "_type": "request", - "authentication": {}, - "body": {}, - "description": "This is a longer description", - "headers": [], - "method": "GET", - "name": "Info for a specific pet", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__a8acce24", - "url": "{{ _.base_url }}/pets/{{ _.petId }}" - }, - { - "_id": "updatePet", - "_type": "request", - "authentication": {}, - "body": { - "mimeType": "application/x-www-form-urlencoded", - "params": [ - { - "disabled": false, - "name": "name", - "value": "string" - } - ] - }, - "description": "", - "headers": [ - { - "disabled": false, - "name": "Content-Type", - "value": "application/x-www-form-urlencoded" - } - ], - "method": "POST", - "name": "Update specific pet", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__a8acce24", - "url": "{{ _.base_url }}/pets/{{ _.petId }}" - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/swagger2/petstore-yml-with-tags-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/swagger2/petstore-yml-with-tags-output.json deleted file mode 100644 index de159e4639..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/swagger2/petstore-yml-with-tags-output.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "__export_date": "2019-11-22T18:56:29.797Z", - "__export_format": 4, - "__export_source": "insomnia.importers:v0.1.0", - "_type": "export", - "resources": [ - { - "_id": "__WORKSPACE_ID__", - "_type": "workspace", - "description": "", - "name": "Swagger Petstore 1.0.0", - "parentId": null - }, - { - "_id": "__BASE_ENVIRONMENT_ID__", - "_type": "environment", - "data": { - "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}" - }, - "name": "Base environment", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "env___BASE_ENVIRONMENT_ID___sub", - "_type": "environment", - "data": { - "base_path": "/v1", - "host": "petstore.swagger.io", - "scheme": "http" - }, - "name": "Swagger env", - "parentId": "__BASE_ENVIRONMENT_ID__" - }, - { - "_id": "fld___WORKSPACE_ID__a8acce24", - "_type": "request_group", - "description": "Everything about your Pets", - "environment": {}, - "name": "pets", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "listPets", - "_type": "request", - "authentication": {}, - "body": {}, - "description": "", - "headers": [], - "method": "GET", - "name": "List all pets", - "parameters": [ - { - "disabled": true, - "name": "limit", - "value": "0" - } - ], - "parentId": "fld___WORKSPACE_ID__a8acce24", - "url": "{{ _.base_url }}/pets" - }, - { - "_id": "createPets", - "_type": "request", - "authentication": {}, - "body": {}, - "description": "", - "headers": [], - "method": "POST", - "name": "Create a pet", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__a8acce24", - "url": "{{ _.base_url }}/pets" - }, - { - "_id": "showPetById", - "_type": "request", - "authentication": {}, - "body": {}, - "description": "", - "headers": [], - "method": "GET", - "name": "Info for a specific pet", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__a8acce24", - "url": "{{ _.base_url }}/pets/{{ _.petId }}" - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/swagger2/user-example-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/swagger2/user-example-output.json deleted file mode 100644 index b916644abd..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/swagger2/user-example-output.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "__export_date": "2019-11-22T18:56:44.435Z", - "__export_format": 4, - "__export_source": "insomnia.importers:v0.1.0", - "_type": "export", - "resources": [ - { - "_id": "__WORKSPACE_ID__", - "_type": "workspace", - "description": "", - "name": "docs v1", - "parentId": null - }, - { - "_id": "__BASE_ENVIRONMENT_ID__", - "_type": "environment", - "data": { - "base_url": "{{ _.scheme }}://{{ _.host }}{{ _.base_path }}" - }, - "name": "Base environment", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "env___BASE_ENVIRONMENT_ID___sub", - "_type": "environment", - "data": { - "base_path": "", - "host": "", - "scheme": "http" - }, - "name": "Swagger env", - "parentId": "__BASE_ENVIRONMENT_ID__" - }, - { - "_id": "fld___WORKSPACE_ID__e214b8a2", - "_type": "request_group", - "description": "", - "environment": {}, - "name": "Document", - "parentId": "__WORKSPACE_ID__" - }, - { - "_id": "ApiId", - "_type": "request", - "authentication": {}, - "body": {}, - "description": "", - "headers": [], - "method": "GET", - "name": "Some list", - "parameters": [], - "parentId": "fld___WORKSPACE_ID__e214b8a2", - "url": "{{ _.base_url }}/api/list" - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/wsdl/addition-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/wsdl/addition-output.json deleted file mode 100644 index dcfd51a963..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/wsdl/addition-output.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2018-01-09T23:32:46.908Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "parentId": "__WORKSPACE_ID__", - "_id": "__GRP_1__", - "_type": "request_group", - "name": "Calculator", - "description": "", - "environment": {} - }, - { - "parentId": "__GRP_1__", - "_id": "__GRP_2__", - "_type": "request_group", - "name": "Calculator", - "description": "", - "environment": {} - }, - { - "parentId": "__GRP_2__", - "preRequestScript": "", - "_id": "__REQ_1__", - "_type": "request", - "name": "Add", - "description": "", - "url": "http://www.dneonline.com/calculator.asmx", - "method": "POST", - "headers": [ - { - "name": "SOAPAction", - "value": "http://tempuri.org/Add" - }, - { - "name": "Content-Type", - "value": "text/xml" - }, - { - "name": "Accept", - "value": "application/xml" - } - ], - "body": { - "mimeType": "text/xml", - "text": "\n\n \n \n \n \n string\n string\n string\n string\n \n \n string\n string\n \n \n \n \n \n 3\n 3\n \n \n" - }, - "authentication": {}, - "parameters": [] - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/fixtures/wsdl/calculator-output.json b/packages/insomnia/src/utils/importers/importers/fixtures/wsdl/calculator-output.json deleted file mode 100644 index 76141f125b..0000000000 --- a/packages/insomnia/src/utils/importers/importers/fixtures/wsdl/calculator-output.json +++ /dev/null @@ -1,144 +0,0 @@ -{ - "_type": "export", - "__export_format": 4, - "__export_date": "2018-01-09T23:32:46.908Z", - "__export_source": "insomnia.importers:v0.1.0", - "resources": [ - { - "parentId": "__WORKSPACE_ID__", - "_id": "__GRP_1__", - "_type": "request_group", - "name": "Calculator", - "description": "", - "environment": {} - }, - { - "parentId": "__GRP_1__", - "_id": "__GRP_2__", - "_type": "request_group", - "name": "Calculator", - "description": "", - "environment": {} - }, - { - "parentId": "__GRP_2__", - "preRequestScript": "", - "_id": "__REQ_1__", - "_type": "request", - "name": "Add", - "description": "", - "url": "http://www.dneonline.com/calculator.asmx", - "method": "POST", - "headers": [ - { - "name": "SOAPAction", - "value": "http://tempuri.org/Add" - }, - { - "name": "Content-Type", - "value": "text/xml" - }, - { - "name": "Accept", - "value": "application/xml" - } - ], - "body": { - "mimeType": "text/xml", - "text": "\n\n \n \n \n \n string\n string\n string\n string\n \n \n string\n string\n \n \n \n \n \n 3\n 3\n \n \n" - }, - "authentication": {}, - "parameters": [] - }, - { - "parentId": "__GRP_2__", - "preRequestScript": "", - "_id": "__REQ_2__", - "_type": "request", - "name": "Subtract", - "description": "", - "url": "http://www.dneonline.com/calculator.asmx", - "method": "POST", - "headers": [ - { - "name": "SOAPAction", - "value": "http://tempuri.org/Subtract" - }, - { - "name": "Content-Type", - "value": "text/xml" - }, - { - "name": "Accept", - "value": "application/xml" - } - ], - "body": { - "mimeType": "text/xml", - "text": "\n\n \n \n \n \n string\n string\n string\n string\n \n \n string\n string\n \n \n \n \n \n 3\n 3\n \n \n" - }, - "authentication": {}, - "parameters": [] - }, - { - "parentId": "__GRP_2__", - "preRequestScript": "", - "_id": "__REQ_3__", - "_type": "request", - "name": "Multiply", - "description": "", - "url": "http://www.dneonline.com/calculator.asmx", - "method": "POST", - "headers": [ - { - "name": "SOAPAction", - "value": "http://tempuri.org/Multiply" - }, - { - "name": "Content-Type", - "value": "text/xml" - }, - { - "name": "Accept", - "value": "application/xml" - } - ], - "body": { - "mimeType": "text/xml", - "text": "\n\n \n \n \n \n string\n string\n string\n string\n \n \n string\n string\n \n \n \n \n \n 3\n 3\n \n \n" - }, - "authentication": {}, - "parameters": [] - }, - { - "parentId": "__GRP_2__", - "preRequestScript": "", - "_id": "__REQ_4__", - "_type": "request", - "name": "Divide", - "description": "", - "url": "http://www.dneonline.com/calculator.asmx", - "method": "POST", - "headers": [ - { - "name": "SOAPAction", - "value": "http://tempuri.org/Divide" - }, - { - "name": "Content-Type", - "value": "text/xml" - }, - { - "name": "Accept", - "value": "application/xml" - } - ], - "body": { - "mimeType": "text/xml", - "text": "\n\n \n \n \n \n string\n string\n string\n string\n \n \n string\n string\n \n \n \n \n \n 3\n 3\n \n \n" - }, - "authentication": {}, - "parameters": [] - } - ] -} diff --git a/packages/insomnia/src/utils/importers/importers/index.test.ts b/packages/insomnia/src/utils/importers/importers/index.test.ts index af03bd2c50..d46496a36b 100644 --- a/packages/insomnia/src/utils/importers/importers/index.test.ts +++ b/packages/insomnia/src/utils/importers/importers/index.test.ts @@ -19,27 +19,21 @@ describe('Fixtures', () => { for (const input of inputs) { const prefix = input.replace(/-input\.[^.]+/, ''); - const output = `${prefix}-output.json`; if (prefix.startsWith('skip')) { continue; } it(input, async () => { - expect.assertions(5); + expect.assertions(3); expect(typeof input).toBe('string'); const inputContents = fs.readFileSync(path.join(dir, input), 'utf8'); expect(typeof inputContents).toBe('string'); - expect(typeof output).toBe('string'); - const outputContents = fs.readFileSync(path.join(dir, output), 'utf8'); - expect(typeof outputContents).toBe('string'); - const results = await convert(inputContents); - const expected = JSON.parse(outputContents); - expected.__export_date = results.data.__export_date; - expect(results.data).toEqual(expected); + results.data.__export_date = ''; + expect(results.data).toMatchSnapshot(); const ids = new Set(); for (const resource of results.data.resources) { diff --git a/packages/insomnia/src/utils/importers/importers/postman.ts b/packages/insomnia/src/utils/importers/importers/postman.ts index eb689b5d8b..10de9245a2 100644 --- a/packages/insomnia/src/utils/importers/importers/postman.ts +++ b/packages/insomnia/src/utils/importers/importers/postman.ts @@ -170,6 +170,7 @@ export class ImportPostman { body: this.importBody(request.body, headers.find(({ key }) => key === 'Content-Type')?.value), authentication, preRequestScript, + metaSortKey: requestCount, }; };