- 🦊一分钟,了解 Apifox !
- 极客空间
- 接口文档
- admin
- dashboard
- trends
- image
- imageCategory
- article
- category
- tags
- user
- guestbook
- source
- animation
- resume
- friendlink
- web
添加动漫
开发中
POST
/api/admin/animation/add
追番
请求参数
Header 参数
Authorization
string
必需
示例值:
token
Body 参数application/json
name
string
动漫名称
desc
string
动漫描述
cover
string
封面图片
score
integer
动漫评分
link
string
动漫链接
type
string
动漫类型
hot
integer
动漫热度
file
null
图片文件
status
integer
动漫状态
remark
string
备注
示例
{
"name": "",
"desc": "",
"cover": "",
"score": 0,
"link": "",
"type": "",
"hot": 0,
"file": null,
"status": 1,
"remark": ""
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:3000/api/admin/animation/add' \
--header 'Authorization: token' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "",
"desc": "",
"cover": "",
"score": 0,
"link": "",
"type": "",
"hot": 0,
"file": null,
"status": 1,
"remark": ""
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
示例
{
"code": 200,
"message": "添加成功"
}
修改于 2024-08-31 08:13:46