Comments (3)
你好,可以贴一下swagger响应的json吗
from knife4j.
{
"swagger": "2.0",
"info": {
"description": "会计管理接口文档",
"version": "1.0",
"title": "会计管理接口文档"
},
"host": "localhost:8080",
"basePath": "/",
"tags": [
{
"name": "成本项目接口",
"description": "Cost Item Controller"
}
],
"paths": {
"/api/costItem/create": {
"post": {
"tags": [
"成本项目接口"
],
"summary": "create",
"operationId": "createUsingPOST",
"consumes": [
"application/json"
],
"produces": [
"/"
],
"parameters": [
{
"in": "body",
"name": "costItem",
"description": "costItem",
"required": true,
"schema": {
"$ref": "#/definitions/CostItemVo"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "object"
}
},
"201": {
"description": "Created"
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
},
"404": {
"description": "Not Found"
}
},
"deprecated": false
}
},
"/api/costItem/getById": {
"post": {
"tags": [
"成本项目接口"
],
"summary": "根据ID获取成本项目",
"operationId": "getByIdUsingPOST",
"consumes": [
"application/json"
],
"produces": [
"/"
],
"parameters": [
{
"in": "body",
"name": "id",
"description": "id",
"required": true,
"schema": {
"$ref": "#/definitions/ID"
}
}
],
"responses": {
"0": {
"description": "success",
"schema": {
"$ref": "#/definitions/ThcResp"
}
},
"200": {
"description": "OK",
"schema": {
"type": "object"
}
},
"201": {
"description": "Created"
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
},
"404": {
"description": "Not Found"
}
},
"deprecated": false
}
},
"/api/costItem/search": {
"post": {
"tags": [
"成本项目接口"
],
"summary": "search",
"operationId": "searchUsingPOST",
"consumes": [
"application/json"
],
"produces": [
"/"
],
"parameters": [
{
"in": "body",
"name": "costItem",
"description": "costItem",
"required": true,
"schema": {
"$ref": "#/definitions/CostItem"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "object"
}
},
"201": {
"description": "Created"
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
},
"404": {
"description": "Not Found"
}
},
"deprecated": false
}
},
"/api/costItem/update": {
"post": {
"tags": [
"成本项目接口"
],
"summary": "update",
"operationId": "updateUsingPOST",
"consumes": [
"application/json"
],
"produces": [
"/"
],
"parameters": [
{
"in": "body",
"name": "costItem",
"description": "costItem",
"required": true,
"schema": {
"$ref": "#/definitions/CostItem"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "object"
}
},
"201": {
"description": "Created"
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
},
"404": {
"description": "Not Found"
}
},
"deprecated": false
}
}
},
"definitions": {
"CostItem": {
"type": "object",
"properties": {
"clinicId": {
"type": "integer",
"format": "int32"
},
"code": {
"type": "string"
},
"costType": {
"type": "integer",
"format": "int32"
},
"createTime": {
"type": "string",
"format": "date-time"
},
"creator": {
"type": "string"
},
"healthIden": {
"type": "integer",
"format": "int32"
},
"id": {
"type": "string"
},
"last": {
"type": "boolean"
},
"name": {
"type": "string"
},
"offset": {
"type": "integer",
"format": "int32"
},
"pageSize": {
"type": "integer",
"format": "int32"
},
"parentId": {
"type": "string"
},
"spell": {
"type": "string"
},
"status": {
"type": "integer",
"format": "int32"
},
"type": {
"type": "integer",
"format": "int32"
},
"updateTime": {
"type": "string",
"format": "date-time"
},
"updator": {
"type": "string"
}
},
"title": "CostItem"
},
"CostItemVo": {
"type": "object",
"properties": {
"clinicId": {
"type": "integer",
"format": "int32"
},
"code": {
"type": "string"
},
"costType": {
"type": "integer",
"format": "int32"
},
"createTime": {
"type": "string",
"format": "date-time"
},
"creator": {
"type": "string"
},
"healthIden": {
"type": "integer",
"format": "int32"
},
"id": {
"type": "string"
},
"last": {
"type": "boolean"
},
"name": {
"type": "string"
},
"offset": {
"type": "integer",
"format": "int32"
},
"pageSize": {
"type": "integer",
"format": "int32"
},
"parentCode": {
"type": "string"
},
"parentId": {
"type": "string"
},
"parentItem": {
"$ref": "#/definitions/CostItemVo"
},
"spell": {
"type": "string"
},
"status": {
"type": "integer",
"format": "int32"
},
"type": {
"type": "integer",
"format": "int32"
},
"updateTime": {
"type": "string",
"format": "date-time"
},
"updator": {
"type": "string"
}
},
"title": "CostItemVo"
},
"ID": {
"type": "object",
"properties": {
"id": {
"type": "string"
}
},
"title": "ID"
},
"ThcResp": {
"type": "object",
"properties": {
"data": {
"type": "object"
},
"head": {
"$ref": "#/definitions/ThcRespHeader"
},
"totalCount": {
"type": "integer",
"format": "int64"
}
},
"title": "ThcResp"
},
"ThcRespHeader": {
"type": "object",
"properties": {
"errCode": {
"type": "integer",
"format": "int32"
},
"errMsg": {
"type": "string"
},
"success": {
"type": "boolean"
}
},
"title": "ThcRespHeader"
}
}
}
from knife4j.
你好,新版本1.7.7 已修复此问题,欢迎升级反馈,谢谢:)
from knife4j.
Related Issues (20)
- doc.html响应示例数据格式混乱 HOT 5
- 通过swagger.v3的注解@ApiResponse定义的Response Content无法展示 HOT 1
- @ApiOperationSupport(ignoreParameters = {"id"})不生效 版本信息如下
- knife4j springboot2.0 + openapi3 部署到服务器上 报错部分资源访问异常 HOT 1
- SpringBoot3 报 javax.servlet.Filter java.lang.ClassNotFoundException错误 HOT 2
- knife4j文档请求异常 HOT 2
- Spring Boot3 版本,接口返回子字段含泛型展示错误 HOT 13
- Kotlin DataClass 解析出重复字段 HOT 3
- knife4j 无法展示多个对象属性
- @Tag name属性 和 @Operation summary属性 字符'/' 在页面中展示时被替换为 '-' HOT 2
- 响应参数及响应实例中不能正确展示 $ref 的值 HOT 2
- yml配置不支持showTagStatus参数,文档前端实现包含这个参数 HOT 3
- knife4j-gateway-spring-boot-starter cannot support fully expanded arguments for predicates HOT 1
- 多层级泛型不显示字段注释 使用spring boot3和spring doc HOT 11
- 生成的md文档,请求参数类型无法正确配置
- 对象作为get请求的参数,无法解析成单个参数,导致请求。 HOT 3
- #716问题在版本较高的boot下依然存在,使用boot3.2.2+knife4j4.5.0 HOT 2
- 求救,升级springboot3后多个对象识别为arg0、arg1 HOT 1
- 什么时候升级ClassGraph,io.github.classgraph版本低 HOT 1
- knife4j UI 不支持swagger3 @RequestBody注解支持, 原生ui支持 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from knife4j.