Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/releases/index.md')
-rw-r--r--doc/api/releases/index.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/api/releases/index.md b/doc/api/releases/index.md
index b5e24188043..e24dea3c278 100644
--- a/doc/api/releases/index.md
+++ b/doc/api/releases/index.md
@@ -19,7 +19,7 @@ GET /projects/:id/releases
Example request:
-```sh
+```shell
curl --header "PRIVATE-TOKEN: gDybLx3yrUK_HLp3qPjS" "https://gitlab.example.com/api/v4/projects/24/releases"
```
@@ -202,7 +202,7 @@ GET /projects/:id/releases/:tag_name
Example request:
-```sh
+```shell
curl --header "PRIVATE-TOKEN: gDybLx3yrUK_HLp3qPjS" "https://gitlab.example.com/api/v4/projects/24/releases/v0.1"
```
@@ -322,7 +322,7 @@ POST /projects/:id/releases
Example request:
-```sh
+```shell
curl --header 'Content-Type: application/json' --header "PRIVATE-TOKEN: gDybLx3yrUK_HLp3qPjS" \
--data '{ "name": "New release", "tag_name": "v0.3", "description": "Super nice release", "milestones": ["v1.0", "v1.0-rc"], "assets": { "links": [{ "name": "hoge", "url": "https://google.com" }] } }' \
--request POST https://gitlab.example.com/api/v4/projects/24/releases
@@ -445,7 +445,7 @@ PUT /projects/:id/releases/:tag_name
Example request:
-```sh
+```shell
curl --header 'Content-Type: application/json' --request PUT --data '{"name": "new name", "milestones": ["v1.2"]}' --header "PRIVATE-TOKEN: gDybLx3yrUK_HLp3qPjS" "https://gitlab.example.com/api/v4/projects/24/releases/v0.1"
```
@@ -544,7 +544,7 @@ DELETE /projects/:id/releases/:tag_name
Example request:
-```sh
+```shell
curl --request DELETE --header "PRIVATE-TOKEN: gDybLx3yrUK_HLp3qPjS" "https://gitlab.example.com/api/v4/projects/24/releases/v0.1"
```