mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
feat: docs for api endpoints to generate openapi specification (#3109)
### What problem does this PR solve?
**Added openapi specification for API routes. This creates swagger UI
similar to FastAPI to better use the API.**
Using python package `flasgger`
### Type of change
- [x] New Feature (non-breaking change which adds functionality)
Not all routes are included since this is a work in progress.
Docs can be accessed on: `{host}:{port}/apidocs`
This commit is contained in:
@ -8,7 +8,7 @@ readme = "README.md"
|
||||
package-mode = false
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = ">=3.12,<3.13"
|
||||
python = ">=3.11,<3.13"
|
||||
datrie = "0.8.2"
|
||||
akshare = "^1.14.81"
|
||||
azure-storage-blob = "12.22.0"
|
||||
@ -114,6 +114,7 @@ graspologic = "^3.4.1"
|
||||
pymysql = "^1.1.1"
|
||||
mini-racer = "^0.12.4"
|
||||
pyicu = "^2.13.1"
|
||||
flasgger = "^0.9.7.1"
|
||||
|
||||
|
||||
[tool.poetry.group.full]
|
||||
|
||||
Reference in New Issue
Block a user