我正在将一个摇摇欲坠的规范文件导入邮递员以创建一个集合,这时,它可以按预期工作,并且该集合随所有请求生成。子文件夹,很好!!但是在更新api时,我需要更新邮递员,以根据新规范更新所有请求。我找不到类似更新之类的操作。我正在尝试将新规范导入邮递员,他说:
I'm importing a swagger specification file into postman to create a collection, at this point, works as expected and the collection is generated with all requests & sub-folders, fine!!. But when the api is updated, I need update the postman to update all requests based on the new specification. I can't find a action like "update" or something else. I'm trying import the new specification into postman and he say:
集合APIName已经存在。 您想做什么?
A collection APIName already exists. What would you like to do?
替换或作为副本导入
一个副本是不可行的选择,然后我使用 replace 并更新了现有的集合,但是所有测试,参数,前提条件脚本都已删除,我需要重新配置所有内容。
a copy its a not feasible option, then I use replace and the existent collection is updated, but all tests, parameters, pre-req scripts are remove and I need reconfigure all again.
我丢失了某种东西,存在一种导入&从规范文件更新现有集合,而不会丢失现有测试&配置?
I'm missing something, exist a way to import & update a existent collection from a specification file, without losing existent tests & configuration?
预先感谢!
推荐答案邮递员不支持截至目前。 链接
Postman does not support this as of now. Link
我从博客。简而言之:
邮递员更新集合API主体示例:
Postman update collection API body sample:
{ "collection": <------- YOUR EXPORTED COLLECTION HERE ---------> }更多推荐
从swagger规范文件更新邮递员收藏
发布评论