Gitea SDK generated by Swagger. See README2.md for caveats.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
John Olheiser fc382e2e9d
Initial generation
1 week ago
.swagger-codegen Initial generation 1 week ago
api Initial generation 1 week ago
docs Initial generation 1 week ago
.gitignore Initial generation 1 week ago
.swagger-codegen-ignore Initial generation 1 week ago
Makefile Initial generation 1 week ago
README.md Initial generation 1 week ago
README2.md Initial generation 1 week ago
api_admin.go Initial generation 1 week ago
api_issue.go Initial generation 1 week ago
api_miscellaneous.go Initial generation 1 week ago
api_organization.go Initial generation 1 week ago
api_repository.go Initial generation 1 week ago
api_user.go Initial generation 1 week ago
client.go Initial generation 1 week ago
configuration.go Initial generation 1 week ago
go.mod Initial generation 1 week ago
go.sum Initial generation 1 week ago
model_access_token.go Initial generation 1 week ago
model_add_collaborator_option.go Initial generation 1 week ago
model_add_time_option.go Initial generation 1 week ago
model_annotated_tag.go Initial generation 1 week ago
model_annotated_tag_object.go Initial generation 1 week ago
model_api_error.go Initial generation 1 week ago
model_attachment.go Initial generation 1 week ago
model_branch.go Initial generation 1 week ago
model_comment.go Initial generation 1 week ago
model_commit.go Initial generation 1 week ago
model_commit_date_options.go Initial generation 1 week ago
model_commit_meta.go Initial generation 1 week ago
model_commit_user.go Initial generation 1 week ago
model_contents_response.go Initial generation 1 week ago
model_create_email_option.go Initial generation 1 week ago
model_create_file_options.go Initial generation 1 week ago
model_create_fork_option.go Initial generation 1 week ago
model_create_gpg_key_option.go Initial generation 1 week ago
model_create_hook_option.go Initial generation 1 week ago
model_create_hook_option_config.go Initial generation 1 week ago
model_create_issue_comment_option.go Initial generation 1 week ago
model_create_issue_option.go Initial generation 1 week ago
model_create_key_option.go Initial generation 1 week ago
model_create_label_option.go Initial generation 1 week ago
model_create_milestone_option.go Initial generation 1 week ago
model_create_org_option.go Initial generation 1 week ago
model_create_pull_request_option.go Initial generation 1 week ago
model_create_release_option.go Initial generation 1 week ago
model_create_repo_option.go Initial generation 1 week ago
model_create_status_option.go Initial generation 1 week ago
model_create_team_option.go Initial generation 1 week ago
model_create_user_option.go Initial generation 1 week ago
model_delete_email_option.go Initial generation 1 week ago
model_delete_file_options.go Initial generation 1 week ago
model_deploy_key.go Initial generation 1 week ago
model_edit_attachment_options.go Initial generation 1 week ago
model_edit_deadline_option.go Initial generation 1 week ago
model_edit_git_hook_option.go Initial generation 1 week ago
model_edit_hook_option.go Initial generation 1 week ago
model_edit_issue_comment_option.go Initial generation 1 week ago
model_edit_issue_option.go Initial generation 1 week ago
model_edit_label_option.go Initial generation 1 week ago
model_edit_milestone_option.go Initial generation 1 week ago
model_edit_org_option.go Initial generation 1 week ago
model_edit_pull_request_option.go Initial generation 1 week ago
model_edit_reaction_option.go Initial generation 1 week ago
model_edit_release_option.go Initial generation 1 week ago
model_edit_repo_option.go Initial generation 1 week ago
model_edit_team_option.go Initial generation 1 week ago
model_edit_user_option.go Initial generation 1 week ago
model_email.go Initial generation 1 week ago
model_external_tracker.go Initial generation 1 week ago
model_external_wiki.go Initial generation 1 week ago
model_file_commit_response.go Initial generation 1 week ago
model_file_delete_response.go Initial generation 1 week ago
model_file_links_response.go Initial generation 1 week ago
model_file_response.go Initial generation 1 week ago
model_git_blob_response.go Initial generation 1 week ago
model_git_entry.go Initial generation 1 week ago
model_git_hook.go Initial generation 1 week ago
model_git_object.go Initial generation 1 week ago
model_git_tree_response.go Initial generation 1 week ago
model_gpg_key.go Initial generation 1 week ago
model_gpg_key_email.go Initial generation 1 week ago
model_hook.go Initial generation 1 week ago
model_identity.go Initial generation 1 week ago
model_inline_response_200.go Initial generation 1 week ago
model_inline_response_200_1.go Initial generation 1 week ago
model_internal_tracker.go Initial generation 1 week ago
model_issue.go Initial generation 1 week ago
model_issue_deadline.go Initial generation 1 week ago
model_issue_labels_option.go Initial generation 1 week ago
model_label.go Initial generation 1 week ago
model_markdown_option.go Initial generation 1 week ago
model_merge_pull_request_option.go Initial generation 1 week ago
model_migrate_repo_form.go Initial generation 1 week ago
model_milestone.go Initial generation 1 week ago
model_organization.go Initial generation 1 week ago
model_payload_commit.go Initial generation 1 week ago
model_payload_commit_verification.go Initial generation 1 week ago
model_payload_user.go Initial generation 1 week ago
model_permission.go Initial generation 1 week ago
model_pr_branch_info.go Initial generation 1 week ago
model_public_key.go Initial generation 1 week ago
model_pull_request.go Initial generation 1 week ago
model_pull_request_meta.go Initial generation 1 week ago
model_reaction.go Initial generation 1 week ago
model_reference.go Initial generation 1 week ago
model_release.go Initial generation 1 week ago
model_repo_commit.go Initial generation 1 week ago
model_repo_topic_options.go Initial generation 1 week ago
model_repository.go Initial generation 1 week ago
model_repository_meta.go Initial generation 1 week ago
model_search_results.go Initial generation 1 week ago
model_server_version.go Initial generation 1 week ago
model_state_type.go Initial generation 1 week ago
model_status.go Initial generation 1 week ago
model_status_state.go Initial generation 1 week ago
model_stop_watch.go Initial generation 1 week ago
model_tag.go Initial generation 1 week ago
model_team.go Initial generation 1 week ago
model_time_stamp.go Initial generation 1 week ago
model_topic_name.go Initial generation 1 week ago
model_topic_response.go Initial generation 1 week ago
model_tracked_time.go Initial generation 1 week ago
model_update_file_options.go Initial generation 1 week ago
model_user.go Initial generation 1 week ago
model_user_heatmap_data.go Initial generation 1 week ago
model_watch_info.go Initial generation 1 week ago
response.go Initial generation 1 week ago

README.md

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 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 a issue comment
IssueApi IssueDeleteIssueReaction Delete /repos/{owner}/{repo}/issues/{index}/reactions Remove a reaction from a comment of a 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 IssueGetCommentReactions Get /repos/{owner}/{repo}/issues/comments/{id}/reactions Get a list reactions of a issue comment
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 a 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 a issue comment
IssueApi IssuePostIssueReaction Post /repos/{owner}/{repo}/issues/{index}/reactions Add a reaction to a comment of a 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
OrganizationApi CreateOrgRepo 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 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 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
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
UserApi UserTrackedTimes Get /repos/{owner}/{repo}/times/{user} List a user's tracked times in a repo

Documentation For Models

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)

Author