新增字典
开发中
POST
/config/dict/add
config/dict
请求参数
Header 参数
Authorization
string
必需
默认值:
{{TOKEN}}
Body 参数application/json
parentId
integer <int64>
必需
name
string
必需
type
integer <int64>
必需
uniqueKey
string
必需
value
string
必需
orderNum
integer <int64>
必需
remark
string
必需
status
integer <int64>
必需
示例
{
"parentId": 0,
"name": "string",
"type": 0,
"uniqueKey": "string",
"value": "string",
"orderNum": 0,
"remark": "string",
"status": 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 'http://127.0.0.1:8001/config/dict/add' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"parentId": 0,
"name": "string",
"type": 0,
"uniqueKey": "string",
"value": "string",
"orderNum": 0,
"remark": "string",
"status": 0
}'
返回响应
🟢200A successful response.
application/json
Body
No schema defined
示例
null
修改于 2022-08-27 12:18:15