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)
- 重写OperationCustomizer方法没有按我的要求自定义排序 HOT 2
- 当参数为枚举列表时,没有展示枚举的可用值
- 可不可关闭前端参数校验吗
- Controller类加上@Validated 注解后无法被扫描到 HOT 2
- 二维数据结构解析异常(List<List<Object>>) HOT 3
- 接口排序不生效 HOT 1
- swagger v2 和 v3版本的内置数据请求接口差异
- SpringBoot3.0.2访问knife4j时,出现:jakarta.servlet.ServletException: Handler dispatch failed: java.lang.NoClassDefFoundError: jakarta/validation/constraints/Min HOT 1
- production为true的时候是否考虑不继续执行JakartaServletSecurityBasicAuthFilter避免不必要的session创建? HOT 2
- 不支持spring最新版本的路径匹配模式
- 后续是否会支持 nest.js HOT 1
- 接口返回中包含stripe sdk中的类型界面会卡死
- 4.4.0版本不支持多个请求头吗,调试里不显示只显示一个 HOT 1
- 接口响应数据量超过限制,不在响应内容中显示,请在raw中进行查看 HOT 1
- Knif4j 4.5 ,手动升级springdoc到1.8.0后报错 HOT 1
- 打开knife页面时后台抛NumberFormatException
- 2.0.5版本如何进行聚合
- knife4j-openapi3-jakarta-spring-boot-starter @Schema注解无法对泛型的字段进行解释 HOT 1
- 支持多后端语言实现接口文档渲染
- 接口中不显示字段,其他接口都没有问题,看到的大佬帮忙看下什么问题,很急 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.