Read one entity
One object of the layer as an addressable node, by URI or by the address it is served at: identity and route, provenance, front matter and content, every reference it declares and every reference that resolves to it, the surfaces that answer for it, the state of the executable artefacts it names, and its public documentation page as the repository's site/data/publication.toml derives it (null when the repository declares none).
- query
- implemented
- benchmark required
- cache disabled
- MCP tool majordomus_entity
- $ entity show
Query parameters
| name | type | required | description | examples |
|---|---|---|---|---|
| uri | string | no | `majordomus://<kind>/<identity>`. Either this, or `kind` and `slug` together. | first-object: "majordomus://adr/adr-0001" |
| kind | string | no | The kind, when addressing by route. | |
| slug | string | no | The last segment of the entity's route, when addressing by route. |
Try it
The port is whatever the server logged; 8741 is the one it asks for first. The values are the operation's first example.
curl -s "http://127.0.0.1:8741/api/v1/entity?uri=majordomus%3A%2F%2Fadr%2Fadr-0001"
Tested by apps/majordomus-cli/tests/http_serve.rs, which replays the route with these values against a server on a real socket.
Responses
| status | body | meaning |
|---|---|---|
| 200 | EntityView | Read one entity: the result. |
| 400 | ErrorBody | invalid_input: The input does not fit the schema: a parameter of the wrong type, an unknown one, or a value the capability rejects. |
| 404 | ErrorBody | not_found: The input names something the repository does not hold. |
| 500 | ErrorBody | internal: The capability failed for a reason of its own; the message names it. |
| default | ErrorBody | Any other failure the transport reports: 405 method_not_allowed for another method on this path, 400 invalid_input for a body that is not a JSON object. |