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/snippets.md')
-rw-r--r--doc/api/snippets.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/snippets.md b/doc/api/snippets.md
index 6fa6be3a43b..84b1baab6c4 100644
--- a/doc/api/snippets.md
+++ b/doc/api/snippets.md
@@ -184,7 +184,7 @@ Parameters:
Example request:
```shell
-curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/snippets/1/files/master/snippet%2Erb/raw"
+curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/snippets/1/files/main/snippet%2Erb/raw"
```
Example response:
@@ -270,7 +270,7 @@ Example response:
"files": [
{
"path": "text.txt",
- "raw_url": "https://gitlab.example.com/-/snippets/1/raw/master/renamed.md"
+ "raw_url": "https://gitlab.example.com/-/snippets/1/raw/main/renamed.md"
}
]
}
@@ -355,7 +355,7 @@ Example response:
"files": [
{
"path": "renamed.md",
- "raw_url": "https://gitlab.example.com/-/snippets/1/raw/master/renamed.md"
+ "raw_url": "https://gitlab.example.com/-/snippets/1/raw/main/renamed.md"
}
]
}