freelance-project-34-market.../deps/test-task-2025-07-17-v2/docs/readme.md

35 lines
800 B
Markdown

# Requirements
1. FastAPI Microservice // Caching service
1.1. endpoints
1.1.1 POST:/payload `payload_create`
1.1.2. GET:/payload/<payload_id> `payload_read`
1.2. tech specs
1.2.1. fastapi for rest api
1.2.2. sqlite/postgresql for DB that caches LLM replies;
1.2.3. LLM transform can be stubbed (idk, maybe try to find something simple);
1.2.4. docker-compose for services
1.2.5. add pytest based tests;
1.2.6. add some linters for code style, and type checking;
# Schemas
```yaml
endpoints:
payload:
create:
request:
list_1: list[str]
list_2: list[str]
response:
payload:
id: int
output: list[str]
read:
request:
id: int
response:
id: int
output: list[str]
```