harbor run -t openthoughts/tasktrove-exp-rle-adversarial-5k-adversarial-2849harbor download openthoughts/tasktrove-exp-rle-adversarial-5k-adversarial-2849Task: Implement a self-contained REST API service to expose FogLAMP readings from PostgreSQL in the exact shapes and filtering the tests expect.
What to build
A small Python async web API (preferably FastAPI or a minimal Flask/FastAPI with async support) that serves data from the PostgreSQL table foglamp.readings in database foglamp.
The API must implement the following endpoints and behavior exactly as the tests expect:
GET /foglamp/asset
GET /foglamp/asset/{asset_code}
GET /foglamp/asset/{asset_code}/{sensor}
GET /foglamp/asset/{asset_code}/{sensor}/series
GET /foglamp/asset/{asset_code}/{sensor}/summary
Cross-cutting details and constraints
Acceptance criteria
Deliverables
Output only the instruction: