新闻-详情
开发中
GET
https://api.chasing.comnews/detail
请求参数
Query 参数
id
string
新闻id
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.chasing.comnews/detail?id'
返回响应
🟢200成功
application/json
Body
code
integer
必需
msg
string
必需
data
object
必需
id
integer
必需
title
string
标题
desc
string
描述
author
string
作者
image
string
封面
lang_code
string
语种
tag_id
string
标签id
seo_title
string
seo标题
seo_desc
string
seo描述
seo_key
string
seo关键词
publish_time
integer
发布时间
content
string
内容
image_url
string
图片地址
lang_name
string
语言名称
tag_title
array[string]
标签名称
示例
{
"code": 200,
"msg": "请求成功",
"data": {
"id": 2,
"title": "我是标题",
"desc": "我是描述",
"author": "作者",
"image": "封面",
"lang_code": "语言",
"tag_id": "123,223,23",
"seo_title": "seo_title",
"seo_desc": "seo_desc",
"seo_key": "seo_key",
"publish_time": 1234567890,
"content": "<dev>更新后的内容</dev>",
"image_url": "http://test.static.chasing.com/封面",
"lang_name": "",
"tag_title": []
}
}
修改于 2024-11-19 10:17:21