From 3e00a6f25a28edbbd34ad318d3110e11c19f70bc Mon Sep 17 00:00:00 2001 From: kennytm Date: Wed, 12 Mar 2025 16:45:49 +0800 Subject: [PATCH] ticdc: Remove unnecessary quotation marks from curl command --- ticdc/ticdc-open-api-v2.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ticdc/ticdc-open-api-v2.md b/ticdc/ticdc-open-api-v2.md index 2ae53063035cc..a2ec0930f9038 100644 --- a/ticdc/ticdc-open-api-v2.md +++ b/ticdc/ticdc-open-api-v2.md @@ -380,7 +380,7 @@ The `sink.csv` parameters are described as follows: The following request creates a replication task with an ID of `test5` and `sink_uri` of `blackhome://`. ```shell -curl -X POST -H "'Content-type':'application/json'" http://127.0.0.1:8300/api/v2/changefeeds -d '{"changefeed_id":"test5","sink_uri":"blackhole://"}' +curl -X POST -H "Content-type: application/json" http://127.0.0.1:8300/api/v2/changefeeds -d '{"changefeed_id":"test5","sink_uri":"blackhole://"}' ``` If the request is successful, `200 OK` is returned. If the request fails, an error message and error code are returned. @@ -678,7 +678,7 @@ The meanings of the above parameters are the same as those in the [Create a repl The following request updates the `target_ts` of the replication task with the ID `test1` to `32`. ```shell - curl -X PUT -H "'Content-type':'application/json'" http://127.0.0.1:8300/api/v2/changefeeds/test1 -d '{"target_ts":32}' +curl -X PUT -H "Content-type: application/json" http://127.0.0.1:8300/api/v2/changefeeds/test1 -d '{"target_ts":32}' ``` If the request is successful, `200 OK` is returned. If the request fails, an error message and error code are returned. The meanings of the JSON response body are the same as those in the [Create a replication task](#create-a-replication-task) section. See that section for details. @@ -1068,7 +1068,7 @@ This API is a synchronous interface. If the request is successful, `200 OK` is r ### Example ```shell -curl -X POST -H "'Content-type':'application/json'" http://127.0.0.1:8300/api/v2/log -d '{"log_level":"debug"}' +curl -X POST -H "Content-type: application/json" http://127.0.0.1:8300/api/v2/log -d '{"log_level":"debug"}' ``` If the request is successful, `200 OK` is returned. If the request fails, an error message and error code are returned.