When adding points, we use the post-insert method, prePointId represents the id of the previous node; if it is 0, it means that a node is inserted at the head;
When adding multiple points, prePointId is -1 to indicate that a node is added after the previous node; in the return value, if id <= 0, it means that the insertion is not successful
{
"mapLabelId": "string",
"coords": [
{
"id": 0,
"prePointId": 0,
"lng": 0,
"lat": 0
}
]
}
curl --location --request POST 'https://192.168.88.11:9781/bvcsp/v1/maplabel/location/create' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"mapLabelId": "string",
"coords": [
{
"id": 0,
"prePointId": 0,
"lng": 0,
"lat": 0
}
]
}'
{
"code": 0,
"msg": "string",
"data": [
{
"id": 0,
"prePointId": 0,
"mapLabelId": "string",
"lng": 0,
"lat": 0
}
]
}