- discard(废弃)
- demo(模板-参考示例)
- usmile-wx(微信)
- uc(用户统一中心)
- user-web(健康&设备&我的)
- bff-cloud
- iot-sevice(IOT平台)
- cloud-admin(运营后台)
- 无级导航表控制器
- 作者管理表控制器
- 帖子标签配置
- 发现页
- 标签导航关联表控制器
- 帖子标签关联表控制器
- 挂链配置表控制器
- 设备注册登录信息表Controller
- 组件信息表
- 数据字典
- 数据字典类型
- 组件型号关系表
- 售后问题反馈
- 微笑牙博士用户Controller
- 第三方接入-用户信息管理
- 用户账户管理
新增帖子
开发中
POST
https://test.myusmile.online/health/post/create
发现页
请求参数
Header 参数
TOK
string
可选
默认值:
{{token}}
Body 参数application/json
content
string
帖子内容
authorId
integer
发布帖子作者ID
title
string
帖子标题
displayPhoto
string
封面图
displayPhotoWidth
integer
封面图宽度
displayPhotoHeight
integer
封面图高度
displayContent
string
封面文本摘要
contentType
integer
必需
visibility
integer
必需
choice
integer
必需
baseLike
integer
基础点赞量
baseViewCount
integer
基础浏览次数
publishTime
string
发布时间
linkConfigIdList
array[integer]
挂链列表
navigationIdList
array[integer]
分类导航列表
tagConfigIdList
array[integer]
公开标签列表
resouceList
array [object {8}]
资源列表
id
integer
可选
postId
integer
帖子ID
type
integer
可选
orientation
integer
可选
url
string
资源URL
sort
integer
资源排序
createTime
string
创建时间
updateTime
string
更新时间
示例
{
"content": "string",
"authorId": 0,
"title": "string",
"displayPhoto": "string",
"displayPhotoWidth": 0,
"displayPhotoHeight": 0,
"displayContent": "string",
"contentType": 0,
"visibility": 0,
"choice": 0,
"baseLike": 0,
"baseViewCount": 0,
"publishTime": "string",
"linkConfigIdList": [
0
],
"navigationIdList": [
0
],
"tagConfigIdList": [
0
],
"resouceList": [
{
"id": 0,
"postId": 0,
"type": 0,
"orientation": 0,
"url": "string",
"sort": 0,
"createTime": "string",
"updateTime": "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://test.myusmile.online/health/post/create' \
--header 'TOK: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"content": "string",
"authorId": 0,
"title": "string",
"displayPhoto": "string",
"displayPhotoWidth": 0,
"displayPhotoHeight": 0,
"displayContent": "string",
"contentType": 0,
"visibility": 0,
"choice": 0,
"baseLike": 0,
"baseViewCount": 0,
"publishTime": "string",
"linkConfigIdList": [
0
],
"navigationIdList": [
0
],
"tagConfigIdList": [
0
],
"resouceList": [
{
"id": 0,
"postId": 0,
"type": 0,
"orientation": 0,
"url": "string",
"sort": 0,
"createTime": "string",
"updateTime": "string"
}
]
}'
返回响应
🟢200成功
*/*
Body
object {0}
示例
{}