- Catalog
- Article
- Page
- Tag
- Product
- Category
- Order
- Customer
- Brand
- FileManager
- Inquiry
- Shipment
- 后台TokenPOST
- 后台概览GET
- 获取当前用户GET
创建文章
开发中
POST
/panel/articles
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
catalog_id
integer
必需
slug
string
必需
正则匹配:
^[a-z0-9-]+
position
integer
必需
viewed
integer
必需
author
string
必需
active
boolean
必需
translations
array [object {8}]
必需
>= 1 items<= 1 items
locale
enum<string>
必需
>= 2 字符<= 2 字符
枚举值:
zh_cnen
title
string
可选
summary
string
可选
image
string
可选
content
string
可选
meta_title
string
可选
meta_description
string
可选
meta_keywords
string
可选
示例
{
"catalog_id": 75,
"slug": "v3iffn28c",
"position": 2,
"viewed": 2,
"author": "ullamco occaecat est dolore incididunt",
"active": false,
"translations": [
{
"locale": "en",
"meta_keywords": "culpa mollit",
"meta_title": "品主些使",
"image": "http://dummyimage.com/400x400",
"title": "平方其达音",
"content": "do dolor proident",
"summary": "tempor",
"meta_description": "occaecat eu culpa"
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://innoshop.test/api/panel/panel/articles' \
--header 'Content-Type: application/json' \
--data-raw '{
"catalog_id": 75,
"slug": "v3iffn28c",
"position": 2,
"viewed": 2,
"author": "ullamco occaecat est dolore incididunt",
"active": false,
"translations": [
{
"locale": "en",
"meta_keywords": "culpa mollit",
"meta_title": "品主些使",
"image": "http://dummyimage.com/400x400",
"title": "平方其达音",
"content": "do dolor proident",
"summary": "tempor",
"meta_description": "occaecat eu culpa"
}
]
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2024-07-04 01:47:09