- 🦊一分钟,了解 Apifox !
- 极客空间
- 接口文档
- admin
- dashboard
- trends
- image
- imageCategory
- article
- category
- tags
- user
- guestbook
- source
- animation
- resume
- friendlink
- web
切换发布状态
开发中
PUT
/api/admin/article/publish
文章
请求参数
Header 参数
Authorization
string
必需
Body 参数application/json
id
string
文章id
idPublish
boolean
是否发布
示例
{
"id": "string",
"idPublish": true
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'http://localhost:3000/api/admin/article/publish' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "string",
"idPublish": true
}'
返回响应
🟢200成功
application/json
Body
code
integer
响应码
message
string
响应信息
示例
{
"code": 200,
"message": "发布状态切换成功"
}
修改于 2024-07-10 03:07:20