Spaces:
Sleeping
Sleeping
Download app/routers/help.py from sameerbanchhor/multi-use-api: direct link, hf CLI and curl.
- Browser
- Download file 485 Bytes
-
https://huggingface.co/spaces/sameerbanchhor/multi-use-api/resolve/main/app/routers/help.py
- Command line
-
hf download hf://spaces/sameerbanchhor/multi-use-api/app/routers/help.py
-
curl -L -o help.py https://huggingface.co/spaces/sameerbanchhor/multi-use-api/resolve/main/app/routers/help.py
485 Bytes
| from fastapi import APIRouter | |
| # Create the router for help/info endpoints | |
| router = APIRouter( | |
| prefix="/help", | |
| tags=["Information"] | |
| ) | |
| def get_api_info(): | |
| """ | |
| Returns general information about the API and available endpoints. | |
| """ | |
| return { | |
| "api_name": "My Awesome FastAPI", | |
| "version": "1.0", | |
| "available_sections": ["/random", "/help"], | |
| "message": "Use the /docs endpoint for interactive API documentation." | |
| } |