-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support URL objects with raw and not much else
URL objects with raw but not a lot else were causing empty URLs, which shoved everything into / instead of gracefully figuring it out. Now if a URL is an object with "raw" it'll use the raw string.
- Loading branch information
Phil Sturgeon
committed
Jan 16, 2018
1 parent
6765409
commit 1827712
Showing
5 changed files
with
801 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
103 changes: 103 additions & 0 deletions
103
testing/e2e/postman-collection2-internal/test-case-1/input.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
{ | ||
"info": { | ||
"name": "User Management API", | ||
"description": "Certainly not a snippet from a real thing at work", | ||
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | ||
}, | ||
"item": [ | ||
{ | ||
"name": "Users", | ||
"description": "User Management API", | ||
"item": [ | ||
{ | ||
"name": "Fetch Users", | ||
"request": { | ||
"method": "GET", | ||
"header": [ | ||
{ | ||
"value": "Bearer {{access_token}}", | ||
"key": "Authorization" | ||
} | ||
], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "" | ||
}, | ||
"url": { | ||
"raw": "http://example.org/users", | ||
"host": [ | ||
"http://example.org" | ||
], | ||
"path": [ | ||
"users" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "Create a User", | ||
"request": { | ||
"method": "POST", | ||
"header": [ | ||
{ | ||
"value": "application/json", | ||
"key": "Content-Type" | ||
}, | ||
{ | ||
"value": "Bearer {{access_token}}", | ||
"key": "Authorization" | ||
} | ||
], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "{\n \"data\" : {\n \"attributes\" : {\n \"username\" : \"user\",\n \"email\" : \"[email protected]\",\n \"firstName\" : \"Some\",\n \"lastName\" : \"User\",\n \"enabled\" : true,\n \"password\" : \"abc123\"\n }\n }\n}" | ||
}, | ||
"url": { | ||
"raw": "http://example.org/users", | ||
"host": [ | ||
"http://example.org" | ||
], | ||
"path": [ | ||
"users" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "Update a User", | ||
"request": { | ||
"method": "PATCH", | ||
"header": [ | ||
{ | ||
"value": "application/json", | ||
"key": "Content-Type" | ||
}, | ||
{ | ||
"value": "Bearer {{access_token}}", | ||
"key": "Authorization" | ||
} | ||
], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "{\n \"data\" : {\n \"attributes\" : {\n \"foo\" : \"bar\",\n \"password\": null\n }\n }\n}" | ||
}, | ||
"url": { | ||
"raw": "http://example.org/users/{{user_id}}", | ||
"host": [ | ||
"http://example.org" | ||
], | ||
"path": [ | ||
"users", | ||
"{{user_id}}" | ||
] | ||
}, | ||
"description": "Update an existing user" | ||
}, | ||
"response": [] | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.