add http-api
This commit is contained in:
12
http-api/http_models.py
Normal file
12
http-api/http_models.py
Normal 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
|
||||
Reference in New Issue
Block a user