add http-api

This commit is contained in:
2025-03-20 17:48:37 -03:00
parent a41f90f3a9
commit 85cbc9269c
25 changed files with 1726 additions and 0 deletions

12
http-api/http_models.py Normal file
View File

@@ -0,0 +1,12 @@
from pydantic import BaseModel
class SearchResponse(BaseModel):
total_hits: int
total_pages: int
hits: list[dict]
class RecordResponse(BaseModel):
items: list[dict]
last_key: str | None