产品分页查询
本地
本地
GET
http://127.0.0.1:9999/api/v1/product
产品管理
请求参数
Query 参数
name
string
产品名称
page
integer
页码
page_size
integer
每页数量
product_model
string
产品型号
product_type
string
产品类型
Header 参数
x-token
string
可选
默认值:
{{x-token}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1:9999/api/v1/product?name=&page=&page_size=&product_model=&product_type=' \
--header 'x-token: {{x-token}}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
list
array [object {14}]
必需
total
integer
必需
示例
{
"code": 200,
"message": "Get product list successfully",
"data": {
"list": [
{
"id": "2dee3c7d-f7e1-8704-53fe-599d40d85207",
"name": "Earth-温湿度产品",
"description": "xxxxxxxxxxxx",
"product_type": "环境传感器",
"product_key": "xxxxxxxx",
"product_model": "E-000001",
"image_url": "./images/E.png",
"created_at": "2024-01-12T23:38:52.095064Z",
"remark": "xxxxx",
"additional_info": {
"xx": "xxx",
"xxx": "xxx"
},
"tenant_id": "2f4306df",
"device_config_id": "a54d83e7-2858-8331-3783-f936c4198a66",
"device_config_name": "Earth-温湿度配置"
}
],
"total": 1
}
}
修改于 2024-05-11 10:31:26