vanna-ai / vanna

🤖 Chat with your SQL database 📊. Accurate Text-to-SQL Generation via LLMs using RAG 🔄.
https://vanna.ai/docs/
MIT License
9.12k stars 673 forks source link

Document Flask API with Swagger #513

Open Molrn opened 2 weeks ago

Molrn commented 2 weeks ago

Iterating on the idea raised in #508, this PR adds a Swagger documentation of the Flask API using Flasgger. It creates a Swagger app on the endpoint (/apidocs) which looks like this:

image
doc is also available as a json file at /apispec_1.json.

So far, the doc is stored in the docstring of each endpoint function. If it comes as an issue, it could be stored in many different ways:

zainhoda commented 2 weeks ago

I love it!