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:
authorTomasz Maczukin <tomasz@maczukin.pl>2017-11-23 16:32:16 +0300
committerTomasz Maczukin <tomasz@maczukin.pl>2017-11-23 19:44:05 +0300
commitdfbfd3c7d7d4677ac99a7f8147a673911e8d4e98 (patch)
tree7dfb3b813f9820fa539eb908dd1ca06719a63348 /doc/api/namespaces.md
parent5c2578e68177e0b5ba48f9d2931602747ad58c91 (diff)
Allow request namespace by ID or path
Diffstat (limited to 'doc/api/namespaces.md')
-rw-r--r--doc/api/namespaces.md22
1 files changed, 21 insertions, 1 deletions
diff --git a/doc/api/namespaces.md b/doc/api/namespaces.md
index d06b0d31c67..25cae5ce1f9 100644
--- a/doc/api/namespaces.md
+++ b/doc/api/namespaces.md
@@ -100,7 +100,7 @@ GET /namespaces/:id
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
-| `id` | integer | yes | ID of the namespace |
+| `id` | integer/string | yes | ID or path of the namespace |
Example request:
@@ -121,3 +121,23 @@ Example response:
"members_count_with_descendants": 2
}
```
+
+Example request:
+
+```bash
+curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v4/namespaces/group1
+```
+
+Example response:
+
+```json
+{
+ "id": 2,
+ "name": "group1",
+ "path": "group1",
+ "kind": "group",
+ "full_path": "group1",
+ "parent_id": "null",
+ "members_count_with_descendants": 2
+}
+```