Expand description
Admin API endpoints for supernode CRUD. Mutations rewrite the in-memory gateway config and trigger validation + recompilation of every policy (supernodes are inlined at compile time), so a breaking edit or a delete-while-referenced is rejected with 400 before anything changes.
Functionsยง
- delete_
supernode ๐ DELETE /api/supernodes/{name}โ removes the named definition, then revalidates and recompiles. Returns{"status": "deleted"}on success.- get_
supernode ๐ GET /api/supernodes/{name}โ returns the named definition as JSON.- list_
supernodes ๐ GET /api/supernodesโ returns all supernode definitions as a JSON array.- router
- Builds the router for
/api/supernodes. - update_
supernode ๐ PUT /api/supernodes/{name}โ upserts a definition from the JSON body (the path name overrides any name in the body), then revalidates and recompiles all route graphs โ every policy using this supernode picks up the change atomically. Returns{"status": "updated"}on success.