BigW Consortium Gitlab

namespaces.md 545 Bytes
Newer Older
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"
  }
]
```