.我自己项目的接口内容要通过接口与apipost同步,实现在apipost上能导入我项目的接口出入参等等信息,也能在apipost的分享功能实现导出word文档。
2.目前已经实现入参和请求链接的同步,但是出参的信息一直没法同步到apipost。试验了很多种格式OpenAPI(Swagger)都没办法。
使用的是这个功能,导入之后接口返回参数都是空的,如下图:
想知道什么样的格式能正常导入返回参数:
目前是这样的格式:
{
"openapi": "3.0.0",
"paths": {
"https://------------/callApiJSON.do": {
"post": {
"summary": "药品报表",
"requestBody": {
"content": {
"application/json": {
"schema": {
"APIPOST_ORDERS": [],
"type": "object",
"properties": {},
"required": []
},
"example": "{}"
}
}
},
"description": "互联网药品报表",
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"RespCode": 10000,
"RespMessage": "成功",
"Data": {
"ItemCode": "303397",
"SpellCode": "1024011",
"TotalNum": "1",
"PrescNo": "1213123",
"PhysicSpec": "50mg*24/盒",
"Price": "3200",
"PharmacDate": "2022-03-23 00:00:00",
"Manufacturer": "齐鲁制药有限公司",
"ItemName": "血清肌红蛋白测定",
"Id": "12132",
"SumOfMoney": "3200",
"PharmacDateConversion": "2022-03-23"
}
},
"example": "{\"ItemCode\":\"303397\",\"SpellCode\":\"1024011\",\"TotalNum\":\"1\",\"PrescNo\":\"1213123\",\"PhysicSpec\":\"50mg*24/盒\",\"Price\":\"3200\",\"PharmacDate\":\"2022-03-23 00:00:00\",\"Manufacturer\":\"齐鲁制药有限公司\",\"ItemName\":\"血清肌红蛋白测定\",\"Id\":\"12132\",\"SumOfMoney\":\"3200\",\"PharmacDateConversion\":\"2022-03-23\"}"
}
}
}
},
"tags": [
"互联网医院"
]
}
}
},
"info": {
"description": "",
"title": "",
"version": "1.0.0"
},
"tags": [
{
"name": "互联网医院",
"description": ""
}
]
}
点调试 点响应示例 看下成功示例有么有
点调试 点响应示例也是空的
你试下 swagger json导入呢
试了很多种格式,不管是调试还是设计。都没法导入响应实例。能提供一个可以使用的json实例吗?
您加我吧 ,官网主页二维码,我给你发一个swagger json