ソースを参照

add /channel/{channelId}:

visuddhinanda 2 年 前
コミット
c00421fd5d
1 ファイル変更7 行追加3 行削除
  1. 7 3
      openapi/public/assets/protocol/main.yaml

+ 7 - 3
openapi/public/assets/protocol/main.yaml

@@ -4,17 +4,21 @@ info:
   description: International Academy Of Pali Tipitaka(国际巴利三藏学院)
   description: International Academy Of Pali Tipitaka(国际巴利三藏学院)
   version: 2022.12.8
   version: 2022.12.8
 servers:
 servers:
-  - url: https://spring.wikipali.org/api
+  - url: https://spring.wikipali.org/api/v2
     description: Internal staging server for testing
     description: Internal staging server for testing
-  - url: https://www.wikipali.org/api
+  - url: https://www.wikipali.org/api/v2
     description: Main production server
     description: Main production server
+  - url: http://127.0.0.1:8000/api/v2
+    description: local dev
 paths:
 paths:
   /users:
   /users:
     $ref: "./resources/auth/users/index.yaml"
     $ref: "./resources/auth/users/index.yaml"
   /users/sign-in:
   /users/sign-in:
     $ref: "./resources/auth/users/sign-in.yaml"
     $ref: "./resources/auth/users/sign-in.yaml"
   /channel:
   /channel:
-    $ref: "./resources/channel/index.yaml"
+    $ref: "./resources/channel/store.yaml"
+  /channel/{channelId}:
+    $ref: "./resources/channel/show.yaml"
   /palitext:
   /palitext:
     $ref: "./resources/corpus/pali-text/index.yaml"
     $ref: "./resources/corpus/pali-text/index.yaml"
   /discussion:
   /discussion: