Categorygithub.com/advoretsky/go-bitbucket
repositorypackage
0.9.3
Repository: https://github.com/advoretsky/go-bitbucket.git
Documentation: pkg.go.dev

# README

Go API client for swagger

Code against the Bitbucket API to automate simple tasks, embed Bitbucket data into your own site, build mobile or desktop apps, or even add custom UI add-ons into Bitbucket itself using the Connect framework.

Overview

This API client was generated by the swagger-codegen project. By using the swagger-spec from a remote server, you can easily generate an API client.

Installation

Put the package under your project folder and add the following in import:

    "./swagger"

Documentation for API Endpoints

All URIs are relative to https://api.bitbucket.org/2.0

ClassMethodHTTP requestDescription
AddonApiAddonDeleteDelete /addon
AddonApiAddonLinkersGetGet /addon/linkers
AddonApiAddonLinkersLinkerKeyGetGet /addon/linkers/{linker_key}
AddonApiAddonLinkersLinkerKeyValuesDeleteDelete /addon/linkers/{linker_key}/values
AddonApiAddonLinkersLinkerKeyValuesDelete_0Delete /addon/linkers/{linker_key}/values/
AddonApiAddonLinkersLinkerKeyValuesGetGet /addon/linkers/{linker_key}/values
AddonApiAddonLinkersLinkerKeyValuesGet_0Get /addon/linkers/{linker_key}/values/
AddonApiAddonLinkersLinkerKeyValuesPostPost /addon/linkers/{linker_key}/values
AddonApiAddonLinkersLinkerKeyValuesPutPut /addon/linkers/{linker_key}/values
AddonApiAddonPutPut /addon
AddonApiAddonUsersTargetUserEventsEventKeyPostPost /addon/users/{target_user}/events/{event_key}
BranchrestrictionsApiRepositoriesUsernameRepoSlugBranchRestrictionsGetGet /repositories/{username}/{repo_slug}/branch-restrictions
BranchrestrictionsApiRepositoriesUsernameRepoSlugBranchRestrictionsIdDeleteDelete /repositories/{username}/{repo_slug}/branch-restrictions/{id}
BranchrestrictionsApiRepositoriesUsernameRepoSlugBranchRestrictionsIdGetGet /repositories/{username}/{repo_slug}/branch-restrictions/{id}
BranchrestrictionsApiRepositoriesUsernameRepoSlugBranchRestrictionsIdPutPut /repositories/{username}/{repo_slug}/branch-restrictions/{id}
BranchrestrictionsApiRepositoriesUsernameRepoSlugBranchRestrictionsPostPost /repositories/{username}/{repo_slug}/branch-restrictions
CommitsApiRepositoriesUsernameRepoSlugCommitNodeApproveDeleteDelete /repositories/{username}/{repo_slug}/commit/{node}/approve
CommitsApiRepositoriesUsernameRepoSlugCommitNodeApprovePostPost /repositories/{username}/{repo_slug}/commit/{node}/approve
CommitsApiRepositoriesUsernameRepoSlugCommitNodeCommentsCommentIdGetGet /repositories/{username}/{repo_slug}/commit/{node}/comments/{comment_id}
CommitsApiRepositoriesUsernameRepoSlugCommitNodeCommentsGetGet /repositories/{username}/{repo_slug}/commit/{node}/comments
CommitsApiRepositoriesUsernameRepoSlugCommitNodeCommentsPostPost /repositories/{username}/{repo_slug}/commit/{node}/comments
CommitsApiRepositoriesUsernameRepoSlugCommitNodeGetGet /repositories/{username}/{repo_slug}/commit/{node}
CommitsApiRepositoriesUsernameRepoSlugCommitsGetGet /repositories/{username}/{repo_slug}/commits
CommitsApiRepositoriesUsernameRepoSlugCommitsPostPost /repositories/{username}/{repo_slug}/commits
CommitsApiRepositoriesUsernameRepoSlugCommitsRevisionGetGet /repositories/{username}/{repo_slug}/commits/{revision}
CommitsApiRepositoriesUsernameRepoSlugCommitsRevisionPostPost /repositories/{username}/{repo_slug}/commits/{revision}
CommitsApiRepositoriesUsernameRepoSlugDiffSpecGetGet /repositories/{username}/{repo_slug}/diff/{spec}
CommitsApiRepositoriesUsernameRepoSlugPatchSpecGetGet /repositories/{username}/{repo_slug}/patch/{spec}
CommitstatusesApiRepositoriesUsernameRepoSlugCommitNodeStatusesBuildKeyGetGet /repositories/{username}/{repo_slug}/commit/{node}/statuses/build/{key}
CommitstatusesApiRepositoriesUsernameRepoSlugCommitNodeStatusesBuildKeyPutPut /repositories/{username}/{repo_slug}/commit/{node}/statuses/build/{key}
CommitstatusesApiRepositoriesUsernameRepoSlugCommitNodeStatusesBuildPostPost /repositories/{username}/{repo_slug}/commit/{node}/statuses/build
CommitstatusesApiRepositoriesUsernameRepoSlugCommitNodeStatusesGetGet /repositories/{username}/{repo_slug}/commit/{node}/statuses
CommitstatusesApiRepositoriesUsernameRepoSlugPullrequestsPullRequestIdStatusesGetGet /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/statuses
DefaultApiRepositoriesUsernameRepoSlugDiffstatSpecGetGet /repositories/{username}/{repo_slug}/diffstat/{spec}
DefaultApiRepositoriesUsernameRepoSlugIssuesExportPostPost /repositories/{username}/{repo_slug}/issues/export
DefaultApiRepositoriesUsernameRepoSlugIssuesExportRepoNameIssuesTaskIdZipGetGet /repositories/{username}/{repo_slug}/issues/export/{repo_name}-issues-{task_id}.zip
DefaultApiRepositoriesUsernameRepoSlugIssuesImportGetGet /repositories/{username}/{repo_slug}/issues/import
DefaultApiRepositoriesUsernameRepoSlugIssuesImportPostPost /repositories/{username}/{repo_slug}/issues/import
DefaultApiRepositoriesUsernameRepoSlugPropertiesAppKeyPropertyNameDeleteDelete /repositories/{username}/{repo_slug}/properties/{app_key}/{property_name}
DefaultApiRepositoriesUsernameRepoSlugPropertiesAppKeyPropertyNameGetGet /repositories/{username}/{repo_slug}/properties/{app_key}/{property_name}
DefaultApiRepositoriesUsernameRepoSlugPropertiesAppKeyPropertyNamePutPut /repositories/{username}/{repo_slug}/properties/{app_key}/{property_name}
DefaultApiTeamsUsernamePermissionsGetGet /teams/{username}/permissions
DefaultApiTeamsUsernamePermissionsRepositoriesGetGet /teams/{username}/permissions/repositories
DefaultApiUserPermissionsTeamsGetGet /user/permissions/teams
DeployApiRepositoriesUsernameRepoSlugDeployKeysGetGet /repositories/{username}/{repo_slug}/deploy-keys
DeployApiRepositoriesUsernameRepoSlugDeployKeysKeyIdDeleteDelete /repositories/{username}/{repo_slug}/deploy-keys/{key_id}
DeployApiRepositoriesUsernameRepoSlugDeployKeysKeyIdGetGet /repositories/{username}/{repo_slug}/deploy-keys/{key_id}
DeployApiRepositoriesUsernameRepoSlugDeployKeysKeyIdPutPut /repositories/{username}/{repo_slug}/deploy-keys/{key_id}
DeployApiRepositoriesUsernameRepoSlugDeployKeysPostPost /repositories/{username}/{repo_slug}/deploy-keys
DeploymentsApiGetDeploymentForRepositoryGet /repositories/{username}/{repo_slug}/deployments/{deployment_uuid}
DeploymentsApiGetDeploymentsForRepositoryGet /repositories/{username}/{repo_slug}/deployments/
DeploymentsApiGetEnvironmentForRepositoryGet /repositories/{username}/{repo_slug}/environments/{environment_uuid}
DeploymentsApiGetEnvironmentsForRepositoryGet /repositories/{username}/{repo_slug}/environments/
DeploymentsApiUpdateEnvironmentForRepositoryPost /repositories/{username}/{repo_slug}/environments/{environment_uuid}/changes/
DownloadsApiRepositoriesUsernameRepoSlugDownloadsFilenameDeleteDelete /repositories/{username}/{repo_slug}/downloads/{filename}
DownloadsApiRepositoriesUsernameRepoSlugDownloadsFilenameGetGet /repositories/{username}/{repo_slug}/downloads/{filename}
DownloadsApiRepositoriesUsernameRepoSlugDownloadsGetGet /repositories/{username}/{repo_slug}/downloads
DownloadsApiRepositoriesUsernameRepoSlugDownloadsPostPost /repositories/{username}/{repo_slug}/downloads
IssueTrackerApiRepositoriesUsernameRepoSlugComponentsComponentIdGetGet /repositories/{username}/{repo_slug}/components/{component_id}
IssueTrackerApiRepositoriesUsernameRepoSlugComponentsGetGet /repositories/{username}/{repo_slug}/components
IssueTrackerApiRepositoriesUsernameRepoSlugIssuesGetGet /repositories/{username}/{repo_slug}/issues
IssueTrackerApiRepositoriesUsernameRepoSlugIssuesIssueIdAttachmentsGetGet /repositories/{username}/{repo_slug}/issues/{issue_id}/attachments
IssueTrackerApiRepositoriesUsernameRepoSlugIssuesIssueIdAttachmentsPathDeleteDelete /repositories/{username}/{repo_slug}/issues/{issue_id}/attachments/{path}
IssueTrackerApiRepositoriesUsernameRepoSlugIssuesIssueIdAttachmentsPathGetGet /repositories/{username}/{repo_slug}/issues/{issue_id}/attachments/{path}
IssueTrackerApiRepositoriesUsernameRepoSlugIssuesIssueIdAttachmentsPostPost /repositories/{username}/{repo_slug}/issues/{issue_id}/attachments
IssueTrackerApiRepositoriesUsernameRepoSlugIssuesIssueIdChangesChangeIdGetGet /repositories/{username}/{repo_slug}/issues/{issue_id}/changes/{change_id}
IssueTrackerApiRepositoriesUsernameRepoSlugIssuesIssueIdChangesGetGet /repositories/{username}/{repo_slug}/issues/{issue_id}/changes
IssueTrackerApiRepositoriesUsernameRepoSlugIssuesIssueIdChangesPostPost /repositories/{username}/{repo_slug}/issues/{issue_id}/changes
IssueTrackerApiRepositoriesUsernameRepoSlugIssuesIssueIdCommentsCommentIdDeleteDelete /repositories/{username}/{repo_slug}/issues/{issue_id}/comments/{comment_id}
IssueTrackerApiRepositoriesUsernameRepoSlugIssuesIssueIdCommentsCommentIdGetGet /repositories/{username}/{repo_slug}/issues/{issue_id}/comments/{comment_id}
IssueTrackerApiRepositoriesUsernameRepoSlugIssuesIssueIdCommentsCommentIdPutPut /repositories/{username}/{repo_slug}/issues/{issue_id}/comments/{comment_id}
IssueTrackerApiRepositoriesUsernameRepoSlugIssuesIssueIdCommentsGetGet /repositories/{username}/{repo_slug}/issues/{issue_id}/comments
IssueTrackerApiRepositoriesUsernameRepoSlugIssuesIssueIdCommentsPostPost /repositories/{username}/{repo_slug}/issues/{issue_id}/comments
IssueTrackerApiRepositoriesUsernameRepoSlugIssuesIssueIdDeleteDelete /repositories/{username}/{repo_slug}/issues/{issue_id}
IssueTrackerApiRepositoriesUsernameRepoSlugIssuesIssueIdGetGet /repositories/{username}/{repo_slug}/issues/{issue_id}
IssueTrackerApiRepositoriesUsernameRepoSlugIssuesIssueIdPutPut /repositories/{username}/{repo_slug}/issues/{issue_id}
IssueTrackerApiRepositoriesUsernameRepoSlugIssuesIssueIdVoteDeleteDelete /repositories/{username}/{repo_slug}/issues/{issue_id}/vote
IssueTrackerApiRepositoriesUsernameRepoSlugIssuesIssueIdVoteGetGet /repositories/{username}/{repo_slug}/issues/{issue_id}/vote
IssueTrackerApiRepositoriesUsernameRepoSlugIssuesIssueIdVotePutPut /repositories/{username}/{repo_slug}/issues/{issue_id}/vote
IssueTrackerApiRepositoriesUsernameRepoSlugIssuesIssueIdWatchDeleteDelete /repositories/{username}/{repo_slug}/issues/{issue_id}/watch
IssueTrackerApiRepositoriesUsernameRepoSlugIssuesIssueIdWatchGetGet /repositories/{username}/{repo_slug}/issues/{issue_id}/watch
IssueTrackerApiRepositoriesUsernameRepoSlugIssuesIssueIdWatchPutPut /repositories/{username}/{repo_slug}/issues/{issue_id}/watch
IssueTrackerApiRepositoriesUsernameRepoSlugIssuesPostPost /repositories/{username}/{repo_slug}/issues
IssueTrackerApiRepositoriesUsernameRepoSlugMilestonesGetGet /repositories/{username}/{repo_slug}/milestones
IssueTrackerApiRepositoriesUsernameRepoSlugMilestonesMilestoneIdGetGet /repositories/{username}/{repo_slug}/milestones/{milestone_id}
IssueTrackerApiRepositoriesUsernameRepoSlugVersionsGetGet /repositories/{username}/{repo_slug}/versions
IssueTrackerApiRepositoriesUsernameRepoSlugVersionsVersionIdGetGet /repositories/{username}/{repo_slug}/versions/{version_id}
PipelinesApiCreatePipelineForRepositoryPost /repositories/{username}/{repo_slug}/pipelines/
PipelinesApiCreatePipelineVariableForTeamPost /teams/{username}/pipelines_config/variables/
PipelinesApiCreatePipelineVariableForUserPost /users/{username}/pipelines_config/variables/
PipelinesApiCreateRepositoryPipelineKnownHostPost /repositories/{username}/{repo_slug}/pipelines_config/ssh/known_hosts/
PipelinesApiCreateRepositoryPipelineSchedulePost /repositories/{username}/{repo_slug}/pipelines_config/schedules/
PipelinesApiCreateRepositoryPipelineVariablePost /repositories/{username}/{repo_slug}/pipelines_config/variables/
PipelinesApiDeletePipelineVariableForTeamDelete /teams/{username}/pipelines_config/variables/{variable_uuid}
PipelinesApiDeletePipelineVariableForUserDelete /users/{username}/pipelines_config/variables/{variable_uuid}
PipelinesApiDeleteRepositoryPipelineKeyPairDelete /repositories/{username}/{repo_slug}/pipelines_config/ssh/key_pair
PipelinesApiDeleteRepositoryPipelineKnownHostDelete /repositories/{username}/{repo_slug}/pipelines_config/ssh/known_hosts/{known_host_uuid}
PipelinesApiDeleteRepositoryPipelineScheduleDelete /repositories/{username}/{repo_slug}/pipelines_config/schedules/{schedule_uuid}
PipelinesApiDeleteRepositoryPipelineVariableDelete /repositories/{username}/{repo_slug}/pipelines_config/variables/{variable_uuid}
PipelinesApiGetPipelineForRepositoryGet /repositories/{username}/{repo_slug}/pipelines/{pipeline_uuid}
PipelinesApiGetPipelineStepForRepositoryGet /repositories/{username}/{repo_slug}/pipelines/{pipeline_uuid}/steps/{step_uuid}
PipelinesApiGetPipelineStepLogForRepositoryGet /repositories/{username}/{repo_slug}/pipelines/{pipeline_uuid}/steps/{step_uuid}/log
PipelinesApiGetPipelineStepsForRepositoryGet /repositories/{username}/{repo_slug}/pipelines/{pipeline_uuid}/steps/
PipelinesApiGetPipelineVariableForTeamGet /teams/{username}/pipelines_config/variables/{variable_uuid}
PipelinesApiGetPipelineVariableForUserGet /users/{username}/pipelines_config/variables/{variable_uuid}
PipelinesApiGetPipelineVariablesForTeamGet /teams/{username}/pipelines_config/variables/
PipelinesApiGetPipelineVariablesForUserGet /users/{username}/pipelines_config/variables/
PipelinesApiGetPipelinesForRepositoryGet /repositories/{username}/{repo_slug}/pipelines/
PipelinesApiGetRepositoryPipelineConfigGet /repositories/{username}/{repo_slug}/pipelines_config
PipelinesApiGetRepositoryPipelineKnownHostGet /repositories/{username}/{repo_slug}/pipelines_config/ssh/known_hosts/{known_host_uuid}
PipelinesApiGetRepositoryPipelineKnownHostsGet /repositories/{username}/{repo_slug}/pipelines_config/ssh/known_hosts/
PipelinesApiGetRepositoryPipelineScheduleGet /repositories/{username}/{repo_slug}/pipelines_config/schedules/{schedule_uuid}
PipelinesApiGetRepositoryPipelineScheduleExecutionsGet /repositories/{username}/{repo_slug}/pipelines_config/schedules/{schedule_uuid}/executions/
PipelinesApiGetRepositoryPipelineSchedulesGet /repositories/{username}/{repo_slug}/pipelines_config/schedules/
PipelinesApiGetRepositoryPipelineSshKeyPairGet /repositories/{username}/{repo_slug}/pipelines_config/ssh/key_pair
PipelinesApiGetRepositoryPipelineVariableGet /repositories/{username}/{repo_slug}/pipelines_config/variables/{variable_uuid}
PipelinesApiGetRepositoryPipelineVariablesGet /repositories/{username}/{repo_slug}/pipelines_config/variables/
PipelinesApiStopPipelinePost /repositories/{username}/{repo_slug}/pipelines/{pipeline_uuid}/stopPipeline
PipelinesApiUpdatePipelineVariableForTeamPut /teams/{username}/pipelines_config/variables/{variable_uuid}
PipelinesApiUpdatePipelineVariableForUserPut /users/{username}/pipelines_config/variables/{variable_uuid}
PipelinesApiUpdateRepositoryBuildNumberPut /repositories/{username}/{repo_slug}/pipelines_config/build_number
PipelinesApiUpdateRepositoryPipelineConfigPut /repositories/{username}/{repo_slug}/pipelines_config
PipelinesApiUpdateRepositoryPipelineKeyPairPut /repositories/{username}/{repo_slug}/pipelines_config/ssh/key_pair
PipelinesApiUpdateRepositoryPipelineKnownHostPut /repositories/{username}/{repo_slug}/pipelines_config/ssh/known_hosts/{known_host_uuid}
PipelinesApiUpdateRepositoryPipelineSchedulePut /repositories/{username}/{repo_slug}/pipelines_config/schedules/{schedule_uuid}
PipelinesApiUpdateRepositoryPipelineVariablePut /repositories/{username}/{repo_slug}/pipelines_config/variables/{variable_uuid}
ProjectsApiTeamsUsernameProjectsGetGet /teams/{username}/projects/
ProjectsApiTeamsUsernameProjectsPostPost /teams/{username}/projects/
ProjectsApiTeamsUsernameProjectsProjectKeyDeleteDelete /teams/{username}/projects/{project_key}
ProjectsApiTeamsUsernameProjectsProjectKeyGetGet /teams/{username}/projects/{project_key}
ProjectsApiTeamsUsernameProjectsProjectKeyPutPut /teams/{username}/projects/{project_key}
PullrequestsApiGetPullrequestsForCommitGet /repositories/{username}/{repo_slug}/commit/{commit}/pullrequestsReturns a paginated list of all pull requests as part of which this commit was reviewed.
PullrequestsApiPullrequestsTargetUserGetGet /pullrequests/{target_user}
PullrequestsApiRepositoriesUsernameRepoSlugDefaultReviewersGetGet /repositories/{username}/{repo_slug}/default-reviewers
PullrequestsApiRepositoriesUsernameRepoSlugDefaultReviewersTargetUsernameDeleteDelete /repositories/{username}/{repo_slug}/default-reviewers/{target_username}
PullrequestsApiRepositoriesUsernameRepoSlugDefaultReviewersTargetUsernameGetGet /repositories/{username}/{repo_slug}/default-reviewers/{target_username}
PullrequestsApiRepositoriesUsernameRepoSlugDefaultReviewersTargetUsernamePutPut /repositories/{username}/{repo_slug}/default-reviewers/{target_username}
PullrequestsApiRepositoriesUsernameRepoSlugPullrequestsActivityGetGet /repositories/{username}/{repo_slug}/pullrequests/activity
PullrequestsApiRepositoriesUsernameRepoSlugPullrequestsGetGet /repositories/{username}/{repo_slug}/pullrequests
PullrequestsApiRepositoriesUsernameRepoSlugPullrequestsPostPost /repositories/{username}/{repo_slug}/pullrequests
PullrequestsApiRepositoriesUsernameRepoSlugPullrequestsPullRequestIdActivityGetGet /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/activity
PullrequestsApiRepositoriesUsernameRepoSlugPullrequestsPullRequestIdApproveDeleteDelete /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/approve
PullrequestsApiRepositoriesUsernameRepoSlugPullrequestsPullRequestIdApprovePostPost /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/approve
PullrequestsApiRepositoriesUsernameRepoSlugPullrequestsPullRequestIdCommentsCommentIdDeleteDelete /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/comments/{comment_id}
PullrequestsApiRepositoriesUsernameRepoSlugPullrequestsPullRequestIdCommentsCommentIdGetGet /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/comments/{comment_id}
PullrequestsApiRepositoriesUsernameRepoSlugPullrequestsPullRequestIdCommentsCommentIdPutPut /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/comments/{comment_id}
PullrequestsApiRepositoriesUsernameRepoSlugPullrequestsPullRequestIdCommentsGetGet /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/comments
PullrequestsApiRepositoriesUsernameRepoSlugPullrequestsPullRequestIdCommentsPostPost /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/comments
PullrequestsApiRepositoriesUsernameRepoSlugPullrequestsPullRequestIdCommitsGetGet /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/commits
PullrequestsApiRepositoriesUsernameRepoSlugPullrequestsPullRequestIdDeclinePostPost /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/decline
PullrequestsApiRepositoriesUsernameRepoSlugPullrequestsPullRequestIdDiffGetGet /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/diff
PullrequestsApiRepositoriesUsernameRepoSlugPullrequestsPullRequestIdDiffstatGetGet /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/diffstat
PullrequestsApiRepositoriesUsernameRepoSlugPullrequestsPullRequestIdGetGet /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}
PullrequestsApiRepositoriesUsernameRepoSlugPullrequestsPullRequestIdMergePostPost /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/merge
PullrequestsApiRepositoriesUsernameRepoSlugPullrequestsPullRequestIdPatchGetGet /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/patch
PullrequestsApiRepositoriesUsernameRepoSlugPullrequestsPullRequestIdPutPut /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}
PullrequestsApiRepositoriesUsernameRepoSlugPullrequestsPullRequestIdStatusesGetGet /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/statuses
RefsApiRepositoriesUsernameRepoSlugRefsBranchesGetGet /repositories/{username}/{repo_slug}/refs/branches
RefsApiRepositoriesUsernameRepoSlugRefsBranchesNameDeleteDelete /repositories/{username}/{repo_slug}/refs/branches/{name}
RefsApiRepositoriesUsernameRepoSlugRefsBranchesNameGetGet /repositories/{username}/{repo_slug}/refs/branches/{name}
RefsApiRepositoriesUsernameRepoSlugRefsBranchesPostPost /repositories/{username}/{repo_slug}/refs/branches
RefsApiRepositoriesUsernameRepoSlugRefsGetGet /repositories/{username}/{repo_slug}/refs
RefsApiRepositoriesUsernameRepoSlugRefsTagsGetGet /repositories/{username}/{repo_slug}/refs/tags
RefsApiRepositoriesUsernameRepoSlugRefsTagsNameDeleteDelete /repositories/{username}/{repo_slug}/refs/tags/{name}
RefsApiRepositoriesUsernameRepoSlugRefsTagsNameGetGet /repositories/{username}/{repo_slug}/refs/tags/{name}
RefsApiRepositoriesUsernameRepoSlugRefsTagsPostPost /repositories/{username}/{repo_slug}/refs/tags
RepositoriesApiRepositoriesGetGet /repositories
RepositoriesApiRepositoriesUsernameGetGet /repositories/{username}
RepositoriesApiRepositoriesUsernameRepoSlugCommitNodeStatusesBuildKeyGetGet /repositories/{username}/{repo_slug}/commit/{node}/statuses/build/{key}
RepositoriesApiRepositoriesUsernameRepoSlugCommitNodeStatusesBuildKeyPutPut /repositories/{username}/{repo_slug}/commit/{node}/statuses/build/{key}
RepositoriesApiRepositoriesUsernameRepoSlugCommitNodeStatusesBuildPostPost /repositories/{username}/{repo_slug}/commit/{node}/statuses/build
RepositoriesApiRepositoriesUsernameRepoSlugCommitNodeStatusesGetGet /repositories/{username}/{repo_slug}/commit/{node}/statuses
RepositoriesApiRepositoriesUsernameRepoSlugDeleteDelete /repositories/{username}/{repo_slug}
RepositoriesApiRepositoriesUsernameRepoSlugFilehistoryNodePathGetGet /repositories/{username}/{repo_slug}/filehistory/{node}/{path}
RepositoriesApiRepositoriesUsernameRepoSlugForksGetGet /repositories/{username}/{repo_slug}/forks
RepositoriesApiRepositoriesUsernameRepoSlugForksPostPost /repositories/{username}/{repo_slug}/forks
RepositoriesApiRepositoriesUsernameRepoSlugGetGet /repositories/{username}/{repo_slug}
RepositoriesApiRepositoriesUsernameRepoSlugHooksGetGet /repositories/{username}/{repo_slug}/hooks
RepositoriesApiRepositoriesUsernameRepoSlugHooksPostPost /repositories/{username}/{repo_slug}/hooks
RepositoriesApiRepositoriesUsernameRepoSlugHooksUidDeleteDelete /repositories/{username}/{repo_slug}/hooks/{uid}
RepositoriesApiRepositoriesUsernameRepoSlugHooksUidGetGet /repositories/{username}/{repo_slug}/hooks/{uid}
RepositoriesApiRepositoriesUsernameRepoSlugHooksUidPutPut /repositories/{username}/{repo_slug}/hooks/{uid}
RepositoriesApiRepositoriesUsernameRepoSlugPostPost /repositories/{username}/{repo_slug}
RepositoriesApiRepositoriesUsernameRepoSlugPullrequestsPullRequestIdStatusesGetGet /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/statuses
RepositoriesApiRepositoriesUsernameRepoSlugPutPut /repositories/{username}/{repo_slug}
RepositoriesApiRepositoriesUsernameRepoSlugSrcGetGet /repositories/{username}/{repo_slug}/src
RepositoriesApiRepositoriesUsernameRepoSlugSrcNodePathGetGet /repositories/{username}/{repo_slug}/src/{node}/{path}
RepositoriesApiRepositoriesUsernameRepoSlugSrcPostPost /repositories/{username}/{repo_slug}/src
RepositoriesApiRepositoriesUsernameRepoSlugWatchersGetGet /repositories/{username}/{repo_slug}/watchers
RepositoriesApiUserPermissionsRepositoriesGetGet /user/permissions/repositories
SearchApiSearchAccountGet /teams/{username}/search/codeSearch for code in the repositories of the specified team
SearchApiSearchAccount_0Get /users/{username}/search/codeSearch for code in the repositories of the specified user
SnippetApiSnippetsUsernameEncodedIdFilesPathGetGet /snippets/{username}/{encoded_id}/files/{path}
SnippetsApiSnippetsGetGet /snippets
SnippetsApiSnippetsPostPost /snippets
SnippetsApiSnippetsUsernameEncodedIdCommentsCommentIdDeleteDelete /snippets/{username}/{encoded_id}/comments/{comment_id}
SnippetsApiSnippetsUsernameEncodedIdCommentsCommentIdGetGet /snippets/{username}/{encoded_id}/comments/{comment_id}
SnippetsApiSnippetsUsernameEncodedIdCommentsCommentIdPutPut /snippets/{username}/{encoded_id}/comments/{comment_id}
SnippetsApiSnippetsUsernameEncodedIdCommentsGetGet /snippets/{username}/{encoded_id}/comments
SnippetsApiSnippetsUsernameEncodedIdCommentsPostPost /snippets/{username}/{encoded_id}/comments
SnippetsApiSnippetsUsernameEncodedIdCommitsGetGet /snippets/{username}/{encoded_id}/commits
SnippetsApiSnippetsUsernameEncodedIdCommitsRevisionGetGet /snippets/{username}/{encoded_id}/commits/{revision}
SnippetsApiSnippetsUsernameEncodedIdDeleteDelete /snippets/{username}/{encoded_id}
SnippetsApiSnippetsUsernameEncodedIdGetGet /snippets/{username}/{encoded_id}
SnippetsApiSnippetsUsernameEncodedIdNodeIdDeleteDelete /snippets/{username}/{encoded_id}/{node_id}
SnippetsApiSnippetsUsernameEncodedIdNodeIdFilesPathGetGet /snippets/{username}/{encoded_id}/{node_id}/files/{path}
SnippetsApiSnippetsUsernameEncodedIdNodeIdGetGet /snippets/{username}/{encoded_id}/{node_id}
SnippetsApiSnippetsUsernameEncodedIdNodeIdPutPut /snippets/{username}/{encoded_id}/{node_id}
SnippetsApiSnippetsUsernameEncodedIdPutPut /snippets/{username}/{encoded_id}
SnippetsApiSnippetsUsernameEncodedIdRevisionDiffGetGet /snippets/{username}/{encoded_id}/{revision}/diff
SnippetsApiSnippetsUsernameEncodedIdRevisionPatchGetGet /snippets/{username}/{encoded_id}/{revision}/patch
SnippetsApiSnippetsUsernameEncodedIdWatchDeleteDelete /snippets/{username}/{encoded_id}/watch
SnippetsApiSnippetsUsernameEncodedIdWatchGetGet /snippets/{username}/{encoded_id}/watch
SnippetsApiSnippetsUsernameEncodedIdWatchPutPut /snippets/{username}/{encoded_id}/watch
SnippetsApiSnippetsUsernameEncodedIdWatchersGetGet /snippets/{username}/{encoded_id}/watchers
SnippetsApiSnippetsUsernameGetGet /snippets/{username}
SnippetsApiSnippetsUsernamePostPost /snippets/{username}
SourceApiRepositoriesUsernameRepoSlugFilehistoryNodePathGetGet /repositories/{username}/{repo_slug}/filehistory/{node}/{path}
SourceApiRepositoriesUsernameRepoSlugSrcGetGet /repositories/{username}/{repo_slug}/src
SourceApiRepositoriesUsernameRepoSlugSrcNodePathGetGet /repositories/{username}/{repo_slug}/src/{node}/{path}
SourceApiRepositoriesUsernameRepoSlugSrcPostPost /repositories/{username}/{repo_slug}/src
SshApiUsersUsernameSshKeysDeleteDelete /users/{username}/ssh-keys/
SshApiUsersUsernameSshKeysGetGet /users/{username}/ssh-keys/
SshApiUsersUsernameSshKeysGet_0Get /users/{username}/ssh-keys
SshApiUsersUsernameSshKeysPostPost /users/{username}/ssh-keys
SshApiUsersUsernameSshKeysPutPut /users/{username}/ssh-keys/
TeamsApiTeamsGetGet /teams
TeamsApiTeamsUsernameFollowersGetGet /teams/{username}/followers
TeamsApiTeamsUsernameFollowingGetGet /teams/{username}/following
TeamsApiTeamsUsernameGetGet /teams/{username}
TeamsApiTeamsUsernameHooksGetGet /teams/{username}/hooks
TeamsApiTeamsUsernameHooksPostPost /teams/{username}/hooks
TeamsApiTeamsUsernameHooksUidDeleteDelete /teams/{username}/hooks/{uid}
TeamsApiTeamsUsernameHooksUidGetGet /teams/{username}/hooks/{uid}
TeamsApiTeamsUsernameHooksUidPutPut /teams/{username}/hooks/{uid}
TeamsApiTeamsUsernameMembersGetGet /teams/{username}/members
TeamsApiTeamsUsernameRepositoriesGetGet /teams/{username}/repositories
TeamsApiUsersUsernameMembersGetGet /users/{username}/members
TeamsApiUsersUsernameRepositoriesGetGet /users/{username}/repositories
UsersApiTeamsUsernameRepositoriesGetGet /teams/{username}/repositories
UsersApiUserEmailsEmailGetGet /user/emails/{email}
UsersApiUserEmailsGetGet /user/emails
UsersApiUserGetGet /user
UsersApiUsersUsernameFollowersGetGet /users/{username}/followers
UsersApiUsersUsernameFollowingGetGet /users/{username}/following
UsersApiUsersUsernameGetGet /users/{username}
UsersApiUsersUsernameHooksGetGet /users/{username}/hooks
UsersApiUsersUsernameHooksPostPost /users/{username}/hooks
UsersApiUsersUsernameHooksUidDeleteDelete /users/{username}/hooks/{uid}
UsersApiUsersUsernameHooksUidGetGet /users/{username}/hooks/{uid}
UsersApiUsersUsernameHooksUidPutPut /users/{username}/hooks/{uid}
UsersApiUsersUsernameRepositoriesGetGet /users/{username}/repositories
WebhooksApiHookEventsGetGet /hook_events
WebhooksApiHookEventsSubjectTypeGetGet /hook_events/{subject_type}
WebhooksApiRepositoriesUsernameRepoSlugHooksGetGet /repositories/{username}/{repo_slug}/hooks
WebhooksApiRepositoriesUsernameRepoSlugHooksPostPost /repositories/{username}/{repo_slug}/hooks
WebhooksApiRepositoriesUsernameRepoSlugHooksUidDeleteDelete /repositories/{username}/{repo_slug}/hooks/{uid}
WebhooksApiRepositoriesUsernameRepoSlugHooksUidGetGet /repositories/{username}/{repo_slug}/hooks/{uid}
WebhooksApiRepositoriesUsernameRepoSlugHooksUidPutPut /repositories/{username}/{repo_slug}/hooks/{uid}
WebhooksApiTeamsUsernameHooksGetGet /teams/{username}/hooks
WebhooksApiTeamsUsernameHooksPostPost /teams/{username}/hooks
WebhooksApiTeamsUsernameHooksUidDeleteDelete /teams/{username}/hooks/{uid}
WebhooksApiTeamsUsernameHooksUidGetGet /teams/{username}/hooks/{uid}
WebhooksApiTeamsUsernameHooksUidPutPut /teams/{username}/hooks/{uid}
WebhooksApiUsersUsernameHooksGetGet /users/{username}/hooks
WebhooksApiUsersUsernameHooksPostPost /users/{username}/hooks
WebhooksApiUsersUsernameHooksUidDeleteDelete /users/{username}/hooks/{uid}
WebhooksApiUsersUsernameHooksUidGetGet /users/{username}/hooks/{uid}
WebhooksApiUsersUsernameHooksUidPutPut /users/{username}/hooks/{uid}

