visuddhinanda il y a 3 ans
Parent
commit
0be68de938

+ 0 - 37
openapi/public/assets/protocol/channel.yaml

@@ -1,37 +0,0 @@
-openapi: 3.0.0
-info:
-  title: Channel API
-  description: 版本风格的增删改查
-  version: 0.1.9
-servers:
-  - url: https://www-hk.wikipali.org/api/v2
-    description: Main (production) server
-  - url: http://spring.visuddhinanda.wikipali.org
-    description: Internal staging server for testing
-paths:
-  /channel:
-    get:
-      summary: Returns a list of channels.
-      description: 返回多行数据。支持关键字搜索,分页,排序
-      parameters:
-        - name: view
-          in: path
-          required: true
-          description: 查询的视图。如:studio,user 等
-          schema:
-            type: string
-            enum:
-              - studio
-              - user
-      responses:
-        "200": # status code
-          description: A JSON array of user names
-          content:
-            application/json:
-              schema:
-                type: object
-                properties:
-                  ok:
-                    type: boolean
-                  message:
-                    type: string

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

@@ -0,0 +1,27 @@
+get:
+  summary: Returns a list of channels.
+  tags:
+    - channel
+  description: 返回多行数据。支持关键字搜索,分页,排序
+  parameters:
+    - name: view
+      in: path
+      required: true
+      description: 查询的视图。如:studio,user 等
+      schema:
+        type: string
+        enum:
+          - studio
+          - user
+  responses:
+    "200": # status code
+      description: A JSON array of user names
+      content:
+        application/json:
+          schema:
+            type: object
+            properties:
+              ok:
+                type: boolean
+              message:
+                type: string

+ 13 - 0
openapi/public/assets/protocol/resources/corpus/pali-text/index.yaml

@@ -0,0 +1,13 @@
+get:
+  summary: Returns a list of users.
+  tags:
+    - corpus
+  responses:
+    "200":
+      description: A JSON array of user names
+      content:
+        application/json:
+          schema:
+            type: array
+            items:
+              type: string