yusuf-p67xei/endpoints/books.get.py
2025-03-22 20:18:22 +00:00

17 lines
366 B
Python

from fastapi import APIRouter, HTTPException
books = [] # In-memory storage
router = APIRouter()
@router.get("/books")
async def get_books():
"""Get all books endpoint"""
return {
"message": "Books retrieved successfully",
"books": books,
"features": {
"rate_limit": 100,
"expires_in": 3600
}
}