diff --git a/endpoints/books.get.py b/endpoints/books.get.py index e69de29..7e1f805 100644 --- a/endpoints/books.get.py +++ b/endpoints/books.get.py @@ -0,0 +1,17 @@ +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 + } + } \ No newline at end of file