1 Star 0 Fork 20

xiaoyangge / java-gitee

forked from openKylin-backup / java-gitee 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MulanPSL-1.0

gitee-java-sdk

Requirements

Building the API client library requires Maven to be installed.

Installation

To install the API client library to your local Maven repository, simply execute:

mvn install

To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:

mvn deploy

Refer to the official documentation for more information.

Maven users

Add this dependency to your project's POM:

<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>
<dependency>
	    <groupId>com.gitee.openkylin</groupId>
	    <artifactId>java-gitee</artifactId>
	    <version>master-SNAPSHOT</version>
	</dependency>

Gradle users

Add this dependency to your project's build file:

compile "com.gitee.openkylin:gitee-java-sdk:1.0.0"

Others

At first generate the JAR by executing:

mvn package

Then manually install the following JARs:

  • target/gitee-java-sdk-1.0.0.jar
  • target/lib/*.jar

Getting Started

Please follow the installation instruction and execute the following Java code:


import com.gitee.*;
import com.gitee.auth.*;
import com.gitee.model.*;
import com.gitee.api.ActivityApi;

import java.io.File;
import java.util.*;

public class ActivityApiExample {

    public static void main(String[] args) {
        
        ActivityApi apiInstance = new ActivityApi();
        String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path)
        String repo = "repo_example"; // String | 仓库路径(path)
        String accessToken = "accessToken_example"; // String | 用户授权码
        try {
            apiInstance.deleteV5UserStarredOwnerRepo(owner, repo, accessToken);
        } catch (ApiException e) {
            System.err.println("Exception when calling ActivityApi#deleteV5UserStarredOwnerRepo");
            e.printStackTrace();
        }
    }
}

Documentation for API Endpoints

All URIs are relative to https://gitee.com/api

Class Method HTTP request Description
ActivityApi deleteV5UserStarredOwnerRepo DELETE /v5/user/starred/{owner}/{repo} 取消 star 一个仓库
ActivityApi deleteV5UserSubscriptionsOwnerRepo DELETE /v5/user/subscriptions/{owner}/{repo} 取消 watch 一个仓库
ActivityApi getV5Events GET /v5/events 获取站内所有公开动态
ActivityApi getV5NetworksOwnerRepoEvents GET /v5/networks/{owner}/{repo}/events 列出仓库的所有公开动态
ActivityApi getV5NotificationsCount GET /v5/notifications/count 获取授权用户的通知数
ActivityApi getV5NotificationsMessages GET /v5/notifications/messages 列出授权用户的所有私信
ActivityApi getV5NotificationsMessagesId GET /v5/notifications/messages/{id} 获取一条私信
ActivityApi getV5NotificationsThreads GET /v5/notifications/threads 列出授权用户的所有通知
ActivityApi getV5NotificationsThreadsId GET /v5/notifications/threads/{id} 获取一条通知
ActivityApi getV5OrgsOrgEvents GET /v5/orgs/{org}/events 列出组织的公开动态
ActivityApi getV5ReposOwnerRepoEvents GET /v5/repos/{owner}/{repo}/events 列出仓库的所有动态
ActivityApi getV5ReposOwnerRepoNotifications GET /v5/repos/{owner}/{repo}/notifications 列出一个仓库里的通知
ActivityApi getV5ReposOwnerRepoStargazers GET /v5/repos/{owner}/{repo}/stargazers 列出 star 了仓库的用户
ActivityApi getV5ReposOwnerRepoSubscribers GET /v5/repos/{owner}/{repo}/subscribers 列出 watch 了仓库的用户
ActivityApi getV5UserStarred GET /v5/user/starred 列出授权用户 star 了的仓库
ActivityApi getV5UserStarredOwnerRepo GET /v5/user/starred/{owner}/{repo} 检查授权用户是否 star 了一个仓库
ActivityApi getV5UserSubscriptions GET /v5/user/subscriptions 列出授权用户 watch 了的仓库
ActivityApi getV5UserSubscriptionsOwnerRepo GET /v5/user/subscriptions/{owner}/{repo} 检查授权用户是否 watch 了一个仓库
ActivityApi getV5UsersUsernameEvents GET /v5/users/{username}/events 列出用户的动态
ActivityApi getV5UsersUsernameEventsOrgsOrg GET /v5/users/{username}/events/orgs/{org} 列出用户所属组织的动态
ActivityApi getV5UsersUsernameEventsPublic GET /v5/users/{username}/events/public 列出用户的公开动态
ActivityApi getV5UsersUsernameReceivedEvents GET /v5/users/{username}/received_events 列出一个用户收到的动态
ActivityApi getV5UsersUsernameReceivedEventsPublic GET /v5/users/{username}/received_events/public 列出一个用户收到的公开动态
ActivityApi getV5UsersUsernameStarred GET /v5/users/{username}/starred 列出用户 star 了的仓库
ActivityApi getV5UsersUsernameSubscriptions GET /v5/users/{username}/subscriptions 列出用户 watch 了的仓库
ActivityApi patchV5NotificationsMessagesId PATCH /v5/notifications/messages/{id} 标记一条私信为已读
ActivityApi patchV5NotificationsThreadsId PATCH /v5/notifications/threads/{id} 标记一条通知为已读
ActivityApi postV5NotificationsMessages POST /v5/notifications/messages 发送私信给指定用户
ActivityApi putV5NotificationsMessages PUT /v5/notifications/messages 标记所有私信为已读
ActivityApi putV5NotificationsThreads PUT /v5/notifications/threads 标记所有通知为已读
ActivityApi putV5ReposOwnerRepoNotifications PUT /v5/repos/{owner}/{repo}/notifications 标记一个仓库里的通知为已读
ActivityApi putV5UserStarredOwnerRepo PUT /v5/user/starred/{owner}/{repo} star 一个仓库
ActivityApi putV5UserSubscriptionsOwnerRepo PUT /v5/user/subscriptions/{owner}/{repo} watch 一个仓库
EnterprisesApi deleteV5EnterprisesEnterpriseMembersUsername DELETE /v5/enterprises/{enterprise}/members/{username} 移除企业成员
EnterprisesApi deleteV5EnterprisesEnterpriseWeekReportsReportIdCommentsId DELETE /v5/enterprises/{enterprise}/week_reports/{report_id}/comments/{id} 删除周报某个评论
EnterprisesApi getV5EnterprisesEnterprise GET /v5/enterprises/{enterprise} 获取一个企业
EnterprisesApi getV5EnterprisesEnterpriseMembers GET /v5/enterprises/{enterprise}/members 列出企业的所有成员
EnterprisesApi getV5EnterprisesEnterpriseMembersUsername GET /v5/enterprises/{enterprise}/members/{username} 获取企业的一个成员
EnterprisesApi getV5EnterprisesEnterpriseUsersUsernameWeekReports GET /v5/enterprises/{enterprise}/users/{username}/week_reports 个人周报列表
EnterprisesApi getV5EnterprisesEnterpriseWeekReports GET /v5/enterprises/{enterprise}/week_reports 企业成员周报列表
EnterprisesApi getV5EnterprisesEnterpriseWeekReportsId GET /v5/enterprises/{enterprise}/week_reports/{id} 周报详情
EnterprisesApi getV5EnterprisesEnterpriseWeekReportsIdComments GET /v5/enterprises/{enterprise}/week_reports/{id}/comments 某个周报评论列表
EnterprisesApi getV5UserEnterprises GET /v5/user/enterprises 列出授权用户所属的企业
EnterprisesApi patchV5EnterprisesEnterpriseWeekReportId PATCH /v5/enterprises/{enterprise}/week_report/{id} 编辑周报
EnterprisesApi postV5EnterprisesEnterpriseMembers POST /v5/enterprises/{enterprise}/members 添加或邀请企业成员
EnterprisesApi postV5EnterprisesEnterpriseWeekReport POST /v5/enterprises/{enterprise}/week_report 新建周报
EnterprisesApi postV5EnterprisesEnterpriseWeekReportsIdComment POST /v5/enterprises/{enterprise}/week_reports/{id}/comment 评论周报
EnterprisesApi putV5EnterprisesEnterpriseMembersUsername PUT /v5/enterprises/{enterprise}/members/{username} 修改企业成员权限或备注
GistsApi deleteV5GistsGistIdCommentsId DELETE /v5/gists/{gist_id}/comments/{id} 删除代码片段的评论
GistsApi deleteV5GistsId DELETE /v5/gists/{id} 删除指定代码片段
GistsApi deleteV5GistsIdStar DELETE /v5/gists/{id}/star 取消Star代码片段
GistsApi getV5Gists GET /v5/gists 获取代码片段
GistsApi getV5GistsGistIdComments GET /v5/gists/{gist_id}/comments 获取代码片段的评论
GistsApi getV5GistsGistIdCommentsId GET /v5/gists/{gist_id}/comments/{id} 获取单条代码片段的评论
GistsApi getV5GistsId GET /v5/gists/{id} 获取单条代码片段
GistsApi getV5GistsIdCommits GET /v5/gists/{id}/commits 获取代码片段的commit
GistsApi getV5GistsIdForks GET /v5/gists/{id}/forks 获取 Fork 了指定代码片段的列表
GistsApi getV5GistsIdStar GET /v5/gists/{id}/star 判断代码片段是否已Star
GistsApi getV5GistsPublic GET /v5/gists/public 获取公开的代码片段
GistsApi getV5GistsStarred GET /v5/gists/starred 获取用户Star的代码片段
GistsApi getV5UsersUsernameGists GET /v5/users/{username}/gists 获取指定用户的公开代码片段
GistsApi patchV5GistsGistIdCommentsId PATCH /v5/gists/{gist_id}/comments/{id} 修改代码片段的评论
GistsApi patchV5GistsId PATCH /v5/gists/{id} 修改代码片段
GistsApi postV5Gists POST /v5/gists 创建代码片段
GistsApi postV5GistsGistIdComments POST /v5/gists/{gist_id}/comments 增加代码片段的评论
GistsApi postV5GistsIdForks POST /v5/gists/{id}/forks Fork代码片段
GistsApi putV5GistsIdStar PUT /v5/gists/{id}/star Star代码片段
GitDataApi getV5ReposOwnerRepoGitBlobsSha GET /v5/repos/{owner}/{repo}/git/blobs/{sha} 获取文件Blob
GitDataApi getV5ReposOwnerRepoGitTreesSha GET /v5/repos/{owner}/{repo}/git/trees/{sha} 获取目录Tree
IssuesApi deleteV5ReposOwnerRepoIssuesCommentsId DELETE /v5/repos/{owner}/{repo}/issues/comments/{id} 删除Issue某条评论
IssuesApi getV5EnterprisesEnterpriseIssues GET /v5/enterprises/{enterprise}/issues 获取某个企业的所有Issues
IssuesApi getV5EnterprisesEnterpriseIssuesNumber GET /v5/enterprises/{enterprise}/issues/{number} 获取企业的某个Issue
IssuesApi getV5EnterprisesEnterpriseIssuesNumberComments GET /v5/enterprises/{enterprise}/issues/{number}/comments 获取企业某个Issue所有评论
IssuesApi getV5EnterprisesEnterpriseIssuesNumberLabels GET /v5/enterprises/{enterprise}/issues/{number}/labels 获取企业某个Issue所有标签
IssuesApi getV5Issues GET /v5/issues 获取当前授权用户的所有Issues
IssuesApi getV5OrgsOrgIssues GET /v5/orgs/{org}/issues 获取当前用户某个组织的Issues
IssuesApi getV5ReposOwnerIssuesNumberOperateLogs GET /v5/repos/{owner}/issues/{number}/operate_logs 获取某个Issue下的操作日志
IssuesApi getV5ReposOwnerRepoIssues GET /v5/repos/{owner}/{repo}/issues 仓库的所有Issues
IssuesApi getV5ReposOwnerRepoIssuesComments GET /v5/repos/{owner}/{repo}/issues/comments 获取仓库所有Issue的评论
IssuesApi getV5ReposOwnerRepoIssuesCommentsId GET /v5/repos/{owner}/{repo}/issues/comments/{id} 获取仓库Issue某条评论
IssuesApi getV5ReposOwnerRepoIssuesNumber GET /v5/repos/{owner}/{repo}/issues/{number} 仓库的某个Issue
IssuesApi getV5ReposOwnerRepoIssuesNumberComments GET /v5/repos/{owner}/{repo}/issues/{number}/comments 获取仓库某个Issue所有的评论
IssuesApi getV5UserIssues GET /v5/user/issues 获取授权用户的所有Issues
IssuesApi patchV5ReposOwnerIssuesNumber PATCH /v5/repos/{owner}/issues/{number} 更新Issue
IssuesApi patchV5ReposOwnerRepoIssuesCommentsId PATCH /v5/repos/{owner}/{repo}/issues/comments/{id} 更新Issue某条评论
IssuesApi postV5ReposOwnerIssues POST /v5/repos/{owner}/issues 创建Issue
IssuesApi postV5ReposOwnerRepoIssuesNumberComments POST /v5/repos/{owner}/{repo}/issues/{number}/comments 创建某个Issue评论
LabelsApi deleteV5ReposOwnerRepoIssuesNumberLabels DELETE /v5/repos/{owner}/{repo}/issues/{number}/labels 删除Issue所有标签
LabelsApi deleteV5ReposOwnerRepoIssuesNumberLabelsName DELETE /v5/repos/{owner}/{repo}/issues/{number}/labels/{name} 删除Issue标签
LabelsApi deleteV5ReposOwnerRepoLabelsName DELETE /v5/repos/{owner}/{repo}/labels/{name} 删除一个仓库任务标签
LabelsApi getV5EnterprisesEnterpriseLabels GET /v5/enterprises/{enterprise}/labels 获取企业所有标签
LabelsApi getV5EnterprisesEnterpriseLabelsName GET /v5/enterprises/{enterprise}/labels/{name} 获取企业某个标签
LabelsApi getV5ReposOwnerRepoIssuesNumberLabels GET /v5/repos/{owner}/{repo}/issues/{number}/labels 获取仓库任务的所有标签
LabelsApi getV5ReposOwnerRepoLabels GET /v5/repos/{owner}/{repo}/labels 获取仓库所有任务标签
LabelsApi getV5ReposOwnerRepoLabelsName GET /v5/repos/{owner}/{repo}/labels/{name} 根据标签名称获取单个标签
LabelsApi patchV5ReposOwnerRepoLabelsOriginalName PATCH /v5/repos/{owner}/{repo}/labels/{original_name} 更新一个仓库任务标签
LabelsApi postV5ReposOwnerRepoIssuesNumberLabels POST /v5/repos/{owner}/{repo}/issues/{number}/labels 创建Issue标签
LabelsApi postV5ReposOwnerRepoLabels POST /v5/repos/{owner}/{repo}/labels 创建仓库任务标签
LabelsApi putV5ReposOwnerRepoIssuesNumberLabels PUT /v5/repos/{owner}/{repo}/issues/{number}/labels 替换Issue所有标签
MilestonesApi deleteV5ReposOwnerRepoMilestonesNumber DELETE /v5/repos/{owner}/{repo}/milestones/{number} 删除仓库单个里程碑
MilestonesApi getV5ReposOwnerRepoMilestones GET /v5/repos/{owner}/{repo}/milestones 获取仓库所有里程碑
MilestonesApi getV5ReposOwnerRepoMilestonesNumber GET /v5/repos/{owner}/{repo}/milestones/{number} 获取仓库单个里程碑
MilestonesApi patchV5ReposOwnerRepoMilestonesNumber PATCH /v5/repos/{owner}/{repo}/milestones/{number} 更新仓库里程碑
MilestonesApi postV5ReposOwnerRepoMilestones POST /v5/repos/{owner}/{repo}/milestones 创建仓库里程碑
MiscellaneousApi getV5Emojis GET /v5/emojis 列出可使用的 Emoji
MiscellaneousApi getV5GitignoreTemplates GET /v5/gitignore/templates 列出可使用的 .gitignore 模板
MiscellaneousApi getV5GitignoreTemplatesName GET /v5/gitignore/templates/{name} 获取一个 .gitignore 模板
MiscellaneousApi getV5GitignoreTemplatesNameRaw GET /v5/gitignore/templates/{name}/raw 获取一个 .gitignore 模板原始文件
MiscellaneousApi getV5Licenses GET /v5/licenses 列出可使用的开源许可协议
MiscellaneousApi getV5LicensesLicense GET /v5/licenses/{license} 获取一个开源许可协议
MiscellaneousApi getV5LicensesLicenseRaw GET /v5/licenses/{license}/raw 获取一个开源许可协议原始文件
MiscellaneousApi getV5ReposOwnerRepoLicense GET /v5/repos/{owner}/{repo}/license 获取一个仓库使用的开源许可协议
MiscellaneousApi postV5Markdown POST /v5/markdown 渲染 Markdown 文本
OrganizationsApi deleteV5OrgsOrgMembershipsUsername DELETE /v5/orgs/{org}/memberships/{username} 移除授权用户所管理组织中的成员
OrganizationsApi deleteV5UserMembershipsOrgsOrg DELETE /v5/user/memberships/orgs/{org} 退出一个组织
OrganizationsApi getV5OrgsOrg GET /v5/orgs/{org} 获取一个组织
OrganizationsApi getV5OrgsOrgMembers GET /v5/orgs/{org}/members 列出一个组织的所有成员
OrganizationsApi getV5OrgsOrgMembershipsUsername GET /v5/orgs/{org}/memberships/{username} 获取授权用户所属组织的一个成员
OrganizationsApi getV5UserMembershipsOrgs GET /v5/user/memberships/orgs 列出授权用户在所属组织的成员资料
OrganizationsApi getV5UserMembershipsOrgsOrg GET /v5/user/memberships/orgs/{org} 获取授权用户在一个组织的成员资料
OrganizationsApi getV5UserOrgs GET /v5/user/orgs 列出授权用户所属的组织
OrganizationsApi getV5UsersUsernameOrgs GET /v5/users/{username}/orgs 列出用户所属的组织
OrganizationsApi patchV5OrgsOrg PATCH /v5/orgs/{org} 更新授权用户所管理的组织资料
OrganizationsApi patchV5UserMembershipsOrgsOrg PATCH /v5/user/memberships/orgs/{org} 更新授权用户在一个组织的成员资料
OrganizationsApi postV5UsersOrganization POST /v5/users/organization 创建组织
OrganizationsApi putV5OrgsOrgMembershipsUsername PUT /v5/orgs/{org}/memberships/{username} 增加或更新授权用户所管理组织的成员
PullRequestsApi deleteV5ReposOwnerRepoPullsCommentsId DELETE /v5/repos/{owner}/{repo}/pulls/comments/{id} 删除评论
PullRequestsApi deleteV5ReposOwnerRepoPullsNumberAssignees DELETE /v5/repos/{owner}/{repo}/pulls/{number}/assignees 取消用户审查 Pull Request
PullRequestsApi deleteV5ReposOwnerRepoPullsNumberTesters DELETE /v5/repos/{owner}/{repo}/pulls/{number}/testers 取消用户测试 Pull Request
PullRequestsApi getV5ReposOwnerRepoPulls GET /v5/repos/{owner}/{repo}/pulls 获取Pull Request列表
PullRequestsApi getV5ReposOwnerRepoPullsComments GET /v5/repos/{owner}/{repo}/pulls/comments 获取该仓库下的所有Pull Request评论
PullRequestsApi getV5ReposOwnerRepoPullsCommentsId GET /v5/repos/{owner}/{repo}/pulls/comments/{id} 获取Pull Request的某个评论
PullRequestsApi getV5ReposOwnerRepoPullsNumber GET /v5/repos/{owner}/{repo}/pulls/{number} 获取单个Pull Request
PullRequestsApi getV5ReposOwnerRepoPullsNumberComments GET /v5/repos/{owner}/{repo}/pulls/{number}/comments 获取某个Pull Request的所有评论
PullRequestsApi getV5ReposOwnerRepoPullsNumberCommits GET /v5/repos/{owner}/{repo}/pulls/{number}/commits 获取某Pull Request的所有Commit信息。最多显示250条Commit
PullRequestsApi getV5ReposOwnerRepoPullsNumberFiles GET /v5/repos/{owner}/{repo}/pulls/{number}/files Pull Request Commit文件列表。最多显示300条diff
PullRequestsApi getV5ReposOwnerRepoPullsNumberMerge GET /v5/repos/{owner}/{repo}/pulls/{number}/merge 判断Pull Request是否已经合并
PullRequestsApi getV5ReposOwnerRepoPullsNumberOperateLogs GET /v5/repos/{owner}/{repo}/pulls/{number}/operate_logs 获取某个Pull Request的操作日志
PullRequestsApi patchV5ReposOwnerRepoPullsCommentsId PATCH /v5/repos/{owner}/{repo}/pulls/comments/{id} 编辑评论
PullRequestsApi patchV5ReposOwnerRepoPullsNumber PATCH /v5/repos/{owner}/{repo}/pulls/{number} 更新Pull Request信息
PullRequestsApi postV5ReposOwnerRepoPulls POST /v5/repos/{owner}/{repo}/pulls 创建Pull Request
PullRequestsApi postV5ReposOwnerRepoPullsNumberAssignees POST /v5/repos/{owner}/{repo}/pulls/{number}/assignees 指派用户审查 Pull Request
PullRequestsApi postV5ReposOwnerRepoPullsNumberComments POST /v5/repos/{owner}/{repo}/pulls/{number}/comments 提交Pull Request评论
PullRequestsApi postV5ReposOwnerRepoPullsNumberTesters POST /v5/repos/{owner}/{repo}/pulls/{number}/testers 指派用户测试 Pull Request
PullRequestsApi putV5ReposOwnerRepoPullsNumberMerge PUT /v5/repos/{owner}/{repo}/pulls/{number}/merge 合并Pull Request
RepositoriesApi deleteV5ReposOwnerRepo DELETE /v5/repos/{owner}/{repo} 删除一个仓库
RepositoriesApi deleteV5ReposOwnerRepoBranchesBranchProtection DELETE /v5/repos/{owner}/{repo}/branches/{branch}/protection 取消保护分支的设置
RepositoriesApi deleteV5ReposOwnerRepoCollaboratorsUsername DELETE /v5/repos/{owner}/{repo}/collaborators/{username} 移除仓库成员
RepositoriesApi deleteV5ReposOwnerRepoCommentsId DELETE /v5/repos/{owner}/{repo}/comments/{id} 删除Commit评论
RepositoriesApi deleteV5ReposOwnerRepoContentsPath DELETE /v5/repos/{owner}/{repo}/contents/{path} 删除文件
RepositoriesApi deleteV5ReposOwnerRepoKeysEnableId DELETE /v5/repos/{owner}/{repo}/keys/enable/{id} 停用仓库公钥
RepositoriesApi deleteV5ReposOwnerRepoKeysId DELETE /v5/repos/{owner}/{repo}/keys/{id} 删除一个仓库公钥
RepositoriesApi deleteV5ReposOwnerRepoReleasesId DELETE /v5/repos/{owner}/{repo}/releases/{id} 删除仓库Release
RepositoriesApi getV5EnterprisesEnterpriseRepos GET /v5/enterprises/{enterprise}/repos 获取企业的所有仓库
RepositoriesApi getV5OrgsOrgRepos GET /v5/orgs/{org}/repos 获取一个组织的仓库
RepositoriesApi getV5ReposOwnerRepo GET /v5/repos/{owner}/{repo} 获取用户的某个仓库
RepositoriesApi getV5ReposOwnerRepoBranches GET /v5/repos/{owner}/{repo}/branches 获取所有分支
RepositoriesApi getV5ReposOwnerRepoBranchesBranch GET /v5/repos/{owner}/{repo}/branches/{branch} 获取单个分支
RepositoriesApi getV5ReposOwnerRepoCollaborators GET /v5/repos/{owner}/{repo}/collaborators 获取仓库的所有成员
RepositoriesApi getV5ReposOwnerRepoCollaboratorsUsername GET /v5/repos/{owner}/{repo}/collaborators/{username} 判断用户是否为仓库成员
RepositoriesApi getV5ReposOwnerRepoCollaboratorsUsernamePermission GET /v5/repos/{owner}/{repo}/collaborators/{username}/permission 查看仓库成员的权限
RepositoriesApi getV5ReposOwnerRepoComments GET /v5/repos/{owner}/{repo}/comments 获取仓库的Commit评论
RepositoriesApi getV5ReposOwnerRepoCommentsId GET /v5/repos/{owner}/{repo}/comments/{id} 获取仓库的某条Commit评论
RepositoriesApi getV5ReposOwnerRepoCommits GET /v5/repos/{owner}/{repo}/commits 仓库的所有提交
RepositoriesApi getV5ReposOwnerRepoCommitsRefComments GET /v5/repos/{owner}/{repo}/commits/{ref}/comments 获取单个Commit的评论
RepositoriesApi getV5ReposOwnerRepoCommitsSha GET /v5/repos/{owner}/{repo}/commits/{sha} 仓库的某个提交
RepositoriesApi getV5ReposOwnerRepoCompareBaseHead GET /v5/repos/{owner}/{repo}/compare/{base}...{head} 两个Commits之间对比的版本差异
RepositoriesApi getV5ReposOwnerRepoContentsPath GET /v5/repos/{owner}/{repo}/contents/{path} 获取仓库具体路径下的内容
RepositoriesApi getV5ReposOwnerRepoContributors GET /v5/repos/{owner}/{repo}/contributors 获取仓库贡献者
RepositoriesApi getV5ReposOwnerRepoForks GET /v5/repos/{owner}/{repo}/forks 查看仓库的Forks
RepositoriesApi getV5ReposOwnerRepoKeys GET /v5/repos/{owner}/{repo}/keys 获取仓库已部署的公钥
RepositoriesApi getV5ReposOwnerRepoKeysAvailable GET /v5/repos/{owner}/{repo}/keys/available 获取仓库可部署的公钥
RepositoriesApi getV5ReposOwnerRepoKeysId GET /v5/repos/{owner}/{repo}/keys/{id} 获取仓库的单个公钥
RepositoriesApi getV5ReposOwnerRepoPages GET /v5/repos/{owner}/{repo}/pages 获取Pages信息
RepositoriesApi getV5ReposOwnerRepoReadme GET /v5/repos/{owner}/{repo}/readme 获取仓库README
RepositoriesApi getV5ReposOwnerRepoReleases GET /v5/repos/{owner}/{repo}/releases 获取仓库的所有Releases
RepositoriesApi getV5ReposOwnerRepoReleasesId GET /v5/repos/{owner}/{repo}/releases/{id} 获取仓库的单个Releases
RepositoriesApi getV5ReposOwnerRepoReleasesLatest GET /v5/repos/{owner}/{repo}/releases/latest 获取仓库的最后更新的Release
RepositoriesApi getV5ReposOwnerRepoReleasesTagsTag GET /v5/repos/{owner}/{repo}/releases/tags/{tag} 根据Tag名称获取仓库的Release
RepositoriesApi getV5ReposOwnerRepoTags GET /v5/repos/{owner}/{repo}/tags 列出仓库所有的tags
RepositoriesApi getV5UserRepos GET /v5/user/repos 列出授权用户的所有仓库
RepositoriesApi getV5UsersUsernameRepos GET /v5/users/{username}/repos 获取某个用户的公开仓库
RepositoriesApi patchV5ReposOwnerRepo PATCH /v5/repos/{owner}/{repo} 更新仓库设置
RepositoriesApi patchV5ReposOwnerRepoCommentsId PATCH /v5/repos/{owner}/{repo}/comments/{id} 更新Commit评论
RepositoriesApi patchV5ReposOwnerRepoReleasesId PATCH /v5/repos/{owner}/{repo}/releases/{id} 更新仓库Release
RepositoriesApi postV5EnterprisesEnterpriseRepos POST /v5/enterprises/{enterprise}/repos 创建企业仓库
RepositoriesApi postV5OrgsOrgRepos POST /v5/orgs/{org}/repos 创建组织仓库
RepositoriesApi postV5ReposOwnerRepoBranches POST /v5/repos/{owner}/{repo}/branches 创建分支
RepositoriesApi postV5ReposOwnerRepoCommitsShaComments POST /v5/repos/{owner}/{repo}/commits/{sha}/comments 创建Commit评论
RepositoriesApi postV5ReposOwnerRepoContentsPath POST /v5/repos/{owner}/{repo}/contents/{path} 新建文件
RepositoriesApi postV5ReposOwnerRepoForks POST /v5/repos/{owner}/{repo}/forks Fork一个仓库
RepositoriesApi postV5ReposOwnerRepoKeys POST /v5/repos/{owner}/{repo}/keys 为仓库添加公钥
RepositoriesApi postV5ReposOwnerRepoPagesBuilds POST /v5/repos/{owner}/{repo}/pages/builds 请求建立Pages
RepositoriesApi postV5ReposOwnerRepoReleases POST /v5/repos/{owner}/{repo}/releases 创建仓库Release
RepositoriesApi postV5UserRepos POST /v5/user/repos 创建一个仓库
RepositoriesApi putV5ReposOwnerRepoBranchesBranchProtection PUT /v5/repos/{owner}/{repo}/branches/{branch}/protection 设置分支保护
RepositoriesApi putV5ReposOwnerRepoClear PUT /v5/repos/{owner}/{repo}/clear 清空一个仓库
RepositoriesApi putV5ReposOwnerRepoCollaboratorsUsername PUT /v5/repos/{owner}/{repo}/collaborators/{username} 添加仓库成员
RepositoriesApi putV5ReposOwnerRepoContentsPath PUT /v5/repos/{owner}/{repo}/contents/{path} 更新文件
RepositoriesApi putV5ReposOwnerRepoKeysEnableId PUT /v5/repos/{owner}/{repo}/keys/enable/{id} 启用仓库公钥
SearchApi getV5SearchGists GET /v5/search/gists 搜索代码片段
SearchApi getV5SearchIssues GET /v5/search/issues 搜索 Issues
SearchApi getV5SearchRepositories GET /v5/search/repositories 搜索仓库
SearchApi getV5SearchUsers GET /v5/search/users 搜索用户
UsersApi deleteV5UserFollowingUsername DELETE /v5/user/following/{username} 取消关注一个用户
UsersApi deleteV5UserKeysId DELETE /v5/user/keys/{id} 删除一个公钥
UsersApi getV5User GET /v5/user 获取授权用户的资料
UsersApi getV5UserFollowers GET /v5/user/followers 列出授权用户的关注者
UsersApi getV5UserFollowing GET /v5/user/following 列出授权用户正关注的用户
UsersApi getV5UserFollowingUsername GET /v5/user/following/{username} 检查授权用户是否关注了一个用户
UsersApi getV5UserKeys GET /v5/user/keys 列出授权用户的所有公钥
UsersApi getV5UserKeysId GET /v5/user/keys/{id} 获取一个公钥
UsersApi getV5UserNamespace GET /v5/user/namespace 获取授权用户的一个 Namespace
UsersApi getV5UserNamespaces GET /v5/user/namespaces 列出授权用户所有的 Namespace
UsersApi getV5UsersUsername GET /v5/users/{username} 获取一个用户
UsersApi getV5UsersUsernameFollowers GET /v5/users/{username}/followers 列出指定用户的关注者
UsersApi getV5UsersUsernameFollowing GET /v5/users/{username}/following 列出指定用户正在关注的用户
UsersApi getV5UsersUsernameFollowingTargetUser GET /v5/users/{username}/following/{target_user} 检查指定用户是否关注目标用户
UsersApi getV5UsersUsernameKeys GET /v5/users/{username}/keys 列出指定用户的所有公钥
UsersApi patchV5User PATCH /v5/user 更新授权用户的资料
UsersApi postV5UserKeys POST /v5/user/keys 添加一个公钥
UsersApi putV5UserFollowingUsername PUT /v5/user/following/{username} 关注一个用户
WebhooksApi deleteV5ReposOwnerRepoHooksId DELETE /v5/repos/{owner}/{repo}/hooks/{id} 删除一个仓库WebHook
WebhooksApi getV5ReposOwnerRepoHooks GET /v5/repos/{owner}/{repo}/hooks 列出仓库的WebHooks
WebhooksApi getV5ReposOwnerRepoHooksId GET /v5/repos/{owner}/{repo}/hooks/{id} 获取仓库单个WebHook
WebhooksApi patchV5ReposOwnerRepoHooksId PATCH /v5/repos/{owner}/{repo}/hooks/{id} 更新一个仓库WebHook
WebhooksApi postV5ReposOwnerRepoHooks POST /v5/repos/{owner}/{repo}/hooks 创建一个仓库WebHook
WebhooksApi postV5ReposOwnerRepoHooksIdTests POST /v5/repos/{owner}/{repo}/hooks/{id}/tests 测试WebHook是否发送成功

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization. Authentication schemes defined for the API:

Recommendation

It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues.

Author

木兰宽松许可证, 第1版 木兰宽松许可证, 第1版 2019年8月 http://license.coscl.org.cn/MulanPSL 您对“软件”的复制、使用、修改及分发受木兰宽松许可证,第1版(“本许可证”)的如下条款的约束: 0. 定义 “软件”是指由“贡献”构成的许可在“本许可证”下的程序和相关文档的集合。 “贡献者”是指将受版权法保护的作品许可在“本许可证”下的自然人或“法人实体”。 “法人实体”是指提交贡献的机构及其“关联实体”。 “关联实体”是指,对“本许可证”下的一方而言,控制、受控制或与其共同受控制的机构,此处的控制是指有受控方或共同受控方至少50%直接或间接的投票权、资金或其他有价证券。 “贡献”是指由任一“贡献者”许可在“本许可证”下的受版权法保护的作品。 1. 授予版权许可 每个“贡献者”根据“本许可证”授予您永久性的、全球性的、免费的、非独占的、不可撤销的版权许可,您可以复制、使用、修改、分发其“贡献”,不论修改与否。 2. 授予专利许可 每个“贡献者”根据“本许可证”授予您永久性的、全球性的、免费的、非独占的、不可撤销的(根据本条规定撤销除外)专利许可,供您制造、委托制造、使用、许诺销售、销售、进口其“贡献”或以其他方式转移其“贡献”。前述专利许可仅限于“贡献者”现在或将来拥有或控制的其“贡献”本身或其“贡献”与许可“贡献”时的“软件”结合而将必然会侵犯的专利权利要求,不包括仅因您或他人修改“贡献”或其他结合而将必然会侵犯到的专利权利要求。如您或您的“关联实体”直接或间接地(包括通过代理、专利被许可人或受让人),就“软件”或其中的“贡献”对任何人发起专利侵权诉讼(包括反诉或交叉诉讼)或其他专利维权行动,指控其侵犯专利权,则“本许可证”授予您对“软件”的专利许可自您提起诉讼或发起维权行动之日终止。 3. 无商标许可 “本许可证”不提供对“贡献者”的商品名称、商标、服务标志或产品名称的商标许可,但您为满足第4条规定的声明义务而必须使用除外。 4. 分发限制 您可以在任何媒介中将“软件”以源程序形式或可执行形式重新分发,不论修改与否,但您必须向接收者提供“本许可证”的副本,并保留“软件”中的版权、商标、专利及免责声明。 5. 免责声明与责任限制 “软件”及其中的“贡献”在提供时不带任何明示或默示的担保。在任何情况下,“贡献者”或版权所有者不对任何人因使用“软件”或其中的“贡献”而引发的任何直接或间接损失承担责任,不论因何种原因导致或者基于何种法律理论,即使其曾被建议有此种损失的可能性。 条款结束。 如何将木兰宽松许可证,第1版,应用到您的软件 如果您希望将木兰宽松许可证,第1版,应用到您的新软件,为了方便接收者查阅,建议您完成如下三步: 1, 请您补充如下声明中的空白,包括软件名、软件的首次发表年份以及您作为版权人的名字; 2, 请您在软件包的一级目录下创建以“LICENSE”为名的文件,将整个许可证文本放入该文件中; 3, 请将如下声明文本放入每个源文件的头部注释中。 Copyright (c) [2019] [name of copyright holder] [Software Name] is licensed under the Mulan PSL v1. You can use this software according to the terms and conditions of the Mulan PSL v1. You may obtain a copy of Mulan PSL v1 at: http://license.coscl.org.cn/MulanPSL THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. See the Mulan PSL v1 for more details. Mulan Permissive Software License,Version 1 Mulan Permissive Software License,Version 1 (Mulan PSL v1) August 2019 http://license.coscl.org.cn/MulanPSL Your reproduction, use, modification and distribution of the Software shall be subject to Mulan PSL v1 (this License) with following terms and conditions: 0. Definition Software means the program and related documents which are comprised of those Contribution and licensed under this License. Contributor means the Individual or Legal Entity who licenses its copyrightable work under this License. Legal Entity means the entity making a Contribution and all its Affiliates. Affiliates means entities that control, or are controlled by, or are under common control with a party to this License, ‘control’ means direct or indirect ownership of at least fifty percent (50%) of the voting power, capital or other securities of controlled or commonly controlled entity. Contribution means the copyrightable work licensed by a particular Contributor under this License. 1. Grant of Copyright License Subject to the terms and conditions of this License, each Contributor hereby grants to you a perpetual, worldwide, royalty-free, non-exclusive, irrevocable copyright license to reproduce, use, modify, or distribute its Contribution, with modification or not. 2. Grant of Patent License Subject to the terms and conditions of this License, each Contributor hereby grants to you a perpetual, worldwide, royalty-free, non-exclusive, irrevocable (except for revocation under this Section) patent license to make, have made, use, offer for sale, sell, import or otherwise transfer its Contribution where such patent license is only limited to the patent claims owned or controlled by such Contributor now or in future which will be necessarily infringed by its Contribution alone, or by combination of the Contribution with the Software to which the Contribution was contributed, excluding of any patent claims solely be infringed by your or others’ modification or other combinations. If you or your Affiliates directly or indirectly (including through an agent, patent licensee or assignee), institute patent litigation (including a cross claim or counterclaim in a litigation) or other patent enforcement activities against any individual or entity by alleging that the Software or any Contribution in it infringes patents, then any patent license granted to you under this License for the Software shall terminate as of the date such litigation or activity is filed or taken. 3. No Trademark License No trademark license is granted to use the trade names, trademarks, service marks, or product names of Contributor, except as required to fulfill notice requirements in section 4. 4. Distribution Restriction You may distribute the Software in any medium with or without modification, whether in source or executable forms, provided that you provide recipients with a copy of this License and retain copyright, patent, trademark and disclaimer statements in the Software. 5. Disclaimer of Warranty and Limitation of Liability The Software and Contribution in it are provided without warranties of any kind, either express or implied. In no event shall any Contributor or copyright holder be liable to you for any damages, including, but not limited to any direct, or indirect, special or consequential damages arising from your use or inability to use the Software or the Contribution in it, no matter how it’s caused or based on which legal theory, even if advised of the possibility of such damages. End of the Terms and Conditions How to apply the Mulan Permissive Software License,Version 1 (Mulan PSL v1) to your software To apply the Mulan PSL v1 to your work, for easy identification by recipients, you are suggested to complete following three steps: i. Fill in the blanks in following statement, including insert your software name, the year of the first publication of your software, and your name identified as the copyright owner; ii. Create a file named “LICENSE” which contains the whole context of this License in the first directory of your software package; iii. Attach the statement to the appropriate annotated syntax at the beginning of each source file. Copyright (c) [2019] [name of copyright holder] [Software Name] is licensed under the Mulan PSL v1. You can use this software according to the terms and conditions of the Mulan PSL v1. You may obtain a copy of Mulan PSL v1 at: http://license.coscl.org.cn/MulanPSL THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. See the Mulan PSL v1 for more details.

简介

java-gitee is the Java SDK of Gitee OpenAPI. 展开 收起
Java
MulanPSL-1.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/xiaoyangge_admin/java-gitee.git
git@gitee.com:xiaoyangge_admin/java-gitee.git
xiaoyangge_admin
java-gitee
java-gitee
master

搜索帮助