forked from OpenAPITools/openapi-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[POSTMAN] Genarate Postman requests from inline examples (OpenAPITool…
…s#18086) * Process inline examples (if available) * Test generation with inline examples * Update samples * Move test to CI testing suite
- Loading branch information
Showing
3 changed files
with
146 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
"description": "Update the information of an existing user.", | ||
"item": [ | ||
{ | ||
"name": "Update User Information", | ||
"name": "Update First Name", | ||
"request": { | ||
"method": "PATCH", | ||
"header": [ | ||
|
@@ -76,6 +76,128 @@ | |
}, | ||
"description": "Update the information of an existing user." | ||
} | ||
}, | ||
{ | ||
"name": "Update Email", | ||
"request": { | ||
"method": "PATCH", | ||
"header": [ | ||
{ | ||
"key": "Content-Type", | ||
"value": "application/json", | ||
"description": "", | ||
"disabled": false | ||
}, | ||
{ | ||
"key": "Accept", | ||
"value": "application/json", | ||
"description": "", | ||
"disabled": false | ||
}, | ||
{ | ||
"key": "strCode", | ||
"value": "code_one", | ||
"description": "Code as header", | ||
"disabled": false | ||
}, | ||
{ | ||
"key": "strCode2", | ||
"value": "", | ||
"description": "Code as header2", | ||
"disabled": true | ||
} | ||
], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "{\n \"email\" : \"[email protected]\"\n}", | ||
"options": { | ||
"raw": { | ||
"language": "json" | ||
} | ||
} | ||
}, | ||
"url": { | ||
"raw": "{{baseUrl}}/users/:userId", | ||
"host": [ | ||
"{{baseUrl}}" | ||
], | ||
"path": [ | ||
"users", | ||
":userId" | ||
], | ||
"variable": [ | ||
{ | ||
"key": "userId", | ||
"value": "", | ||
"description": "Id of an existing user." | ||
} | ||
], | ||
"query": [ | ||
] | ||
}, | ||
"description": "Update the information of an existing user." | ||
} | ||
}, | ||
{ | ||
"name": "Update Last Name & Date of Birth", | ||
"request": { | ||
"method": "PATCH", | ||
"header": [ | ||
{ | ||
"key": "Content-Type", | ||
"value": "application/json", | ||
"description": "", | ||
"disabled": false | ||
}, | ||
{ | ||
"key": "Accept", | ||
"value": "application/json", | ||
"description": "", | ||
"disabled": false | ||
}, | ||
{ | ||
"key": "strCode", | ||
"value": "code_one", | ||
"description": "Code as header", | ||
"disabled": false | ||
}, | ||
{ | ||
"key": "strCode2", | ||
"value": "", | ||
"description": "Code as header2", | ||
"disabled": true | ||
} | ||
], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "{\n \"lastName\" : \"Baker\",\n \"dateOfBirth\" : \"1985-10-02\"\n}", | ||
"options": { | ||
"raw": { | ||
"language": "json" | ||
} | ||
} | ||
}, | ||
"url": { | ||
"raw": "{{baseUrl}}/users/:userId", | ||
"host": [ | ||
"{{baseUrl}}" | ||
], | ||
"path": [ | ||
"users", | ||
":userId" | ||
], | ||
"variable": [ | ||
{ | ||
"key": "userId", | ||
"value": "", | ||
"description": "Id of an existing user." | ||
} | ||
], | ||
"query": [ | ||
] | ||
}, | ||
"description": "Update the information of an existing user." | ||
} | ||
} | ||
] | ||
} | ||
|
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