diff options
| author | Shinya Maeda <shinya@gitlab.com> | 2019-01-03 13:08:07 +0900 |
|---|---|---|
| committer | Shinya Maeda <shinya@gitlab.com> | 2019-01-03 13:08:07 +0900 |
| commit | 3da7c17b3bbe838ffa80ff568db2ddbc27e9d3ea (patch) | |
| tree | 1d40d5b4d7eb6f66ef793c0a66271d275882cd0e | |
| parent | 709fae879716090a8b0899ca15ddca2eaee988d2 (diff) | |
| download | gitlab-ce-3da7c17b3bbe838ffa80ff568db2ddbc27e9d3ea.tar.gz | |
Use explicit option names
| -rw-r--r-- | doc/api/releases.md | 8 |
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: |
