summaryrefslogtreecommitdiff
path: root/doc/api/todos.md
diff options
context:
space:
mode:
authorwinniehell <git@winniehell.de>2016-08-08 09:47:17 +0200
committerwinniehell <git@winniehell.de>2016-08-09 01:42:50 +0200
commite0a858efcc66246b2811f89b04b3479089345476 (patch)
tree9e4e1b35384813c2055666bfbadc932764a09d4f /doc/api/todos.md
parenta361f314f8f7f00a7541a5af1b8a2a92ced475e9 (diff)
downloadgitlab-ce-e0a858efcc66246b2811f89b04b3479089345476.tar.gz
use long options for curl examples in API documentation (!5703)
Diffstat (limited to 'doc/api/todos.md')
-rw-r--r--doc/api/todos.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/todos.md b/doc/api/todos.md
index c9e1e83e28a..0cd644dfd2f 100644
--- a/doc/api/todos.md
+++ b/doc/api/todos.md
@@ -22,7 +22,7 @@ Parameters:
| `type` | string | no | The type of a todo. Can be either `Issue` or `MergeRequest` |
```bash
-curl -H "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/todos
+curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/todos
```
Example Response:
@@ -194,7 +194,7 @@ Parameters:
| `id` | integer | yes | The ID of a todo |
```bash
-curl -X DELETE -H "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/todos/130
+curl --request DELETE --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/todos/130
```
Example Response:
@@ -284,7 +284,7 @@ DELETE /todos
```
```bash
-curl -X DELETE -H "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/todos
+curl --request DELETE --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/todos
```
Example Response: