\DefaultApi
Last updated
Last updated
All URIs are relative to https:///api/2.0
POST /repos
Create a repo
DELETE /repos/{repo_id}
Deletes the repo
GET /repos/{repo_id}
Get a repo
GET /repos
Get repos
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.
create_repo_request
Details required to create and clone a repo object
[required]
,
Content-Type: application/json
Accept: application/json
delete_repo(repo_id) Deletes the repo
Deletes the specified repo
repo_id
String
The ID for the corresponding repo to access.
[required]
(empty response body)
Content-Type: Not defined
Accept: application/json
crate::models::GetRepoResponse get_repo(repo_id) Get a repo
Returns the repo with the given repo ID.
repo_id
String
The ID for the corresponding repo to access.
[required]
Content-Type: Not defined
Accept: application/json
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.
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.
Content-Type: Not defined
Accept: application/json
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.
repo_id
String
The ID for the corresponding repo to access.
[required]
update_repo_request
Details required to update the repo
[required]
Content-Type: application/json
Accept: application/json
,
,
,
,