新闻-列表
开发中
POST
https://api.chasing.comnews/index
请求参数
Body 参数application/json
lang_code
string
语种
title
string
标题
page
string
必需
limit
string
必需
示例
{
"lang_code": "string",
"title": "string",
"page": "string",
"limit": "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/index' \
--header 'Content-Type: application/json' \
--data-raw '{
"lang_code": "string",
"title": "string",
"page": "string",
"limit": "string"
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
msg
string
必需
data
object
必需
total
integer
必需
per_page
integer
必需
current_page
integer
必需
last_page
integer
必需
data
array [object {6}]
必需
示例
{
"code": 200,
"msg": "请求成功",
"data": {
"total": 2,
"per_page": 10,
"current_page": 1,
"last_page": 1,
"data": [
{
"title": "我是标题",
"image": "封面",
"lang_code": "语言",
"author": "作者",
"publish_time": "2009-02-14 07:31:30",
"iamge": "http://test.static.chasing.com/封面"
},
{
"title": "我是标题",
"image": "封面",
"lang_code": "语言",
"author": "作者",
"publish_time": "2009-02-14 07:31:30",
"iamge": "http://test.static.chasing.com/封面"
}
]
}
}
修改于 2024-11-19 10:18:31