Insomnia导入和导出 |
您所在的位置:网站首页 › postman怎么导出json › Insomnia导入和导出 |
官方文档地址:https://support.insomnia.rest/article/172-importing-and-exporting-data Insomnia 支持导入多种文件类型。目前,支持的格式有Insomnia、Postman v2、HAR、OpenAPI、Swagger、WSDL 和Curl。 注: https://github.com/kong/insomnia/tree/develop/packages/insomnia-importers 有一个迁移旧的出口版本为最新,以及配套的外部格式,如支持HAR,邮差, 扬鞭/ OpenAPI的, 并卷曲。如果您想帮助贡献新的内容,请随时向Insomnia的insomnia-importers包提交拉取请求。 根导出对象 { "_type" : "导出" , "__export_format" : 3 , "__export_date" : "2017-01-10T23:15:55.928Z" , "__export_source" : "insomnia.desktop.app:v4.0.13" , “资源”: [{ "_type" : "请求" , “网址”:“https://google.com” }, { “……”:“……” }] } _type: 目前只有可能的值是 export__export_format: 指定导出的数据模式__export_data: 导出时间的 ISO 时间戳resources:所有导出的资源(资源类型见下文) 公共资源属性 { "_type" : "资源类型" , "_id" : "type_111" , "parentId" : "type_4567" , “创建”:1484090000356, “修改”:1484090000356, “……”:“……” } _type:有关可能的资源类型,请参阅以下部分_id: 代表资源的IdparentID:父对象(文件夹或工作区)的资源 IDcreated: 创建资源时modified: 上次修改资源的时间 特殊资源 ID__WORKSPACE_ID__ 映射到当前活动工作区的 ID __BASE_ENVIRONMENT_ID__映射到活动工作区的基础环境的 ID _____ 任何与此格式匹配的值都将在导入时确定性地生成新 ID。 [{ "_type" : "工作区" , “_id”:“__WORKSPACE_1__” }, { "_type" : "请求" , "_id" : "__REQUEST_1__" , “parentId”:“__WORKSPACE_1__” }] 资源类型这些是可以导入/导出的可能资源类型。 workspaceenvironmentrequest_grouprequest 资源类型:workspace { "_type" : "工作区" , "_id" : "__WORKSPACE_ID__" , "parentId" : null , “创建”:1484090000356, “修改”:1484090000356, "name" : "我的 API 项目" , "description" : "这是 https://api.insomnia.rest/ 的 API" } name: 工作区名称description:工作区的纯文本描述 资源类型:environment { "_type" : "环境" , "_id" : "__ENVIRONMENT_1__" , "parentId" : "__WORKSPACE_ID__" , "name" : "开发" , “数据”:{ "base_url" : "https://insomnia.rest" , "user_id" : "user_123" , “……”:“……” } } name: 环境名称data{}:代表环境的用户定义数据 资源类型:request_group { "_type" : "request_group" , "_id" : "__FOLDER_2__" , "name" : "新建文件夹" , "parentId" : "__FOLDER_1__" , “创建”:1484090000356, “修改”:1484090000356, “元排序键”:1, “环境”:{ "url" : "{{ base_url }}/my/awesome/path" , “……”:“……” } } name: 文件夹名称metaSortKey: 相对于其兄弟的排序优先级environment:用户定义的环境覆盖数据 资源类型:request { "_type" : "请求" , "_id" : "__REQUEST_1__" , "parentId" : "__FOLDER_2__" , “创建”:1484090000356, “修改”:1484090000356, "name" : "我的请求" , "方法" : "POST" , "url" : "https://insomnia.rest/foo/bar" , “身体”:{ "mimeType" : "multipart/form-data" , "文本" : "" , “参数”:[{ “类型”:“文件”, "name" : "my_file" , "fileName" : "/home/amy/hello.txt" , “禁用”:假 }, { “类型”:“文本”, "name" : "foo" , “价值”:“酒吧”, “禁用”:假 }, { “类型”:“文本”, "name" : "blah" , “价值”:“酒吧”, “禁用”:真 }] }, “参数”:[{ "name" : "限制" , “价值”:“10”, “禁用”:假 }], “标题”:[{ "name" : "内容类型" , "value" : "application/json" , “禁用”:假 }], “身份验证”:{ "用户名" : "用户" , “密码”:“通过” }, “元排序键”:10 }![]()
|
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |