FastAPI API
The API exposes the data collected by the ETL pipeline in read-only mode.
Routes
Get /
Returns this document
GET /count
Returns the number of rows available in each exposed table.
Response example:
{
"ligne": 123,
"trr": 456,
"openmeteo": 789,
"atmo": 321
}
GET /raw/{data}
Returns the raw rows from the requested table.
Path parameter:
data: name of the table to query.
Available values:
lignetrropenmeteoatmo
The response is a JSON array. Each item contains the columns of the selected table. See schema.md for the columns returned by each table.