summaryrefslogtreecommitdiff
path: root/doc/api/templates
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/templates')
-rw-r--r--doc/api/templates/dockerfiles.md4
-rw-r--r--doc/api/templates/gitignores.md4
-rw-r--r--doc/api/templates/gitlab_ci_ymls.md4
-rw-r--r--doc/api/templates/licenses.md4
4 files changed, 8 insertions, 8 deletions
diff --git a/doc/api/templates/dockerfiles.md b/doc/api/templates/dockerfiles.md
index ee271c31b49..4453d3692c7 100644
--- a/doc/api/templates/dockerfiles.md
+++ b/doc/api/templates/dockerfiles.md
@@ -16,7 +16,7 @@ Get all Dockerfile templates.
GET /templates/dockerfiles
```
-```bash
+```shell
curl https://gitlab.example.com/api/v4/templates/dockerfiles
```
@@ -107,7 +107,7 @@ GET /templates/dockerfiles/:key
| ---------- | ------ | -------- | ----------- |
| `key` | string | yes | The key of the Dockerfile template |
-```bash
+```shell
curl https://gitlab.example.com/api/v4/templates/dockerfiles/Binary
```
diff --git a/doc/api/templates/gitignores.md b/doc/api/templates/gitignores.md
index 45820b24f10..3acd666ad66 100644
--- a/doc/api/templates/gitignores.md
+++ b/doc/api/templates/gitignores.md
@@ -18,7 +18,7 @@ GET /templates/gitignores
Example request:
-```bash
+```shell
curl https://gitlab.example.com/api/v4/templates/gitignores
```
@@ -123,7 +123,7 @@ GET /templates/gitignores/:key
Example request:
-```bash
+```shell
curl https://gitlab.example.com/api/v4/templates/gitignores/Ruby
```
diff --git a/doc/api/templates/gitlab_ci_ymls.md b/doc/api/templates/gitlab_ci_ymls.md
index b8fdb9e233c..c88aee4d9a7 100644
--- a/doc/api/templates/gitlab_ci_ymls.md
+++ b/doc/api/templates/gitlab_ci_ymls.md
@@ -18,7 +18,7 @@ GET /templates/gitlab_ci_ymls
Example request:
-```bash
+```shell
curl https://gitlab.example.com/api/v4/templates/gitlab_ci_ymls
```
@@ -123,7 +123,7 @@ GET /templates/gitlab_ci_ymls/:key
Example request:
-```bash
+```shell
curl https://gitlab.example.com/api/v4/templates/gitlab_ci_ymls/Ruby
```
diff --git a/doc/api/templates/licenses.md b/doc/api/templates/licenses.md
index 92466c73bd3..0b95e4d8065 100644
--- a/doc/api/templates/licenses.md
+++ b/doc/api/templates/licenses.md
@@ -21,7 +21,7 @@ GET /templates/licenses
| --------- | ------- | -------- | --------------------- |
| `popular` | boolean | no | If passed, returns only popular licenses |
-```bash
+```shell
curl https://gitlab.example.com/api/v4/templates/licenses?popular=1
```
@@ -124,7 +124,7 @@ GET /templates/licenses/:key
If you omit the `fullname` parameter but authenticate your request, the name of
the authenticated user will be used to replace the copyright holder placeholder.
-```bash
+```shell
curl --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/templates/licenses/mit?project=My+Cool+Project
```