Przeglądaj źródła

temp api update

Alexander Belanger 5 lat temu
rodzic
commit
409e0b3511
1 zmienionych plików z 31 dodań i 0 usunięć
  1. 31 0
      docs/API.md

+ 31 - 0
docs/API.md

@@ -16,6 +16,9 @@
 - [`/api/charts`](#apicharts)
   - [`GET /api/charts`](#get-apicharts)
   - [`GET /api/charts/{name}/{revision}`](#get-apichartsnamerevision)
+- [`/api/k8s`](#apik8s)
+  - [`GET /api/k8s/namespaces`](#get-apik8snamespaces)
+
 
 ### Overview
 
@@ -569,4 +572,32 @@ Chart{
 
 **Successful Status Code**: `200`
 
+**Errors:** TBD
+
+### `/api/k8s`
+
+#### `GET /api/k8s/namespaces`
+
+**Description:** 
+
+**URL parameters:** N/A
+
+**Query parameters:** N/A
+
+**Request Body**:
+
+```js
+{
+  "user_id": Number,
+  "k8s": {
+    // The name of the context in the kubeconfig being used
+    "context": String,
+  }
+}
+```
+
+**Successful Response Body**: TBD
+
+**Successful Status Code**: `200`
+
 **Errors:** TBD