Skip to content

Latest commit

 

History

History
122 lines (81 loc) · 8.24 KB

a.markdown

File metadata and controls

122 lines (81 loc) · 8.24 KB

swagger_test

啊啊啊啊啊啊

eeeeeee

[TOC]

13%0A%3Ca%20id%3D13%3E%20%3C/a%3E

[TOC]

基本信息

Path: /api/13

Method: GET

接口描述:

请求参数

Query

参数名称 是否必须 示例 备注
qqq
wwww
wwwww

返回数据

名称类型是否必须默认值备注其他信息
idnumber必须The unique identifier for product
namestring必须
pricenumber必须

最小值: 0

arrstring []非必须sdfsdf

item 类型: string

tagsobject []非必须

最小数量: 1

元素是否都不同: true

item 类型: object

├─ lengthnumber非必须
├─ widthnumber非必须
├─ heightnumber非必须
dimensionsobject非必须
├─ lengthnumber必须
├─ widthnumber必须
├─ heightnumber必须

16%0A%3Ca%20id%3D16%3E%20%3C/a%3E

[TOC]

基本信息

Path: /api/16

Method: GET

接口描述:

请求参数

返回数据

名称类型是否必须默认值备注其他信息
successboolean必须

枚举: true,false

dataobject必须
├─ successboolean非必须

枚举: true

├─ dataobject非必须
├─ countnumber非必须
├─ rowsobject []非必须

item 类型: object

├─ namestring必须
├─ idstring非必须

22%0A%3Ca%20id%3D22%3E%20%3C/a%3E

[TOC]

基本信息

Path: /api/22

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/json
Body
名称类型是否必须默认值备注其他信息
idinteger必须The unique identifier for a product
namestring必须Name of the product
pricenumber必须

最小值: 0

返回数据

/**
 * 这是一个 response 事例
 */
{
  "errcode": 0, //错误编码
  "data": {
    "id": "uuid-xxx", //产品id
    "name": "iphone" //产品名称
  }
}

ee

[TOC]

tag

[TOC]

%u545C%u545C%u545C

[TOC]