Hanzo
OpenapiGit

Read one repository over the ZAP transport

Answers a single repository's record, named by `name`.

POST /v1/git/zap/getRepo

Addresshttps://api.hanzo.ai/v1/git/zap/getRepo
MethodPOST
Operationpost_git_zap_getrepo
AuthAuthorization: Bearer $HANZO_API_KEY

Answers a single repository's record, named by name. A repository outside the caller's org and project scope is a 404 envelope, the same answer one that does not exist gets.

A ZAP PROCEDURE, not a REST resource. It answers the bridge's {status, msg, data} envelope rather than the raw view the /v1 route returns — which is a wire shape a typed op cannot produce, and the reason this stays a raw handler — and it calls the SAME core function the REST route calls, so the two transports cannot diverge in behaviour. Org and project scope come from the request identity and NEVER from the body: the body cannot widen the caller's scope. Without a validated org the answer is a 403 envelope.

Request

3 fields, body application/json.

FieldInTypeRequiredDescription
descriptionbodystring
namebodystring
projectbodystring

Response

The document declares no response body for this operation. It answers 200 on success and the platform error shape on failure — see Errors.

Examples

hanzo git zap getRepo

Git API · All Hanzo APIs · Interactive reference

How is this guide?

On this page