To get this API accurate, there would need to be some careful changes in the main repo so that swagger generated the SDK correctly.
As such, and because my time is limited, I've decided to archive this for the time being.
|
||
---|---|---|
.swagger-codegen | ||
api | ||
docs | ||
.gitignore | ||
.swagger-codegen-ignore | ||
api_admin.go | ||
api_issue.go | ||
api_miscellaneous.go | ||
api_notification.go | ||
api_organization.go | ||
api_repository.go | ||
api_user.go | ||
client.go | ||
configuration.go | ||
go.mod | ||
go.sum | ||
Makefile | ||
model_access_token.go | ||
model_add_collaborator_option.go | ||
model_add_time_option.go | ||
model_annotated_tag_object.go | ||
model_annotated_tag.go | ||
model_api_error.go | ||
model_attachment.go | ||
model_branch.go | ||
model_comment.go | ||
model_commit_date_options.go | ||
model_commit_meta.go | ||
model_commit_user.go | ||
model_commit.go | ||
model_contents_response.go | ||
model_create_email_option.go | ||
model_create_file_options.go | ||
model_create_fork_option.go | ||
model_create_gpg_key_option.go | ||
model_create_hook_option_config.go | ||
model_create_hook_option.go | ||
model_create_issue_comment_option.go | ||
model_create_issue_option.go | ||
model_create_key_option.go | ||
model_create_label_option.go | ||
model_create_milestone_option.go | ||
model_create_org_option.go | ||
model_create_pull_request_option.go | ||
model_create_release_option.go | ||
model_create_repo_option.go | ||
model_create_status_option.go | ||
model_create_team_option.go | ||
model_create_user_option.go | ||
model_delete_email_option.go | ||
model_delete_file_options.go | ||
model_deploy_key.go | ||
model_edit_attachment_options.go | ||
model_edit_deadline_option.go | ||
model_edit_git_hook_option.go | ||
model_edit_hook_option.go | ||
model_edit_issue_comment_option.go | ||
model_edit_issue_option.go | ||
model_edit_label_option.go | ||
model_edit_milestone_option.go | ||
model_edit_org_option.go | ||
model_edit_pull_request_option.go | ||
model_edit_reaction_option.go | ||
model_edit_release_option.go | ||
model_edit_repo_option.go | ||
model_edit_team_option.go | ||
model_edit_user_option.go | ||
model_email.go | ||
model_external_tracker.go | ||
model_external_wiki.go | ||
model_file_commit_response.go | ||
model_file_delete_response.go | ||
model_file_links_response.go | ||
model_file_response.go | ||
model_git_blob_response.go | ||
model_git_entry.go | ||
model_git_hook.go | ||
model_git_object.go | ||
model_git_tree_response.go | ||
model_gpg_key_email.go | ||
model_gpg_key.go | ||
model_hook.go | ||
model_identity.go | ||
model_inline_response_200_1.go | ||
model_inline_response_200.go | ||
model_internal_tracker.go | ||
model_issue_deadline.go | ||
model_issue_labels_option.go | ||
model_issue.go | ||
model_label.go | ||
model_markdown_option.go | ||
model_merge_pull_request_option.go | ||
model_migrate_repo_form.go | ||
model_milestone.go | ||
model_notification_count.go | ||
model_notification_subject.go | ||
model_notification_thread.go | ||
model_organization.go | ||
model_payload_commit_verification.go | ||
model_payload_commit.go | ||
model_payload_user.go | ||
model_permission.go | ||
model_pr_branch_info.go | ||
model_public_key.go | ||
model_pull_request_meta.go | ||
model_pull_request.go | ||
model_reaction.go | ||
model_reference.go | ||
model_release.go | ||
model_repo_commit.go | ||
model_repo_topic_options.go | ||
model_repository_meta.go | ||
model_repository.go | ||
model_search_results.go | ||
model_server_version.go | ||
model_state_type.go | ||
model_status_state.go | ||
model_status.go | ||
model_stop_watch.go | ||
model_tag.go | ||
model_team.go | ||
model_time_stamp.go | ||
model_topic_name.go | ||
model_topic_response.go | ||
model_tracked_time.go | ||
model_transfer_repo_option.go | ||
model_update_file_options.go | ||
model_user_heatmap_data.go | ||
model_user.go | ||
model_watch_info.go | ||
README2.md | ||
README.md | ||
response.go |
Go API client for gitea
This documentation describes the Gitea API.
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.
- API version: 1.1.1
- Package version: 1.0.0
- Build package: io.swagger.codegen.languages.GoClientCodegen
Installation
Put the package under your project folder and add the following in import:
import "./gitea"
Documentation for API Endpoints
All URIs are relative to http://localhost/api/v1
Class | Method | HTTP request | Description |
---|---|---|---|
AdminApi | AdminCreateOrg | Post /admin/users/{username}/orgs | Create an organization |
AdminApi | AdminCreatePublicKey | Post /admin/users/{username}/keys | Add a public key on behalf of a user |
AdminApi | AdminCreateRepo | Post /admin/users/{username}/repos | Create a repository on behalf of a user |
AdminApi | AdminCreateUser | Post /admin/users | Create a user |
AdminApi | AdminDeleteUser | Delete /admin/users/{username} | Delete a user |
AdminApi | AdminDeleteUserPublicKey | Delete /admin/users/{username}/keys/{id} | Delete a user's public key |
AdminApi | AdminEditUser | Patch /admin/users/{username} | Edit an existing user |
AdminApi | AdminGetAllOrgs | Get /admin/orgs | List all organizations |
AdminApi | AdminGetAllUsers | Get /admin/users | List all users |
IssueApi | IssueAddLabel | Post /repos/{owner}/{repo}/issues/{index}/labels | Add a label to an issue |
IssueApi | IssueAddSubscription | Put /repos/{owner}/{repo}/issues/{index}/subscriptions/{user} | Subscribe user to issue |
IssueApi | IssueAddTime | Post /repos/{owner}/{repo}/issues/{index}/times | Add tracked time to a issue |
IssueApi | IssueClearLabels | Delete /repos/{owner}/{repo}/issues/{index}/labels | Remove all labels from an issue |
IssueApi | IssueCreateComment | Post /repos/{owner}/{repo}/issues/{index}/comments | Add a comment to an issue |
IssueApi | IssueCreateIssue | Post /repos/{owner}/{repo}/issues | Create an issue. If using deadline only the date will be taken into account, and time of day ignored. |
IssueApi | IssueCreateLabel | Post /repos/{owner}/{repo}/labels | Create a label |
IssueApi | IssueCreateMilestone | Post /repos/{owner}/{repo}/milestones | Create a milestone |
IssueApi | IssueDeleteComment | Delete /repos/{owner}/{repo}/issues/comments/{id} | Delete a comment |
IssueApi | IssueDeleteCommentDeprecated | Delete /repos/{owner}/{repo}/issues/{index}/comments/{id} | Delete a comment |
IssueApi | IssueDeleteCommentReaction | Delete /repos/{owner}/{repo}/issues/comments/{id}/reactions | Remove a reaction from a comment of an issue |
IssueApi | IssueDeleteIssueReaction | Delete /repos/{owner}/{repo}/issues/{index}/reactions | Remove a reaction from an issue |
IssueApi | IssueDeleteLabel | Delete /repos/{owner}/{repo}/labels/{id} | Delete a label |
IssueApi | IssueDeleteMilestone | Delete /repos/{owner}/{repo}/milestones/{id} | Delete a milestone |
IssueApi | IssueDeleteStopWatch | Delete /repos/{owner}/{repo}/issues/{index}/stopwatch/delete | Delete an issue's existing stopwatch. |
IssueApi | IssueDeleteSubscription | Delete /repos/{owner}/{repo}/issues/{index}/subscriptions/{user} | Unsubscribe user from issue |
IssueApi | IssueDeleteTime | Delete /repos/{owner}/{repo}/issues/{index}/times/{id} | Delete specific tracked time |
IssueApi | IssueEditComment | Patch /repos/{owner}/{repo}/issues/comments/{id} | Edit a comment |
IssueApi | IssueEditCommentDeprecated | Patch /repos/{owner}/{repo}/issues/{index}/comments/{id} | Edit a comment |
IssueApi | IssueEditIssue | Patch /repos/{owner}/{repo}/issues/{index} | Edit an issue. If using deadline only the date will be taken into account, and time of day ignored. |
IssueApi | IssueEditIssueDeadline | Post /repos/{owner}/{repo}/issues/{index}/deadline | Set an issue deadline. If set to null, the deadline is deleted. If using deadline only the date will be taken into account, and time of day ignored. |
IssueApi | IssueEditLabel | Patch /repos/{owner}/{repo}/labels/{id} | Update a label |
IssueApi | IssueEditMilestone | Patch /repos/{owner}/{repo}/milestones/{id} | Update a milestone |
IssueApi | IssueGetComment | Get /repos/{owner}/{repo}/issues/comments/{id} | Get a comment |
IssueApi | IssueGetCommentReactions | Get /repos/{owner}/{repo}/issues/comments/{id}/reactions | Get a list of reactions from a comment of an issue |
IssueApi | IssueGetComments | Get /repos/{owner}/{repo}/issues/{index}/comments | List all comments on an issue |
IssueApi | IssueGetIssue | Get /repos/{owner}/{repo}/issues/{index} | Get an issue |
IssueApi | IssueGetIssueReactions | Get /repos/{owner}/{repo}/issues/{index}/reactions | Get a list reactions of an issue |
IssueApi | IssueGetLabel | Get /repos/{owner}/{repo}/labels/{id} | Get a single label |
IssueApi | IssueGetLabels | Get /repos/{owner}/{repo}/issues/{index}/labels | Get an issue's labels |
IssueApi | IssueGetMilestone | Get /repos/{owner}/{repo}/milestones/{id} | Get a milestone |
IssueApi | IssueGetMilestonesList | Get /repos/{owner}/{repo}/milestones | Get all of a repository's opened milestones |
IssueApi | IssueGetRepoComments | Get /repos/{owner}/{repo}/issues/comments | List all comments in a repository |
IssueApi | IssueListIssues | Get /repos/{owner}/{repo}/issues | List a repository's issues |
IssueApi | IssueListLabels | Get /repos/{owner}/{repo}/labels | Get all of a repository's labels |
IssueApi | IssuePostCommentReaction | Post /repos/{owner}/{repo}/issues/comments/{id}/reactions | Add a reaction to a comment of an issue |
IssueApi | IssuePostIssueReaction | Post /repos/{owner}/{repo}/issues/{index}/reactions | Add a reaction to an issue |
IssueApi | IssueRemoveLabel | Delete /repos/{owner}/{repo}/issues/{index}/labels/{id} | Remove a label from an issue |
IssueApi | IssueReplaceLabels | Put /repos/{owner}/{repo}/issues/{index}/labels | Replace an issue's labels |
IssueApi | IssueResetTime | Delete /repos/{owner}/{repo}/issues/{index}/times | Reset a tracked time of an issue |
IssueApi | IssueSearchIssues | Get /repos/issues/search | Search for issues across the repositories that the user has access to |
IssueApi | IssueStartStopWatch | Post /repos/{owner}/{repo}/issues/{index}/stopwatch/start | Start stopwatch on an issue. |
IssueApi | IssueStopStopWatch | Post /repos/{owner}/{repo}/issues/{index}/stopwatch/stop | Stop an issue's existing stopwatch. |
IssueApi | IssueSubscriptions | Get /repos/{owner}/{repo}/issues/{index}/subscriptions | Get users who subscribed on an issue. |
IssueApi | IssueTrackedTimes | Get /repos/{owner}/{repo}/issues/{index}/times | List an issue's tracked times |
MiscellaneousApi | GetSigningKey | Get /signing-key.gpg | Get default signing-key.gpg |
MiscellaneousApi | GetVersion | Get /version | Returns the version of the Gitea application |
MiscellaneousApi | RenderMarkdown | Post /markdown | Render a markdown document as HTML |
MiscellaneousApi | RenderMarkdownRaw | Post /markdown/raw | Render raw markdown as HTML |
NotificationApi | NotifyGetList | Get /notifications | List users's notification threads |
NotificationApi | NotifyGetRepoList | Get /repos/{owner}/{repo}/notifications | List users's notification threads on a specific repo |
NotificationApi | NotifyGetThread | Get /notifications/threads/{id} | Get notification thread by ID |
NotificationApi | NotifyNewAvailable | Get /notifications/new | Check if unread notifications exist |
NotificationApi | NotifyReadList | Put /notifications | Mark notification threads as read |
NotificationApi | NotifyReadRepoList | Put /repos/{owner}/{repo}/notifications | Mark notification threads as read on a specific repo |
NotificationApi | NotifyReadThread | Patch /notifications/threads/{id} | Mark notification thread as read by ID |
OrganizationApi | CreateOrgRepo | Post /orgs/{org}/repos | Create a repository in an organization |
OrganizationApi | CreateOrgRepoDeprecated | Post /org/{org}/repos | Create a repository in an organization |
OrganizationApi | OrgAddTeamMember | Put /teams/{id}/members/{username} | Add a team member |
OrganizationApi | OrgAddTeamRepository | Put /teams/{id}/repos/{org}/{repo} | Add a repository to a team |
OrganizationApi | OrgConcealMember | Delete /orgs/{org}/public_members/{username} | Conceal a user's membership |
OrganizationApi | OrgCreate | Post /orgs | Create an organization |
OrganizationApi | OrgCreateHook | Post /orgs/{org}/hooks/ | Create a hook |
OrganizationApi | OrgCreateTeam | Post /orgs/{org}/teams | Create a team |
OrganizationApi | OrgDelete | Delete /orgs/{org} | Delete an organization |
OrganizationApi | OrgDeleteHook | Delete /orgs/{org}/hooks/{id} | Delete a hook |
OrganizationApi | OrgDeleteMember | Delete /orgs/{org}/members/{username} | Remove a member from an organization |
OrganizationApi | OrgDeleteTeam | Delete /teams/{id} | Delete a team |
OrganizationApi | OrgEdit | Patch /orgs/{org} | Edit an organization |
OrganizationApi | OrgEditHook | Patch /orgs/{org}/hooks/{id} | Update a hook |
OrganizationApi | OrgEditTeam | Patch /teams/{id} | Edit a team |
OrganizationApi | OrgGet | Get /orgs/{org} | Get an organization |
OrganizationApi | OrgGetAll | Get /orgs | Get list of organizations |
OrganizationApi | OrgGetHook | Get /orgs/{org}/hooks/{id} | Get a hook |
OrganizationApi | OrgGetTeam | Get /teams/{id} | Get a team |
OrganizationApi | OrgIsMember | Get /orgs/{org}/members/{username} | Check if a user is a member of an organization |
OrganizationApi | OrgIsPublicMember | Get /orgs/{org}/public_members/{username} | Check if a user is a public member of an organization |
OrganizationApi | OrgListCurrentUserOrgs | Get /user/orgs | List the current user's organizations |
OrganizationApi | OrgListHooks | Get /orgs/{org}/hooks | List an organization's webhooks |
OrganizationApi | OrgListMembers | Get /orgs/{org}/members | List an organization's members |
OrganizationApi | OrgListPublicMembers | Get /orgs/{org}/public_members | List an organization's public members |
OrganizationApi | OrgListRepos | Get /orgs/{org}/repos | List an organization's repos |
OrganizationApi | OrgListTeamMember | Get /teams/{id}/members/{username} | List a particular member of team |
OrganizationApi | OrgListTeamMembers | Get /teams/{id}/members | List a team's members |
OrganizationApi | OrgListTeamRepos | Get /teams/{id}/repos | List a team's repos |
OrganizationApi | OrgListTeams | Get /orgs/{org}/teams | List an organization's teams |
OrganizationApi | OrgListUserOrgs | Get /users/{username}/orgs | List a user's organizations |
OrganizationApi | OrgPublicizeMember | Put /orgs/{org}/public_members/{username} | Publicize a user's membership |
OrganizationApi | OrgRemoveTeamMember | Delete /teams/{id}/members/{username} | Remove a team member |
OrganizationApi | OrgRemoveTeamRepository | Delete /teams/{id}/repos/{org}/{repo} | Remove a repository from a team |
OrganizationApi | TeamSearch | Get /orgs/{org}/teams/search | Search for teams within an organization |
RepositoryApi | CreateCurrentUserRepo | Post /user/repos | Create a repository |
RepositoryApi | CreateFork | Post /repos/{owner}/{repo}/forks | Fork a repository |
RepositoryApi | GetBlob | Get /repos/{owner}/{repo}/git/blobs/{sha} | Gets the blob of a repository. |
RepositoryApi | GetTag | Get /repos/{owner}/{repo}/git/tags/{sha} | Gets the tag object of an annotated tag (not lightweight tags) |
RepositoryApi | GetTree | Get /repos/{owner}/{repo}/git/trees/{sha} | Gets the tree of a repository. |
RepositoryApi | ListForks | Get /repos/{owner}/{repo}/forks | List a repository's forks |
RepositoryApi | RepoAddCollaborator | Put /repos/{owner}/{repo}/collaborators/{collaborator} | Add a collaborator to a repository |
RepositoryApi | RepoAddTopc | Put /repos/{owner}/{repo}/topics/{topic} | Add a topic to a repository |
RepositoryApi | RepoCheckCollaborator | Get /repos/{owner}/{repo}/collaborators/{collaborator} | Check if a user is a collaborator of a repository |
RepositoryApi | RepoCreateFile | Post /repos/{owner}/{repo}/contents/{filepath} | Create a file in a repository |
RepositoryApi | RepoCreateHook | Post /repos/{owner}/{repo}/hooks | Create a hook |
RepositoryApi | RepoCreateKey | Post /repos/{owner}/{repo}/keys | Add a key to a repository |
RepositoryApi | RepoCreatePullRequest | Post /repos/{owner}/{repo}/pulls | Create a pull request |
RepositoryApi | RepoCreateRelease | Post /repos/{owner}/{repo}/releases | Create a release |
RepositoryApi | RepoCreateReleaseAttachment | Post /repos/{owner}/{repo}/releases/{id}/assets | Create a release attachment |
RepositoryApi | RepoCreateStatus | Post /repos/{owner}/{repo}/statuses/{sha} | Create a commit status |
RepositoryApi | RepoDelete | Delete /repos/{owner}/{repo} | Delete a repository |
RepositoryApi | RepoDeleteCollaborator | Delete /repos/{owner}/{repo}/collaborators/{collaborator} | Delete a collaborator from a repository |
RepositoryApi | RepoDeleteFile | Delete /repos/{owner}/{repo}/contents/{filepath} | Delete a file in a repository |
RepositoryApi | RepoDeleteGitHook | Delete /repos/{owner}/{repo}/hooks/git/{id} | Delete a Git hook in a repository |
RepositoryApi | RepoDeleteHook | Delete /repos/{owner}/{repo}/hooks/{id} | Delete a hook in a repository |
RepositoryApi | RepoDeleteKey | Delete /repos/{owner}/{repo}/keys/{id} | Delete a key from a repository |
RepositoryApi | RepoDeleteRelease | Delete /repos/{owner}/{repo}/releases/{id} | Delete a release |
RepositoryApi | RepoDeleteReleaseAttachment | Delete /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id} | Delete a release attachment |
RepositoryApi | RepoDeleteTopic | Delete /repos/{owner}/{repo}/topics/{topic} | Delete a topic from a repository |
RepositoryApi | RepoEdit | Patch /repos/{owner}/{repo} | Edit a repository's properties. Only fields that are set will be changed. |
RepositoryApi | RepoEditGitHook | Patch /repos/{owner}/{repo}/hooks/git/{id} | Edit a Git hook in a repository |
RepositoryApi | RepoEditHook | Patch /repos/{owner}/{repo}/hooks/{id} | Edit a hook in a repository |
RepositoryApi | RepoEditPullRequest | Patch /repos/{owner}/{repo}/pulls/{index} | Update a pull request. If using deadline only the date will be taken into account, and time of day ignored. |
RepositoryApi | RepoEditRelease | Patch /repos/{owner}/{repo}/releases/{id} | Update a release |
RepositoryApi | RepoEditReleaseAttachment | Patch /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id} | Edit a release attachment |
RepositoryApi | RepoGet | Get /repos/{owner}/{repo} | Get a repository |
RepositoryApi | RepoGetAllCommits | Get /repos/{owner}/{repo}/commits | Get a list of all commits from a repository |
RepositoryApi | RepoGetArchive | Get /repos/{owner}/{repo}/archive/{archive} | Get an archive of a repository |
RepositoryApi | RepoGetBranch | Get /repos/{owner}/{repo}/branches/{branch} | Retrieve a specific branch from a repository, including its effective branch protection |
RepositoryApi | RepoGetByID | Get /repositories/{id} | Get a repository by id |
RepositoryApi | RepoGetCombinedStatusByRef | Get /repos/{owner}/{repo}/commits/{ref}/statuses | Get a commit's combined status, by branch/tag/commit reference |
RepositoryApi | RepoGetContents | Get /repos/{owner}/{repo}/contents/{filepath} | Gets the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dir |
RepositoryApi | RepoGetContentsList | Get /repos/{owner}/{repo}/contents | Gets the metadata of all the entries of the root dir |
RepositoryApi | RepoGetEditorConfig | Get /repos/{owner}/{repo}/editorconfig/{filepath} | Get the EditorConfig definitions of a file in a repository |
RepositoryApi | RepoGetGitHook | Get /repos/{owner}/{repo}/hooks/git/{id} | Get a Git hook |
RepositoryApi | RepoGetHook | Get /repos/{owner}/{repo}/hooks/{id} | Get a hook |
RepositoryApi | RepoGetKey | Get /repos/{owner}/{repo}/keys/{id} | Get a repository's key by id |
RepositoryApi | RepoGetPullRequest | Get /repos/{owner}/{repo}/pulls/{index} | Get a pull request |
RepositoryApi | RepoGetRawFile | Get /repos/{owner}/{repo}/raw/{filepath} | Get a file from a repository |
RepositoryApi | RepoGetRelease | Get /repos/{owner}/{repo}/releases/{id} | Get a release |
RepositoryApi | RepoGetReleaseAttachment | Get /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id} | Get a release attachment |
RepositoryApi | RepoGetSingleCommit | Get /repos/{owner}/{repo}/git/commits/{sha} | Get a single commit from a repository |
RepositoryApi | RepoListAllGitRefs | Get /repos/{owner}/{repo}/git/refs | Get specified ref or filtered repository's refs |
RepositoryApi | RepoListBranches | Get /repos/{owner}/{repo}/branches | List a repository's branches |
RepositoryApi | RepoListCollaborators | Get /repos/{owner}/{repo}/collaborators | List a repository's collaborators |
RepositoryApi | RepoListGitHooks | Get /repos/{owner}/{repo}/hooks/git | List the Git hooks in a repository |
RepositoryApi | RepoListGitRefs | Get /repos/{owner}/{repo}/git/refs/{ref} | Get specified ref or filtered repository's refs |
RepositoryApi | RepoListHooks | Get /repos/{owner}/{repo}/hooks | List the hooks in a repository |
RepositoryApi | RepoListKeys | Get /repos/{owner}/{repo}/keys | List a repository's keys |
RepositoryApi | RepoListPullRequests | Get /repos/{owner}/{repo}/pulls | List a repo's pull requests |
RepositoryApi | RepoListReleaseAttachments | Get /repos/{owner}/{repo}/releases/{id}/assets | List release's attachments |
RepositoryApi | RepoListReleases | Get /repos/{owner}/{repo}/releases | List a repo's releases |
RepositoryApi | RepoListStargazers | Get /repos/{owner}/{repo}/stargazers | List a repo's stargazers |
RepositoryApi | RepoListStatuses | Get /repos/{owner}/{repo}/statuses/{sha} | Get a commit's statuses |
RepositoryApi | RepoListSubscribers | Get /repos/{owner}/{repo}/subscribers | List a repo's watchers |
RepositoryApi | RepoListTags | Get /repos/{owner}/{repo}/tags | List a repository's tags |
RepositoryApi | RepoListTopics | Get /repos/{owner}/{repo}/topics | Get list of topics that a repository has |
RepositoryApi | RepoMergePullRequest | Post /repos/{owner}/{repo}/pulls/{index}/merge | Merge a pull request |
RepositoryApi | RepoMigrate | Post /repos/migrate | Migrate a remote git repository |
RepositoryApi | RepoMirrorSync | Post /repos/{owner}/{repo}/mirror-sync | Sync a mirrored repository |
RepositoryApi | RepoPullRequestIsMerged | Get /repos/{owner}/{repo}/pulls/{index}/merge | Check if a pull request has been merged |
RepositoryApi | RepoSearch | Get /repos/search | Search for repositories |
RepositoryApi | RepoSigningKey | Get /repos/{owner}/{repo}/signing-key.gpg | Get signing-key.gpg for given repository |
RepositoryApi | RepoTestHook | Post /repos/{owner}/{repo}/hooks/{id}/tests | Test a push webhook |
RepositoryApi | RepoTrackedTimes | Get /repos/{owner}/{repo}/times | List a repo's tracked times |
RepositoryApi | RepoTransfer | Post /repos/{owner}/{repo}/transfer | Transfer a repo ownership |
RepositoryApi | RepoUpdateFile | Put /repos/{owner}/{repo}/contents/{filepath} | Update a file in a repository |
RepositoryApi | RepoUpdateTopics | Put /repos/{owner}/{repo}/topics | Replace list of topics for a repository |
RepositoryApi | TopicSearch | Get /topics/search | search topics via keyword |
RepositoryApi | UserCurrentCheckSubscription | Get /repos/{owner}/{repo}/subscription | Check if the current user is watching a repo |
RepositoryApi | UserCurrentDeleteSubscription | Delete /repos/{owner}/{repo}/subscription | Unwatch a repo |
RepositoryApi | UserCurrentPutSubscription | Put /repos/{owner}/{repo}/subscription | Watch a repo |
RepositoryApi | UserTrackedTimes | Get /repos/{owner}/{repo}/times/{user} | List a user's tracked times in a repo |
UserApi | CreateCurrentUserRepo | Post /user/repos | Create a repository |
UserApi | UserAddEmail | Post /user/emails | Add email addresses |
UserApi | UserCheckFollowing | Get /users/{follower}/following/{followee} | Check if one user is following another user |
UserApi | UserCreateToken | Post /users/{username}/tokens | Create an access token |
UserApi | UserCurrentCheckFollowing | Get /user/following/{username} | Check whether a user is followed by the authenticated user |
UserApi | UserCurrentCheckStarring | Get /user/starred/{owner}/{repo} | Whether the authenticated is starring the repo |
UserApi | UserCurrentDeleteFollow | Delete /user/following/{username} | Unfollow a user |
UserApi | UserCurrentDeleteGPGKey | Delete /user/gpg_keys/{id} | Remove a GPG key |
UserApi | UserCurrentDeleteKey | Delete /user/keys/{id} | Delete a public key |
UserApi | UserCurrentDeleteStar | Delete /user/starred/{owner}/{repo} | Unstar the given repo |
UserApi | UserCurrentGetGPGKey | Get /user/gpg_keys/{id} | Get a GPG key |
UserApi | UserCurrentGetKey | Get /user/keys/{id} | Get a public key |
UserApi | UserCurrentListFollowers | Get /user/followers | List the authenticated user's followers |
UserApi | UserCurrentListFollowing | Get /user/following | List the users that the authenticated user is following |
UserApi | UserCurrentListGPGKeys | Get /user/gpg_keys | List the authenticated user's GPG keys |
UserApi | UserCurrentListKeys | Get /user/keys | List the authenticated user's public keys |
UserApi | UserCurrentListRepos | Get /user/repos | List the repos that the authenticated user owns or has access to |
UserApi | UserCurrentListStarred | Get /user/starred | The repos that the authenticated user has starred |
UserApi | UserCurrentListSubscriptions | Get /user/subscriptions | List repositories watched by the authenticated user |
UserApi | UserCurrentPostGPGKey | Post /user/gpg_keys | Create a GPG key |
UserApi | UserCurrentPostKey | Post /user/keys | Create a public key |
UserApi | UserCurrentPutFollow | Put /user/following/{username} | Follow a user |
UserApi | UserCurrentPutStar | Put /user/starred/{owner}/{repo} | Star the given repo |
UserApi | UserCurrentTrackedTimes | Get /user/times | List the current user's tracked times |
UserApi | UserDeleteAccessToken | Delete /users/{username}/tokens/{token} | delete an access token |
UserApi | UserDeleteEmail | Delete /user/emails | Delete email addresses |
UserApi | UserGet | Get /users/{username} | Get a user |
UserApi | UserGetCurrent | Get /user | Get the authenticated user |
UserApi | UserGetHeatmapData | Get /users/{username}/heatmap | Get a user's heatmap |
UserApi | UserGetStopWatches | Get /user/stopwatches | Get list of all existing stopwatches |
UserApi | UserGetTokens | Get /users/{username}/tokens | List the authenticated user's access tokens |
UserApi | UserListEmails | Get /user/emails | List the authenticated user's email addresses |
UserApi | UserListFollowers | Get /users/{username}/followers | List the given user's followers |
UserApi | UserListFollowing | Get /users/{username}/following | List the users that the given user is following |
UserApi | UserListGPGKeys | Get /users/{username}/gpg_keys | List the given user's GPG keys |
UserApi | UserListKeys | Get /users/{username}/keys | List the given user's public keys |
UserApi | UserListRepos | Get /users/{username}/repos | List the repos owned by the given user |
UserApi | UserListStarred | Get /users/{username}/starred | The repos that the given user has starred |
UserApi | UserListSubscriptions | Get /users/{username}/subscriptions | List the repositories watched by a user |
UserApi | UserListTeams | Get /user/teams | List all the teams a user belongs to |
UserApi | UserSearch | Get /users/search | Search for users |
Documentation For Models
- AccessToken
- AddCollaboratorOption
- AddTimeOption
- AnnotatedTag
- AnnotatedTagObject
- ApiError
- Attachment
- Branch
- Comment
- Commit
- CommitDateOptions
- CommitMeta
- CommitUser
- ContentsResponse
- CreateEmailOption
- CreateFileOptions
- CreateForkOption
- CreateGpgKeyOption
- CreateHookOption
- CreateHookOptionConfig
- CreateIssueCommentOption
- CreateIssueOption
- CreateKeyOption
- CreateLabelOption
- CreateMilestoneOption
- CreateOrgOption
- CreatePullRequestOption
- CreateReleaseOption
- CreateRepoOption
- CreateStatusOption
- CreateTeamOption
- CreateUserOption
- DeleteEmailOption
- DeleteFileOptions
- DeployKey
- EditAttachmentOptions
- EditDeadlineOption
- EditGitHookOption
- EditHookOption
- EditIssueCommentOption
- EditIssueOption
- EditLabelOption
- EditMilestoneOption
- EditOrgOption
- EditPullRequestOption
- EditReactionOption
- EditReleaseOption
- EditRepoOption
- EditTeamOption
- EditUserOption
- ExternalTracker
- ExternalWiki
- FileCommitResponse
- FileDeleteResponse
- FileLinksResponse
- FileResponse
- GitBlobResponse
- GitEntry
- GitHook
- GitObject
- GitTreeResponse
- GpgKey
- GpgKeyEmail
- Hook
- Identity
- InlineResponse200
- InlineResponse2001
- InternalTracker
- Issue
- IssueDeadline
- IssueLabelsOption
- Label
- MarkdownOption
- MergePullRequestOption
- MigrateRepoForm
- Milestone
- NotificationCount
- NotificationSubject
- NotificationThread
- Organization
- PayloadCommit
- PayloadCommitVerification
- PayloadUser
- Permission
- PrBranchInfo
- PublicKey
- PullRequest
- PullRequestMeta
- Reaction
- Reference
- Release
- RepoCommit
- RepoTopicOptions
- Repository
- RepositoryMeta
- SearchResults
- ServerVersion
- StateType
- Status
- StatusState
- StopWatch
- Tag
- Team
- TimeStamp
- TopicName
- TopicResponse
- TrackedTime
- TransferRepoOption
- UpdateFileOptions
- User
- UserHeatmapData
- WatchInfo
Documentation For Authorization
AccessToken
- 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)
AuthorizationHeaderToken
- 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)
BasicAuth
- 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)
SudoHeader
- 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)
SudoParam
- 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)
Token
- 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)