Documentation For Models

Documentation For Authorization

api_key

  • Type: API key

Example

	auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
		Key: "APIKEY",
		Prefix: "Bearer", // Omit if not necessary.
	})
    r, err := client.Service.Operation(auth, args)

basic

  • Type: HTTP basic authentication

Example

	auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
		UserName: "username",
		Password: "password",
	})
    r, err := client.Service.Operation(auth, args)

oauth2

  • Type: OAuth
  • Flow: accessCode
  • Authorization URL: https://bitbucket.org/site/oauth2/authorize
  • Scopes:
  • wiki: Read and modify your repositories' wikis
  • pullrequest:write: Read and modify your repositories and their pull requests
  • pipeline:variable: Access your repositories' build pipelines and configure their variables
  • project:write: Read and modify your team's project settings, and read and transfer repositories within your team's projects
  • pipeline:write: Access and rerun your repositories' build pipelines
  • snippet: Read your snippets
  • repository:delete: Delete your repositories
  • repository:write: Read and modify your repositories
  • issue: Read your repositories' issues
  • email: Read your account's primary email address
  • repository: Read your repositories
  • issue:write: Read and modify your repositories' issues
  • webhook: Read and modify your repositories' webhooks
  • pipeline: Access your repositories' build pipelines
  • snippet:write: Read and modify your snippets
  • account: Read your account information
  • repository:admin: Administer your repositories
  • pullrequest: Read your repositories and their pull requests
  • project: Read your team's project settings and read repositories contained within your team's projects
  • team: Read your team membership information
  • team:write: Read and modify your team membership information
  • account:write: Read and modify your account information

Example

	auth := context.WithValue(context.Background(), sw.ContextAccessToken, "ACCESSTOKENSTRING")
    r, err := client.Service.Operation(auth, args)

Or via OAuth2 module to automatically refresh tokens and perform user authentication.

	import 	"golang.org/x/oauth2"

    / .. Perform OAuth2 round trip request and obtain a token .. //

    tokenSource := oauth2cfg.TokenSource(createContext(httpClient), &token)
	auth := context.WithValue(oauth2.NoContext, sw.ContextOAuth2, tokenSource)
    r, err := client.Service.Operation(auth, args)

Author

[email protected]