{
"device_type": 1,
"language_code": "zh",
"name": "xxxx",
"protocol_type": "xxxxxxxxx",
"remark": "xxxxx",
"http_address": "xxxxxxxxxxx",
"access_address": "xxxxxxx",
"sub_topic_prefix": "xxxxxxxx",
"additional_info": "{}",
"description": "xxxxxxxxxxxxxxxxxxxxxxx"
}
curl --location --request POST 'http://127.0.0.1:9999/api/v1/service' \
--header 'x-token: {{x-token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"device_type": 1,
"language_code": "zh",
"name": "xxxx",
"protocol_type": "xxxxxxxxx",
"remark": "xxxxx",
"http_address": "xxxxxxxxxxx",
"access_address": "xxxxxxx",
"sub_topic_prefix": "xxxxxxxx",
"additional_info": "{}",
"description": "xxxxxxxxxxxxxxxxxxxxxxx"
}'
{
"code": 200,
"message": "create service successfully",
"data": {
"id": "3776a2f3-a619-826e-c2b5-3678cb7f86ea"
}
}