visuddhinanda 2 jaren geleden
bovenliggende
commit
62af9e2617

+ 27 - 0
openapi/public/assets/protocol/resources/channel/delete.yaml

@@ -0,0 +1,27 @@
+delete:
+  summary: delete the specified resource.
+  tags:
+    - channel
+  description: 删除某个channel
+  parameters:
+    - name: channelId
+      in: path
+      required: true
+      description: channel uuid
+      schema:
+        type: string
+  responses:
+    "200": # status code
+      description: A JSON array of channel information
+      content:
+        application/json:
+          schema:
+            type: object
+            properties:
+              ok:
+                type: boolean
+              message:
+                type: string
+              data:
+                type: object
+                $ref: "./channel.yaml"

+ 42 - 0
openapi/public/assets/protocol/resources/channel/update.yaml

@@ -0,0 +1,42 @@
+post:
+  summary: Store a newly created resource in storage.
+  tags:
+    - channel
+  parameters:
+    - name: channelId
+      in: path
+      required: true
+      description: channel uuid
+      schema:
+        type: string
+  requestBody:
+    required: true
+    description: 新建channel参数
+    content:
+      application/json:
+        schema:
+          type: object
+          properties:
+            name:
+              type: string
+              required: true
+            studio:
+              type: string
+          required:
+            - name
+            - studio
+  responses:
+    "200": # status code
+      description: A JSON array of channel information
+      content:
+        application/json:
+          schema:
+            type: object
+            properties:
+              ok:
+                type: boolean
+              message:
+                type: string
+              data:
+                type: object
+                $ref: "./channel.yaml"