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>2019-11-22 12:06:20 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-11-22 12:06:20 +0300
commit8a3fdede9607c806d88856d46d4f5394b630a006 (patch)
tree869139549ac3bd687fcf1286d6dd50b1d785702e /doc/api/group_badges.md
parent8e75748aabcbcea411f8bbc68936805bc2b5ff0c (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/group_badges.md')
-rw-r--r--doc/api/group_badges.md14
1 files changed, 4 insertions, 10 deletions
diff --git a/doc/api/group_badges.md b/doc/api/group_badges.md
index afefc3925cd..70179ecde29 100644
--- a/doc/api/group_badges.md
+++ b/doc/api/group_badges.md
@@ -26,9 +26,10 @@ GET /groups/:id/badges
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](README.md#namespaced-path-encoding) owned by the authenticated user |
+| `name` | string | no | Name of the badges to return (case-sensitive). |
```bash
-curl --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/groups/:id/badges
+curl --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/groups/:id/badges?name=Coverage
```
Example response:
@@ -36,21 +37,14 @@ Example response:
```json
[
{
+ "name": "Coverage",
"id": 1,
"link_url": "http://example.com/ci_status.svg?project=%{project_path}&ref=%{default_branch}",
"image_url": "https://shields.io/my/badge",
"rendered_link_url": "http://example.com/ci_status.svg?project=example-org/example-project&ref=master",
"rendered_image_url": "https://shields.io/my/badge",
"kind": "group"
- },
- {
- "id": 2,
- "link_url": "http://example.com/ci_status.svg?project=%{project_path}&ref=%{default_branch}",
- "image_url": "https://shields.io/my/badge",
- "rendered_link_url": "http://example.com/ci_status.svg?project=example-org/example-project&ref=master",
- "rendered_image_url": "https://shields.io/my/badge",
- "kind": "group"
- },
+ }
]
```