wei.routers.data_routes

Router for the “data” endpoints

Functions

create_datapoint(datapoint[, file])

Allows users to create datapoints as needed.

get_datapoint(datapoint_id)

Returns a specific data point's value.

get_datapoint_info(datapoint_id)

Returns metadata about a specific data point.

async wei.routers.data_routes.create_datapoint(datapoint: Annotated[str, Form(PydanticUndefined)], file: UploadFile | None = None) JSONResponse

Allows users to create datapoints as needed.

async wei.routers.data_routes.get_datapoint(datapoint_id: str)

Returns a specific data point’s value.

async wei.routers.data_routes.get_datapoint_info(datapoint_id: str) DataPoint

Returns metadata about a specific data point.