从JSON格式导入敏感词库,支持banwords.json结构。
Request
Add the parameter Authorization
to Headers,whose value is to concatenate the Token after the Bearer. Example:Authorization: Bearer ********************
Token URL: /api/v1/auth/login
or
Body Params application/jsonRequired
{
"description": "string",
"version": "string",
"library": {
"property1": {
"property1": "string",
"property2": "string"
},
"property2": {
"property1": "string",
"property2": "string"
}
}
}
Request Code Samples
curl --location --request POST '/api/v1/banwords/import' \
--header 'Content-Type: application/json' \
--data-raw '{
"description": "string",
"version": "string",
"library": {
"property1": {
"property1": "string",
"property2": "string"
},
"property2": {
"property1": "string",
"property2": "string"
}
}
}'
Responses
{
"code": 0,
"message": "success",
"data": {
"property1": 0,
"property2": 0
}
}
Modified at 2025-09-26 15:37:19