diff options
author | Douwe Maan <douwe@gitlab.com> | 2017-03-01 20:31:23 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2017-03-01 20:31:23 +0000 |
commit | b6a945b39354ec2b2c09fc5f6904dfbf8990df26 (patch) | |
tree | e9b90b651a331b7c1117642ebd2f83a2c37ea26d /doc/api/todos.md | |
parent | 7e2ad5d47a1d95281e2a217538dae67107a584c2 (diff) | |
parent | 1ead6a9793f790b4111180781234cc6a43590cc1 (diff) | |
download | gitlab-ce-b6a945b39354ec2b2c09fc5f6904dfbf8990df26.tar.gz |
Merge branch 'api-v4-doc' into 'master'
Use v4 endpoint in API docs
See merge request !9631
Diffstat (limited to 'doc/api/todos.md')
-rw-r--r-- | doc/api/todos.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/todos.md b/doc/api/todos.md index 469f294bdf3..77667a57195 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 --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/todos +curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v4/todos ``` Example Response: @@ -194,7 +194,7 @@ Parameters: | `id` | integer | yes | The ID of a todo | ```bash -curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/todos/130/mark_as_done +curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v4/todos/130/mark_as_done ``` Example Response: @@ -284,7 +284,7 @@ POST /todos/mark_as_done ``` ```bash -curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/todos/donmark_as_donee +curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v4/todos/donmark_as_donee ``` |