Spaces:
Running
Running
Search API
Browse files
main.py
CHANGED
|
@@ -686,6 +686,7 @@ async def not_found_handler(request: Request, exc):
|
|
| 686 |
async def internal_error_handler(request: Request, exc):
|
| 687 |
return ORJSONResponse(status_code=500, content={"error": "Internal server error: " + str(exc)})
|
| 688 |
|
|
|
|
| 689 |
@app.get("/search", response_class=ORJSONResponse)
|
| 690 |
async def search_entries(
|
| 691 |
userid: str = Header(..., description="User ID"),
|
|
|
|
| 686 |
async def internal_error_handler(request: Request, exc):
|
| 687 |
return ORJSONResponse(status_code=500, content={"error": "Internal server error: " + str(exc)})
|
| 688 |
|
| 689 |
+
# Search endpoint to filter user entries based on various criteria
|
| 690 |
@app.get("/search", response_class=ORJSONResponse)
|
| 691 |
async def search_entries(
|
| 692 |
userid: str = Header(..., description="User ID"),
|