{
"createTime": "2019-08-24T14:15:22Z",
"dataGroup": {
"createTime": "2019-08-24T14:15:22Z",
"id": "string",
"name": "string",
"remark": "string",
"setting": {},
"type": "http",
"updateTime": "2006-01-02T15:04:05Z07:00"
},
"id": "string",
"key": "string",
"name": "string",
"setting": {
"authorization": {
"data": null,
"type": "Parent"
},
"body": {
"data": null,
"format": "Text",
"params": [
{
"key": "string",
"value": null
}
],
"type": "none"
},
"exOr": true,
"expire": 0,
"headers": [
{
"key": "string",
"value": null
}
],
"inputScript": "string",
"method": "GET",
"outputScript": "string",
"params": {
"path": [
{
"key": "string",
"value": null
}
],
"query": [
{
"key": "string",
"value": null
}
]
},
"rawMode": true,
"sendType": "query",
"sql": "string",
"tableName": "string",
"tags": [
{
"field": "string",
"isPrimaryKey": true,
"operator": "",
"value": null
}
],
"timeout": 0,
"url": "string"
},
"updateTime": "2006-01-02T15:04:05Z07:00",
"variableSchema": [
{
"defaultValue": {
"value": null
},
"paramKey": "string",
"variableType": null
}
]
}
curl --location --request POST '/ds/interface' \
--header 'Authorization: {{ACCESS_TOKEN}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"createTime": "2019-08-24T14:15:22Z",
"dataGroup": {
"createTime": "2019-08-24T14:15:22Z",
"id": "string",
"name": "string",
"remark": "string",
"setting": {},
"type": "http",
"updateTime": "2006-01-02T15:04:05Z07:00"
},
"id": "string",
"key": "string",
"name": "string",
"setting": {
"authorization": {
"data": null,
"type": "Parent"
},
"body": {
"data": null,
"format": "Text",
"params": [
{
"key": "string",
"value": null
}
],
"type": "none"
},
"exOr": true,
"expire": 0,
"headers": [
{
"key": "string",
"value": null
}
],
"inputScript": "string",
"method": "GET",
"outputScript": "string",
"params": {
"path": [
{
"key": "string",
"value": null
}
],
"query": [
{
"key": "string",
"value": null
}
]
},
"rawMode": true,
"sendType": "query",
"sql": "string",
"tableName": "string",
"tags": [
{
"field": "string",
"isPrimaryKey": true,
"operator": "",
"value": null
}
],
"timeout": 0,
"url": "string"
},
"updateTime": "2006-01-02T15:04:05Z07:00",
"variableSchema": [
{
"defaultValue": {
"value": null
},
"paramKey": "string",
"variableType": null
}
]
}'
{
"InsertedID": "5cceba2cc7157e23ae172c28"
}