新闻-新增
开发中
POST
https://api.chasing.comnews/save
请求参数
Body 参数application/json
title
string
标题
desc
string
描述
author
string
作者
image
string
封面
lang_code
string
语言
tag_id
string
标签id,多个逗号分隔
seo_title
string
seo标题
seo_desc
string
seo描述
publish_time
string
发布时间 (秒级时间戳)
seo_key
string
seo关键词
content
string
新闻h5内容
示例
{
"title": "string",
"desc": "string",
"author": "string",
"image": "string",
"lang_code": "string",
"tag_id": "string",
"seo_title": "string",
"seo_desc": "string",
"publish_time": "string",
"seo_key": "string",
"content": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.chasing.comnews/save' \
--header 'Content-Type: application/json' \
--data-raw '{
"title": "string",
"desc": "string",
"author": "string",
"image": "string",
"lang_code": "string",
"tag_id": "string",
"seo_title": "string",
"seo_desc": "string",
"publish_time": "string",
"seo_key": "string",
"content": "string"
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{
"code": 200,
"msg": "请求成功",
"data": {
"id": "2"
}
}
修改于 2024-11-19 10:21:21