Selaa lähdekoodia

:memo: add api spec

Jeremy Zheng 1 päivä sitten
vanhempi
sitoutus
fbc38bb015
2 muutettua tiedostoa jossa 24 lisäystä ja 0 poistoa
  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