You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
779 B
54 lines
779 B
|
20 hours ago
|
meta {
|
||
|
|
name: 停用资源
|
||
|
|
type: http
|
||
|
|
seq: 6
|
||
|
|
tags: [
|
||
|
|
generated
|
||
|
|
]
|
||
|
|
}
|
||
|
|
|
||
|
|
post {
|
||
|
|
url: {{baseUrl}}/api/resources/disable
|
||
|
|
body: formUrlEncoded
|
||
|
|
auth: inherit
|
||
|
|
}
|
||
|
|
|
||
|
|
body:form-urlencoded {
|
||
|
|
id: 1
|
||
|
|
}
|
||
|
|
|
||
|
|
docs {
|
||
|
|
# 停用资源
|
||
|
|
`POST /api/resources/disable`
|
||
|
|
停用资源(被启用中角色引用则拒绝)。
|
||
|
|
|
||
|
|
## 请求参数
|
||
|
|
|
||
|
|
| 参数 | 类型 | 必填 | 默认 | 说明 |
|
||
|
|
| --- | --- | --- | --- | --- |
|
||
|
|
| id | string | 是 | - | 资源节点 ID |
|
||
|
|
|
||
|
|
## 请求示例
|
||
|
|
|
||
|
|
请求头:Authorization: Bearer {{token}}
|
||
|
|
Content-Type: application/x-www-form-urlencoded
|
||
|
|
|
||
|
|
POST /api/resources/disable
|
||
|
|
id=1
|
||
|
|
|
||
|
|
## 响应 data 结构
|
||
|
|
|
||
|
|
null
|
||
|
|
|
||
|
|
## 响应示例
|
||
|
|
|
||
|
|
```json
|
||
|
|
{
|
||
|
|
"code": 0,
|
||
|
|
"success": true,
|
||
|
|
"message": "success",
|
||
|
|
"data": null
|
||
|
|
}
|
||
|
|
```
|
||
|
|
}
|