API
  1. 内容管理
API
  • 会员中心
    • 登录授权
      • 账号密码登录
      • 获取用户详情
  • 栏目
    • 获取栏目分页列表
      POST
    • 获取栏目详情
      GET
    • 获取栏目树形结构
      GET
  • 内容管理
    • 获取内容分页列表
      POST
    • 获取单条内容详情
      GET
  • 站点配置
    • 获取站点配置
      GET
  • 站点模块
    • 获取站点模块内容
      GET
  1. 内容管理

获取单条内容详情

开发中
GET
/content/details

请求参数

Authorization
在 header 添加参数
X-Token
示例:
X-Token: ********************
Query 参数
id
integer 
文档ID
可选
Header 参数
Accept
string 
响应数据格式
可选
默认值:
application/json
Content-Type
string 
请求体格式
必需
默认值:
application/json
X-Form-Client
string 
可选
客户端类型:h5,app,weixin

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://api.xxx.com/content/details?id=' \
--header 'Accept: application/json' \
--header 'X-Form-Client;' \
--header 'X-Token;'

返回响应

🟢200成功
application/json
Body
msg
string 
必需
data
object 
必需
id
integer 
文档ID
必需
category_id
integer 
所属栏目
必需
category_ids
string 
所属副栏目
必需
model_id
integer 
模型ID
必需
admin_id
integer 
必需
user_id
integer 
用户ID
必需
title
string 
标题
必需
subtitle
string 
副标题
必需
thumb
string 
缩略图
必需
seotitle
string 
SEO标题
必需
keywords
string 
SEO关键词
必需
description
string 
SEO描述
必需
tags
string 
标签
必需
style
string 
必需
weigh
integer 
排序
必需
author
string 
作者
必需
url
string 
必需
diyname
string 
必需
views
integer 
浏览量
必需
flags
string 
文档属性
必需
price
string 
必需
jumplink
string 
必需
comments
integer 
评论数
必需
iscomment
integer 
必需
是否允许评论:1=允许,0=不允许
collection
integer 
收藏数
必需
likes
integer 
点赞数
必需
dislikes
integer 
点踩数
必需
islogin
integer 
必需
show_tpl
string 
必需
status
string 
必需
状态:normal=正常,hidden=隐藏,reject=审核被拒,audit=审核中
lang
string 
语言标识
必需
publish_time
integer 
发布时间
必需
delete_time
null 
必需
update_time
integer 
必需
create_time
integer 
必需
content
string 
内容
必需
code
integer 
必需
示例
{
    "msg": "string",
    "data": {
        "id": 0,
        "category_id": 0,
        "category_ids": "string",
        "model_id": 0,
        "admin_id": 0,
        "user_id": 0,
        "title": "string",
        "subtitle": "string",
        "thumb": "string",
        "seotitle": "string",
        "keywords": "string",
        "description": "string",
        "tags": "string",
        "style": "string",
        "weigh": 0,
        "author": "string",
        "url": "string",
        "diyname": "string",
        "views": 0,
        "flags": "string",
        "price": "string",
        "jumplink": "string",
        "comments": 0,
        "iscomment": 0,
        "collection": 0,
        "likes": 0,
        "dislikes": 0,
        "islogin": 0,
        "show_tpl": "string",
        "status": "string",
        "lang": "string",
        "publish_time": 0,
        "delete_time": null,
        "update_time": 0,
        "create_time": 0,
        "content": "string"
    },
    "code": 0
}
修改于 2024-03-07 07:23:31
上一页
获取内容分页列表
下一页
获取站点配置
Built with