summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2019-01-03 13:08:07 +0900
committerShinya Maeda <shinya@gitlab.com>2019-01-03 13:08:07 +0900
commit3da7c17b3bbe838ffa80ff568db2ddbc27e9d3ea (patch)
tree1d40d5b4d7eb6f66ef793c0a66271d275882cd0e
parent709fae879716090a8b0899ca15ddca2eaee988d2 (diff)
downloadgitlab-ce-3da7c17b3bbe838ffa80ff568db2ddbc27e9d3ea.tar.gz
Use explicit option names
-rw-r--r--doc/api/releases.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/releases.md b/doc/api/releases.md
index 019c279d5d9..ec07eca0a9b 100644
--- a/doc/api/releases.md
+++ b/doc/api/releases.md
@@ -250,9 +250,9 @@ POST /projects/:id/releases
Example request:
```sh
-curl -v -H 'Content-Type: application/json' \
- -d '{ "name": "New release", "tag_name": "v0.3", "description": "Super nice release", "assets": { "links": [{ "name": "hoge", "url": "https://google.com" }] } }' \
- -X POST --header "PRIVATE-TOKEN: gDybLx3yrUK_HLp3qPjS" http://localhost:3000/api/v4/projects/24/releases
+curl -header 'Content-Type: application/json' --header "PRIVATE-TOKEN: gDybLx3yrUK_HLp3qPjS" \
+ --data '{ "name": "New release", "tag_name": "v0.3", "description": "Super nice release", "assets": { "links": [{ "name": "hoge", "url": "https://google.com" }] } }' \
+ --request POST http://localhost:3000/api/v4/projects/24/releases
```
Example response:
@@ -338,7 +338,7 @@ PUT /projects/:id/releases/:tag_name
Example request:
```sh
-curl --request PUT -d name="new name" --header "PRIVATE-TOKEN: gDybLx3yrUK_HLp3qPjS" "http://localhost:3000/api/v4/projects/24/releases/v0.1"
+curl --request PUT --data name="new name" --header "PRIVATE-TOKEN: gDybLx3yrUK_HLp3qPjS" "http://localhost:3000/api/v4/projects/24/releases/v0.1"
```
Example response: