Skip to main content

Module api

Module api 

Source
Expand description

VCS command implementations (init, add, commit, status, diff, merge, etc.) Self-Describing API (JSON-LD / Hydra)

Adds hypermedia links and JSON-LD context to lit’s API responses, making the API discoverable and self-documenting for agents.

Structs§

ApiEnvelope
Self-describing API envelope that wraps any response with JSON-LD context
ApiLink
A hypermedia link (Hydra-style)

Constants§

LIT_CONTEXT
JSON-LD context for lit API responses

Functions§

api_root_links
API root entry point with all discoverable endpoints
commit_links
Generate links for a commit resource
identity_links
Generate links for a DID identity resource
repo_links
Generate standard links for a repository resource