资源列表 - [Levin] - [DONE]
GET
/resources/page
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Query 参数
current
integer <int64>
当前页码
默认值:
1
示例值:
1
size
integer <int64>
分页大小
默认值:
20
示例值:
20
column
string
排序字段
示例值:
id
asc
boolean
排序规则
默认值:
true
示例值:
true
parentId
integer <int64>
父级ID
type
enum<string>
可选
DIRECTORY :DIRECTORY
MENU :MENU
IFRAME :IFRAME
LINK :LINK
BUTTON :BUTTON
枚举值:
DIRECTORYMENUIFRAMELINKBUTTON
示例代码
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:9000/resources/page'
返回响应
🟢200成功
application/json
Body
No schema defined
示例
{
"records": [
{
"id": 0,
"permission": "",
"title": "",
"readonly": false,
"parentId": 0,
"type": "",
"sequence": 0,
"icon": "",
"path": "",
"component": "",
"global": false,
"status": false,
"createdTime": {
"seconds": 0,
"nanos": 0,
"epochSecond": 0,
"nano": 0
},
"description": ""
}
],
"total": 0,
"size": 0,
"current": 0,
"orders": [
{
"column": "",
"asc": false
}
],
"optimizeCountSql": false,
"searchCount": false,
"optimizeJoinOfCountSql": false,
"maxLimit": 0,
"countId": "",
"pages": 0
}