码路前台
  1. 种草文章
码路前台
  • 登录相关
    • 我的信息
      POST
    • 登录
      POST
    • 注册
      POST
    • 重置密码
      POST
    • 登出
      POST
  • 首页
    • 商品列表(搜索+分类筛选+最新上架+销量倒序)
      POST
    • 轮播图
      POST
    • 分类列表
      POST
  • 商品
    • 详情
      POST
    • 收货地址三级列表
      POST
    • 同类商品推荐
      POST
  • 购物车
    • 购物车列表
      POST
    • 添加购物车
      POST
    • 编辑购物车
      POST
    • 删除购物车
      POST
  • 优惠券
    • 领券
      POST
    • 优惠券列表
      POST
  • 订单
    • 修改订单状态
      POST
    • 创建订单
      POST
    • 我的订单列表
      POST
  • 售后
    • 申请售后
    • 我的售后列表
  • 收货地址
    • 添加收货地址
    • 编辑收货地址
    • 删除收货地址
    • 我的收货地址列表
  • 收藏
    • 添加收藏
    • 删除我的收藏(根据id)
    • 删除我的收藏(根据类型+对象id)
    • 我的收藏列表
  • 点赞
    • 点赞
    • 取消点赞(根据id)
    • 取消点赞(根据类型+对象id)
    • 我的点赞列表
  • 评论
    • 评论
    • 删除评论(根据id)
    • 删除评论(根据类型+对象id+父级评论id)
    • 我的评论列表
  • 种草文章
    • 添加
      POST
    • 编辑
      POST
    • 删除
      POST
    • 列表
      POST
    • 文章详情
      POST
    • 我的文章列表
      POST
  • 上传
    • 上传图片
  1. 种草文章

文章详情

开发中
POST
/frontend/article/detail/

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Query 参数
id
string 
必需
示例值:
3
Body 参数multipart/form-data
object {0}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/frontend/article/detail/?id=3'

返回响应

🟢200成功
application/json
Body
code
integer 
必需
message
string 
必需
data
object 
必需
id
integer 
必需
userId
integer 
必需
title
string 
必需
desc
string 
必需
picUrl
string 
必需
isAdmin
integer 
必需
praise
integer 
必需
detail
string 
必需
createdAt
string 
必需
updatedAt
string 
必需
deletedAt
string 
必需
collect
integer 
必需
comments
array [object {7}] 
必需
示例
{
  "code": 1,
  "message": "ok",
  "data": {
    "id": 3,
    "userId": 2,
    "title": "华凌空调真不错a",
    "desc": "京东买的,真的种草了a",
    "picUrl": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fgfs17.gomein.net.cn%2FT108VWB4W_1RCvBVdK_800.jpg%3Fv%3D1&refer=http%3A%2F%2Fgfs17.gomein.net.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1660794257&t=795ee536d5af33788a249b08d0b28b6f",
    "isAdmin": 0,
    "praise": 0,
    "detail": "这里是文章正文a",
    "createdAt": "2022-07-31 15:42:45",
    "updatedAt": "2023-01-04 07:00:09",
    "deletedAt": "",
    "collect": 1,
    "comments": [
      {
        "id": 10,
        "user_id": 1,
        "user": {
          "id": 1,
          "name": "lida",
          "avatar": "https://img1.baidu.com/it/u=2029513305,2137933177&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=472"
        },
        "object_id": 3,
        "type": 2,
        "content": "来个评论",
        "created_at": "2023-01-04 07:20:25"
      },
      {
        "id": 11,
        "user_id": 1,
        "user": {
          "id": 1,
          "name": "lida",
          "avatar": "https://img1.baidu.com/it/u=2029513305,2137933177&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=472"
        },
        "object_id": 3,
        "type": 2,
        "content": "不错嘛",
        "created_at": "2023-01-04 07:20:58"
      }
    ]
  }
}
修改于 2023-01-03 23:42:59
上一页
列表
下一页
我的文章列表
Built with