Welcome to mirror list, hosted at ThFree Co, Russian Federation.

namespaces.md « api « doc - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7b3238441f6e5ed7f2327cecb07955eca1e73867 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Namespaces

## List namespaces

Get a list of namespaces. (As user: my namespaces, as admin: all namespaces)

```
GET /namespaces
```

```json
[
  {
    "id": 1,
    "path": "user1",
    "kind": "user"
  },
  {
    "id": 2,
    "path": "group1",
    "kind": "group"
  }
]
```

You can search for namespaces by name or path, see below.

## Search for namespace

Get all namespaces that match your string in their name or path.

```
GET /namespaces?search=foobar
```

```json
[
  {
    "id": 1,
    "path": "user1",
    "kind": "user"
  }
]
```