[TOC]
[TOC]
Path: /api/13
Method: GET
接口描述:
Query
参数名称 | 是否必须 | 示例 | 备注 |
---|---|---|---|
qqq | 是 | ||
wwww | 是 | ||
wwwww | 是 |
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
id | number | 必须 | The unique identifier for product | ||
name | string | 必须 | |||
price | number | 必须 | 最小值: 0 | ||
arr | string [] | 非必须 | sdfsdf | item 类型: string | |
tags | object [] | 非必须 | 最小数量: 1 元素是否都不同: true item 类型: object | ||
├─ length | number | 非必须 | |||
├─ width | number | 非必须 | |||
├─ height | number | 非必须 | |||
dimensions | object | 非必须 | |||
├─ length | number | 必须 | |||
├─ width | number | 必须 | |||
├─ height | number | 必须 |
[TOC]
Path: /api/16
Method: GET
接口描述:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
success | boolean | 必须 | 枚举: true,false | ||
data | object | 必须 | |||
├─ success | boolean | 非必须 | 枚举: true | ||
├─ data | object | 非必须 | |||
├─ count | number | 非必须 | |||
├─ rows | object [] | 非必须 | item 类型: object | ||
├─ name | string | 必须 | |||
├─ id | string | 非必须 |
[TOC]
Path: /api/22
Method: POST
接口描述:
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/json | 是 | ||
Body |
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
id | integer | 必须 | The unique identifier for a product | ||
name | string | 必须 | Name of the product | ||
price | number | 必须 | 最小值: 0 |
/**
* 这是一个 response 事例
*/
{
"errcode": 0, //错误编码
"data": {
"id": "uuid-xxx", //产品id
"name": "iphone" //产品名称
}
}
[TOC]
[TOC]
[TOC]