添加数据
开发中
POST
/person
请求参数
Header 参数
Authorization
string
可选
默认值:
Bearer {{jwtToken}}
Body 参数application/json
name
string
名称
gender
number
必需
birthDate
string
必需
示例
{
"lastName": "",
"name": "仕发",
"nickName": "",
"gender": 1,
"parentId": 1,
"spouseId": null,
"living": 0,
"buriedAddr": "",
"cnTime": "",
"birthDate": "",
"birthDateType": 1,
"deathDate": "",
"photo": "",
"biography": ""
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/person' \
--header 'Authorization: Bearer {{jwtToken}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"lastName": "",
"name": "仕发",
"nickName": "",
"gender": 1,
"parentId": 1,
"spouseId": null,
"living": 0,
"buriedAddr": "",
"cnTime": "",
"birthDate": "",
"birthDateType": 1,
"deathDate": "",
"photo": "",
"biography": ""
}'
返回响应
🔴500服务器错误
application/json
Body
code
integer
必需
error
string
必需
message
string
必需
originUrl
string
必需
示例
{
"code": 0,
"error": "string",
"message": "string",
"originUrl": "string"
}
修改于 2024-11-15 07:12:53