diff options
author | Tomasz Maczukin <tomasz@maczukin.pl> | 2017-11-23 14:32:16 +0100 |
---|---|---|
committer | Tomasz Maczukin <tomasz@maczukin.pl> | 2017-11-23 17:44:05 +0100 |
commit | dfbfd3c7d7d4677ac99a7f8147a673911e8d4e98 (patch) | |
tree | 7dfb3b813f9820fa539eb908dd1ca06719a63348 /doc | |
parent | 5c2578e68177e0b5ba48f9d2931602747ad58c91 (diff) | |
download | gitlab-ce-dfbfd3c7d7d4677ac99a7f8147a673911e8d4e98.tar.gz |
Allow request namespace by ID or path
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/namespaces.md | 22 |
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 +} +``` |