瀏覽代碼

:memo: add api spec

Jeremy Zheng 2 月之前
父節點
當前提交
fbc38bb015
共有 2 個文件被更改,包括 24 次插入0 次删除
  1. 4 0
      langchain-server/README.md
  2. 20 0
      langchain-server/api.yaml

+ 4 - 0
langchain-server/README.md

@@ -13,3 +13,7 @@ $ source $HOME/tmp/python3/bin/activate
 
 > python3 -m rhododendron -h
 ```
+
+## Documents
+
+- [OpenApi Editor](https://editor.swagger.io/)

+ 20 - 0
langchain-server/api.yaml

@@ -0,0 +1,20 @@
+openapi: 3.0.0
+info:
+  title: Rhododendron
+  description: A LLM service
+  version: 2026.4.19
+servers:
+  - url: http://192.168.0.10
+paths:
+  /users:
+    get:
+      summary: Returns a list of users
+      responses:
+        "200":
+          description: A JSON array of user names
+          content:
+            application/json:
+              schema:
+                type: array
+                items:
+                  type: string