分页查询场景
开发中
本地
http://127.0.0.1:9999
本地
http://127.0.0.1:9999
GET
http://127.0.0.1:9999
请求参数
Query 参数
name
string
可选
page
string
可选
示例值:
1
page_size
string
可选
示例值:
2
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/scene?name=&page=1&page_size=2' \
--header 'x-token: {{x-token}}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
list
array [object {8}]
必需
total
integer
必需
示例
{
"code": 200,
"message": "get scene list successfully",
"data": {
"list": [
{
"id": "8af832a3-7e92-3fad-6a2f-de6c0f1e5810",
"name": "fff",
"description": "yanhao",
"tenant_id": "",
"creator": "r5663359-54f3-e23b-801b-e3b82446378e",
"updator": "r5663359-54f3-e23b-801b-e3b82446378e",
"created_at": "2024-03-25T22:24:28.973579Z",
"updated_at": "2024-03-25T22:24:28.973579Z"
},
{
"id": "740364f1-08c7-4e86-ed01-dff874b47bb3",
"name": "fff",
"description": "yanhao",
"tenant_id": "",
"creator": "",
"updator": "50",
"created_at": "2024-03-25T22:24:09.315343Z",
"updated_at": "2024-03-27T16:02:43.560856Z"
}
],
"total": 2
}
}