- industry-category-item-resource
- industry-resource
- company-resource
- company-industry-resource
- company-category-resource
- category-item-resource
- category-resource
- user-resource
- account-resource
- authenticate-controller
- public-user-resource
- survey-attribute-resource
- survey-resource
- survey-main-resource
- survey-data-resource
- rule-resource
- rule-survey-resource
- quota-item-resource
- quota-resource
- data-result-resource
- data-config-resource
- import-detail-contrller
- user-jwt-controller
- export-detail-contrller
- report-resource
- test-data-api
/api/rules
POST
/api/rules
rule-resource
请求参数
Header 参数
Authorization
string
可选
默认值:
Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImF1dGgiOiJST0xFX0FETUlOLFJPTEVfVVNFUiIsImV4cCI6MTY5NDg1NjAyN30.ucimYoIO3BLwsXzgFdT9D2F08goUkTojjvK8NZ41Tu7hMHw7eNaX_jv2pWQY0pQcgGhRSpsxceGthP-n4R5w1w
Body 参数application/json
规则表
id
string
主键
name
string
规则名称
surveyList
array[object (SurveyDTO) {11}]
调查表
id
string
可选
name
string
可选
code
string
可选
memo
string
可选
isResult
boolean
可选
isInfo
boolean
可选
catalog
string
可选
identifyMode
string
可选
quotaList
array[object (QuotaDTO) {8}]
可选
quotaItemList
array[object (QuotaItemDTO) {13}]
可选
attributeList
array[object (SurveyAttributeDTO) {7}]
可选
ruleSurveyList
array[object (RuleSurveyDTO) {3}]
规则调查表
id
string
主键
ruleId
string
规则主键
surveyId
string
调查表主键
dataConfigList
array[object (DataConfigDTO) {5}]
数据处理配置表
id
string
主键
type
string
类型
desc
string
描述
name
string
名称
sql
string
数据库脚本
reportList
array[object (ReportDTO) {7}]
报告表
id
string
可选
name
string
可选
type
string
可选
reportId
string
可选
ruleId
string
可选
reportTemplateId
string
可选
createTime
string <date-time>
可选
示例
{
"id": "string",
"name": "string",
"surveyList": [
{
"id": "string",
"name": "string",
"code": "string",
"memo": "string",
"isResult": true,
"isInfo": true,
"catalog": "string",
"identifyMode": "string",
"quotaList": [
{
"id": "string",
"name": "string",
"code": "string",
"surveyId": "string",
"surveyCode": "string",
"parentId": "string",
"unit": "string",
"quotaItemList": [
{
"id": "string",
"surveyId": "string",
"quotaId": "string",
"code": "string",
"linkType": "string",
"categoryItemId": "string",
"level": 0,
"subName": "string",
"fullName": "string",
"fullCode": "string",
"columnName": "string",
"parentCode": "string",
"valid": true
}
]
}
],
"quotaItemList": [
{
"id": "string",
"surveyId": "string",
"quotaId": "string",
"code": "string",
"linkType": "string",
"categoryItemId": "string",
"level": 0,
"subName": "string",
"fullName": "string",
"fullCode": "string",
"columnName": "string",
"parentCode": "string",
"valid": true
}
],
"attributeList": [
{
"id": "string",
"code": "string",
"name": "string",
"surveyId": "string",
"type": "string",
"isNameField": true,
"isIdField": true
}
]
}
],
"ruleSurveyList": [
{
"id": "string",
"ruleId": "string",
"surveyId": "string"
}
],
"dataConfigList": [
{
"id": "string",
"type": "string",
"desc": "string",
"name": "string",
"sql": "string"
}
],
"reportList": [
{
"id": "string",
"name": "string",
"type": "string",
"reportId": "string",
"ruleId": "string",
"reportTemplateId": "string",
"createTime": "2019-08-24T14:15:22Z"
}
]
}
示例代码
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://localhost:8851/api/rules' \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImF1dGgiOiJST0xFX0FETUlOLFJPTEVfVVNFUiIsImV4cCI6MTY5NDg1NjAyN30.ucimYoIO3BLwsXzgFdT9D2F08goUkTojjvK8NZ41Tu7hMHw7eNaX_jv2pWQY0pQcgGhRSpsxceGthP-n4R5w1w' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "string",
"name": "string",
"surveyList": [
{
"id": "string",
"name": "string",
"code": "string",
"memo": "string",
"isResult": true,
"isInfo": true,
"catalog": "string",
"identifyMode": "string",
"quotaList": [
{
"id": "string",
"name": "string",
"code": "string",
"surveyId": "string",
"surveyCode": "string",
"parentId": "string",
"unit": "string",
"quotaItemList": [
{
"id": "string",
"surveyId": "string",
"quotaId": "string",
"code": "string",
"linkType": "string",
"categoryItemId": "string",
"level": 0,
"subName": "string",
"fullName": "string",
"fullCode": "string",
"columnName": "string",
"parentCode": "string",
"valid": true
}
]
}
],
"quotaItemList": [
{
"id": "string",
"surveyId": "string",
"quotaId": "string",
"code": "string",
"linkType": "string",
"categoryItemId": "string",
"level": 0,
"subName": "string",
"fullName": "string",
"fullCode": "string",
"columnName": "string",
"parentCode": "string",
"valid": true
}
],
"attributeList": [
{
"id": "string",
"code": "string",
"name": "string",
"surveyId": "string",
"type": "string",
"isNameField": true,
"isIdField": true
}
]
}
],
"ruleSurveyList": [
{
"id": "string",
"ruleId": "string",
"surveyId": "string"
}
],
"dataConfigList": [
{
"id": "string",
"type": "string",
"desc": "string",
"name": "string",
"sql": "string"
}
],
"reportList": [
{
"id": "string",
"name": "string",
"type": "string",
"reportId": "string",
"ruleId": "string",
"reportTemplateId": "string",
"createTime": "2019-08-24T14:15:22Z"
}
]
}'
返回响应
🟢200OK
application/json
Body
规则表
id
string
主键
name
string
规则名称
surveyList
array[object (SurveyDTO) {11}]
调查表
id
string
可选
name
string
可选
code
string
可选
memo
string
可选
isResult
boolean
可选
isInfo
boolean
可选
catalog
string
可选
identifyMode
string
可选
quotaList
array[object (QuotaDTO) {8}]
可选
quotaItemList
array[object (QuotaItemDTO) {13}]
可选
attributeList
array[object (SurveyAttributeDTO) {7}]
可选
ruleSurveyList
array[object (RuleSurveyDTO) {3}]
规则调查表
id
string
主键
ruleId
string
规则主键
surveyId
string
调查表主键
dataConfigList
array[object (DataConfigDTO) {5}]
数据处理配置表
id
string
主键
type
string
类型
desc
string
描述
name
string
名称
sql
string
数据库脚本
reportList
array[object (ReportDTO) {7}]
报告表
id
string
可选
name
string
可选
type
string
可选
reportId
string
可选
ruleId
string
可选
reportTemplateId
string
可选
createTime
string <date-time>
可选
示例
{
"id": "string",
"name": "string",
"surveyList": [
{
"id": "string",
"name": "string",
"code": "string",
"memo": "string",
"isResult": true,
"isInfo": true,
"catalog": "string",
"identifyMode": "string",
"quotaList": [
{
"id": "string",
"name": "string",
"code": "string",
"surveyId": "string",
"surveyCode": "string",
"parentId": "string",
"unit": "string",
"quotaItemList": [
{
"id": "string",
"surveyId": "string",
"quotaId": "string",
"code": "string",
"linkType": "string",
"categoryItemId": "string",
"level": 0,
"subName": "string",
"fullName": "string",
"fullCode": "string",
"columnName": "string",
"parentCode": "string",
"valid": true
}
]
}
],
"quotaItemList": [
{
"id": "string",
"surveyId": "string",
"quotaId": "string",
"code": "string",
"linkType": "string",
"categoryItemId": "string",
"level": 0,
"subName": "string",
"fullName": "string",
"fullCode": "string",
"columnName": "string",
"parentCode": "string",
"valid": true
}
],
"attributeList": [
{
"id": "string",
"code": "string",
"name": "string",
"surveyId": "string",
"type": "string",
"isNameField": true,
"isIdField": true
}
]
}
],
"ruleSurveyList": [
{
"id": "string",
"ruleId": "string",
"surveyId": "string"
}
],
"dataConfigList": [
{
"id": "string",
"type": "string",
"desc": "string",
"name": "string",
"sql": "string"
}
],
"reportList": [
{
"id": "string",
"name": "string",
"type": "string",
"reportId": "string",
"ruleId": "string",
"reportTemplateId": "string",
"createTime": "2019-08-24T14:15:22Z"
}
]
}