All URIs are relative to https:///api/2.0
Method | HTTP request | Description |
---|---|---|
create_repo | POST /repos | Create a repo |
delete_repo | DELETE /repos/{repo_id} | Deletes the repo |
get_repo | GET /repos/{repo_id} | Get a repo |
get_repos | GET /repos | Get repos |
update_repo | PATCH /repos/{repo_id} | Updates the repo to the given branch or tag |
crate::models::GetRepoResponse create_repo(create_repo_request) Create a repo
Creates a repo in the workspace and links it to the remote Git repo specified. Note that repos created programmatically must be linked to a remote Git repo, unlike repos created in the browser.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
create_repo_request | CreateRepoRequest | Details required to create and clone a repo object | [required] |
crate::models::GetRepoResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_repo(repo_id) Deletes the repo
Deletes the specified repo
Name | Type | Description | Required | Notes |
---|---|---|---|---|
repo_id | String | The ID for the corresponding repo to access. | [required] |
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::GetRepoResponse get_repo(repo_id) Get a repo
Returns the repo with the given repo ID.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
repo_id | String | The ID for the corresponding repo to access. | [required] |
crate::models::GetRepoResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::GetReposResponse get_repos(path_prefix, next_page_token) Get repos
Returns repos that the calling user has Manage permissions on. Results are paginated with each page containing twenty repos.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
path_prefix | Option<String> | Filters repos that have paths starting with the given path prefix. | ||
next_page_token | Option<String> | Token used to get the next page of results. If not specified, returns the first page of results as well as a next page token if there are more results. |
crate::models::GetReposResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::GetRepoResponse update_repo(repo_id, update_repo_request) Updates the repo to the given branch or tag
Updates the repo to a different branch or tag, or updates the repo to the latest commit on the same branch.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
repo_id | String | The ID for the corresponding repo to access. | [required] | |
update_repo_request | UpdateRepoRequest | Details required to update the repo | [required] |
crate::models::GetRepoResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]