v2

latestOpenAPI 3.1.02026-08-0382170235.8 KB
facts
facts

Get a fact with all its edges and related facts

Get a fact with all its edges and a paginated slice of related facts.

M18: Exposes StorageBackend.get_fact_with_relations() as API endpoint. Edges (edges_out, edges_in) are returned in full so the UI knows the real degree of the fact. Related facts are paginated via related_limit/related_offset to keep payloads bounded for high-degree facts (e.g. CONSTITUTION axioms with hundreds of supporting edges).

get/pots/{pot_id}/facts/{fact_id}/with-edges

Path parameters

pot_idstring uuid required
fact_idstring uuid required

Query parameters

related_limitinteger

Page size for related facts

Page size for related facts

related_offsetinteger

Pagination offset for related facts

Pagination offset for related facts

Response

Fact with relations retrieved successfully

total_edges_outinteger

Count of outgoing edges

total_edges_ininteger

Count of incoming edges

total_related_factsinteger

Total distinct related facts (uncapped) — for pagination UI