请及时更新项目!
专家用户可通过此接口发布新的知识内容,知识状态默认为{@code PENDING}(待审核)。 请求体中的{@code expertId} 将被当前认证用户覆盖,确保知识所有者的正确性。
curl --location --request POST 'http://101.43.142.153/api/knowledge' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"title": "string",
"content": "string",
"tags": [
"string"
]
}'
{
"code": 0,
"message": "",
"data": {
"id": 0,
"title": "",
"content": "",
"tags": [
""
],
"expert": {
"id": 0,
"username": "",
"password": "",
"address": "",
"role": "",
"addressList": [
{
"id": 0,
"user": {
"id": 0,
"username": "",
"password": "",
"address": "",
"role": "",
"addressList": [
{
"id": 0,
"user": {},
"receiver_name": "",
"phone": "",
"detail": ""
}
]
},
"receiver_name": "",
"phone": "",
"detail": ""
}
]
},
"createTime": "",
"updateTime": ""
}
}