Repositories
8 endpoints — 2 GET, 1 POST, 2 PATCH, 3 DELETE
GET /api/v1/repoAUTH
Returns repositories, optionally filtered by query parameters.
This endpoint requires a valid JWT Bearer token in the Authorization header.
Responses
200Ok
GET /api/v1/repo/{id}AUTH
Returns a single repository by ID.
This endpoint requires a valid JWT Bearer token in the Authorization header.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes |
Responses
200Ok404Not Found
POST /api/v1/repoAUTH
Creates a new repository. May restart the proxy if a new origin is added.
This endpoint requires a valid JWT Bearer token in the Authorization header.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
url | string | Yes | |
name | string | Yes | |
project | string | Yes |
Responses
200Ok400Bad Request401Unauthorized409Conflict500Internal Server Error
PATCH /api/v1/repo/{id}/user/authoriseAUTH
Grants a user authorise permission on a repository.
This endpoint requires a valid JWT Bearer token in the Authorization header.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
username | string | Yes |
Responses
200Ok400Bad Request401Unauthorized
PATCH /api/v1/repo/{id}/user/pushAUTH
Grants a user push permission on a repository.
This endpoint requires a valid JWT Bearer token in the Authorization header.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
username | string | Yes |
Responses
200Ok400Bad Request401Unauthorized
DELETE /api/v1/repo/{id}/deleteAUTH
Deletes a repository. May restart the proxy if a proxied host is removed.
This endpoint requires a valid JWT Bearer token in the Authorization header.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes |
Responses
200Ok401Unauthorized
DELETE /api/v1/repo/{id}/user/authorise/{username}AUTH
Revokes a user's authorise permission on a repository.
This endpoint requires a valid JWT Bearer token in the Authorization header.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | |
username | path | string | Yes |
Responses
200Ok400Bad Request401Unauthorized
DELETE /api/v1/repo/{id}/user/push/{username}AUTH
Revokes a user's push permission on a repository.
This endpoint requires a valid JWT Bearer token in the Authorization header.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | |
username | path | string | Yes |
Responses
200Ok400Bad Request401Unauthorized