Skip to content

Commit 975ad1f

Browse files
authored
docs: fix parameter format in tidb_http_api.md (#56665)
1 parent 1b6d01b commit 975ad1f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/tidb_http_api.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,11 @@
232232
If the handle is clustered, specify the primary key column values in the query string
233233

234234
```shell
235-
$curl http://{TiDBIP}:10080/mvcc/key/{db}/{table}?${c1}={v1}&${c2}=${v2}
235+
$curl "http://{TiDBIP}:10080/mvcc/key/{db}/{table}?${c1}={v1}&${c2}=${v2}"
236236
```
237237

238238
```shell
239-
$curl http://127.0.0.1:10080/mvcc/key/test/t\?a\=aaa\&b\=2020-01-01
239+
$curl "http://127.0.0.1:10080/mvcc/key/test/t?a=aaa&b=2020-01-01"
240240
{
241241
"key": "7480000000000000365F72016161610000000000FA0419A5420000000000",
242242
"region_id": 52,
@@ -387,14 +387,14 @@
387387
14. Get MVCC Information of a specified index key, argument example: column_name_1=column_value_1&column_name_2=column_value2...
388388

389389
```shell
390-
curl http://{TiDBIP}:10080/mvcc/index/{db}/{table}/{index}/{handle}?${c1}={v1}&${c2}=${v2}
390+
curl "http://{TiDBIP}:10080/mvcc/index/{db}/{table}/{index}/{handle}?${c1}={v1}&${c2}=${v2}"
391391
```
392392

393393
*Hint: For the index column which column type is timezone dependent, e.g. `timestamp`, convert its value to UTC
394394
timezone.*
395395

396396
```shell
397-
$curl http://127.0.0.1:10080/mvcc/index/test/t1/idx/1\?a\=A
397+
$curl "http://127.0.0.1:10080/mvcc/index/test/t1/idx/1?a=A"
398398
{
399399
"info": {
400400
"writes": [
@@ -411,17 +411,17 @@ timezone.*
411411
*Hint: On a partitioned table, use the `table(partition)` pattern as the table name, `t1(p1)` for example:*
412412

413413
```shell
414-
$curl http://127.0.0.1:10080/mvcc/index/test/t1(p1)/idx/1\?a\=A
414+
$curl "http://127.0.0.1:10080/mvcc/index/test/t1(p1)/idx/1?a=A"
415415
```
416416

417417
If the handle is clustered, also specify the primary key column values in the query string
418418

419419
```shell
420-
$curl http://{TiDBIP}:10080/mvcc/index/{db}/{table}/{index}?${c1}={v1}&${c2}=${v2}
420+
$curl "http://{TiDBIP}:10080/mvcc/index/{db}/{table}/{index}?${c1}={v1}&${c2}=${v2}"
421421
```
422422

423423
```shell
424-
$curl http://127.0.0.1:10080/mvcc/index/test/t/idx\?a\=1.1\&b\=111\&c\=1
424+
$curl "http://127.0.0.1:10080/mvcc/index/test/t/idx?a=1.1&b=111&c=1"
425425
{
426426
"key": "74800000000000003B5F69800000000000000203800000000000000105BFF199999999999A013131310000000000FA",
427427
"region_id": 59,
@@ -582,7 +582,7 @@ timezone.*
582582
27. Get count {number} TiDB DDL job history information, start with job {id}
583583
584584
```shell
585-
curl http://{TIDBIP}:10080/ddl/history?start_job_id={id}&limit={number}
585+
curl "http://{TIDBIP}:10080/ddl/history?start_job_id={id}&limit={number}"
586586
```
587587
588588
28. Download TiDB debug info

0 commit comments

Comments
 (0)