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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-30 18:09:15 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-30 18:09:15 +0300
commit536aa3a1f4b96abc4ca34489bf2cbe503afcded7 (patch)
tree88d08f7dfa29a32d6526773c4fe0fefd9f2bc7d1 /doc/api/releases
parent50ae4065530c4eafbeb7c5ff2c462c48c02947ca (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/releases')
-rw-r--r--doc/api/releases/index.md10
-rw-r--r--doc/api/releases/links.md10
2 files changed, 10 insertions, 10 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"
```
diff --git a/doc/api/releases/links.md b/doc/api/releases/links.md
index 3392cf765c1..2a9e0ccb664 100644
--- a/doc/api/releases/links.md
+++ b/doc/api/releases/links.md
@@ -20,7 +20,7 @@ GET /projects/:id/releases/:tag_name/assets/links
Example request:
-```sh
+```shell
curl --header "PRIVATE-TOKEN: gDybLx3yrUK_HLp3qPjS" "https://gitlab.example.com/api/v4/projects/24/releases/v0.1/assets/links"
```
@@ -59,7 +59,7 @@ GET /projects/:id/releases/:tag_name/assets/links/:link_id
Example request:
-```sh
+```shell
curl --header "PRIVATE-TOKEN: gDybLx3yrUK_HLp3qPjS" "https://gitlab.example.com/api/v4/projects/24/releases/v0.1/assets/links/1"
```
@@ -91,7 +91,7 @@ POST /projects/:id/releases/:tag_name/assets/links
Example request:
-```sh
+```shell
curl --request POST \
--header "PRIVATE-TOKEN: gDybLx3yrUK_HLp3qPjS" \
--data name="awesome-v0.2.dmg" \
@@ -131,7 +131,7 @@ You have to specify at least one of `name` or `url`
Example request:
-```sh
+```shell
curl --request PUT --data name="new name" --header "PRIVATE-TOKEN: gDybLx3yrUK_HLp3qPjS" "https://gitlab.example.com/api/v4/projects/24/releases/v0.1/assets/links/1"
```
@@ -162,7 +162,7 @@ DELETE /projects/:id/releases/:tag_name/assets/links/:link_id
Example request:
-```sh
+```shell
curl --request DELETE --header "PRIVATE-TOKEN: gDybLx3yrUK_HLp3qPjS" "https://gitlab.example.com/api/v4/projects/24/releases/v0.1/assets/links/1"
```