Expand description
Shared JSON request/response types and element conversion for the HTTP API.
Structs§
- Append
Request - POST /elements body.
- Element
Json - Flat JSON representation of any element type.
- Error
Response - Generic JSON error body.
- LogStats
- Stats
Json - Stats response.
- Task
Stats - Update
Request - PATCH /elements/:ref body.
Functions§
- compute_
stats - Compute stats over a set of elements grouped by date.
- element_
to_ json - Convert a parsed Element into its API JSON representation.
- format_
date_ str - Convert a raw “YYYYMMDD” date prefix to “YYYY-MM-DD”.