Git Product home page Git Product logo

Comments (3)

xiaoymin avatar xiaoymin commented on May 21, 2024

你好,可以贴一下swagger响应的json吗

from knife4j.

swcumt avatar swcumt commented on May 21, 2024

{
"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.

xiaoymin avatar xiaoymin commented on May 21, 2024

你好,新版本1.7.7 已修复此问题,欢迎升级反馈,谢谢:)

from knife4j.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.