diff --git a/.classpath b/.classpath new file mode 100644 index 0000000000000000000000000000000000000000..9f084aa1b9e04667fd2d20e53f3896679357a40f --- /dev/null +++ b/.classpath @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/.project b/.project new file mode 100644 index 0000000000000000000000000000000000000000..193b87b3d15b1f3a79dfa113aaca9fb1f04dce51 --- /dev/null +++ b/.project @@ -0,0 +1,23 @@ + + + swagger-java-client + Project java-gitee created by Buildship. + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.buildship.core.gradleprojectbuilder + + + + + + org.eclipse.buildship.core.gradleprojectnature + org.eclipse.jdt.core.javanature + + diff --git a/.settings/org.eclipse.buildship.core.prefs b/.settings/org.eclipse.buildship.core.prefs new file mode 100644 index 0000000000000000000000000000000000000000..e8895216fd3c0c3af4c4522334775f41b7deb42e --- /dev/null +++ b/.settings/org.eclipse.buildship.core.prefs @@ -0,0 +1,2 @@ +connection.project.dir= +eclipse.preferences.version=1 diff --git a/README.md b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..148b1309a2963f00d6aa18f2230fc7f1c561197f --- /dev/null +++ b/README.md @@ -0,0 +1,401 @@ +# swagger-java-client + +## Requirements + +Building the API client library requires [Maven](https://maven.apache.org/) to be installed. + +## Installation + +To install the API client library to your local Maven repository, simply execute: + +```shell +mvn install +``` + +To deploy it to a remote Maven repository instead, configure the settings of the repository and execute: + +```shell +mvn deploy +``` + +Refer to the [official documentation](https://maven.apache.org/plugins/maven-deploy-plugin/usage.html) for more information. + +### Maven users + +Add this dependency to your project's POM: + +```xml + + io.swagger + swagger-java-client + 1.0.0 + compile + +``` + +### Gradle users + +Add this dependency to your project's build file: + +```groovy +compile "io.swagger:swagger-java-client:1.0.0" +``` + +### Others + +At first generate the JAR by executing: + + mvn package + +Then manually install the following JARs: + +* target/swagger-java-client-1.0.0.jar +* target/lib/*.jar + +## Getting Started + +Please follow the [installation](#installation) instruction and execute the following Java code: + +```java + +import io.swagger.client.*; +import io.swagger.client.auth.*; +import io.swagger.client.model.*; +import io.swagger.client.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**](docs/ActivityApi.md#deleteV5UserStarredOwnerRepo) | **DELETE** /v5/user/starred/{owner}/{repo} | 取消 star 一个仓库 +*ActivityApi* | [**deleteV5UserSubscriptionsOwnerRepo**](docs/ActivityApi.md#deleteV5UserSubscriptionsOwnerRepo) | **DELETE** /v5/user/subscriptions/{owner}/{repo} | 取消 watch 一个仓库 +*ActivityApi* | [**getV5Events**](docs/ActivityApi.md#getV5Events) | **GET** /v5/events | 获取站内所有公开动态 +*ActivityApi* | [**getV5NetworksOwnerRepoEvents**](docs/ActivityApi.md#getV5NetworksOwnerRepoEvents) | **GET** /v5/networks/{owner}/{repo}/events | 列出仓库的所有公开动态 +*ActivityApi* | [**getV5NotificationsCount**](docs/ActivityApi.md#getV5NotificationsCount) | **GET** /v5/notifications/count | 获取授权用户的通知数 +*ActivityApi* | [**getV5NotificationsMessages**](docs/ActivityApi.md#getV5NotificationsMessages) | **GET** /v5/notifications/messages | 列出授权用户的所有私信 +*ActivityApi* | [**getV5NotificationsMessagesId**](docs/ActivityApi.md#getV5NotificationsMessagesId) | **GET** /v5/notifications/messages/{id} | 获取一条私信 +*ActivityApi* | [**getV5NotificationsThreads**](docs/ActivityApi.md#getV5NotificationsThreads) | **GET** /v5/notifications/threads | 列出授权用户的所有通知 +*ActivityApi* | [**getV5NotificationsThreadsId**](docs/ActivityApi.md#getV5NotificationsThreadsId) | **GET** /v5/notifications/threads/{id} | 获取一条通知 +*ActivityApi* | [**getV5OrgsOrgEvents**](docs/ActivityApi.md#getV5OrgsOrgEvents) | **GET** /v5/orgs/{org}/events | 列出组织的公开动态 +*ActivityApi* | [**getV5ReposOwnerRepoEvents**](docs/ActivityApi.md#getV5ReposOwnerRepoEvents) | **GET** /v5/repos/{owner}/{repo}/events | 列出仓库的所有动态 +*ActivityApi* | [**getV5ReposOwnerRepoNotifications**](docs/ActivityApi.md#getV5ReposOwnerRepoNotifications) | **GET** /v5/repos/{owner}/{repo}/notifications | 列出一个仓库里的通知 +*ActivityApi* | [**getV5ReposOwnerRepoStargazers**](docs/ActivityApi.md#getV5ReposOwnerRepoStargazers) | **GET** /v5/repos/{owner}/{repo}/stargazers | 列出 star 了仓库的用户 +*ActivityApi* | [**getV5ReposOwnerRepoSubscribers**](docs/ActivityApi.md#getV5ReposOwnerRepoSubscribers) | **GET** /v5/repos/{owner}/{repo}/subscribers | 列出 watch 了仓库的用户 +*ActivityApi* | [**getV5UserStarred**](docs/ActivityApi.md#getV5UserStarred) | **GET** /v5/user/starred | 列出授权用户 star 了的仓库 +*ActivityApi* | [**getV5UserStarredOwnerRepo**](docs/ActivityApi.md#getV5UserStarredOwnerRepo) | **GET** /v5/user/starred/{owner}/{repo} | 检查授权用户是否 star 了一个仓库 +*ActivityApi* | [**getV5UserSubscriptions**](docs/ActivityApi.md#getV5UserSubscriptions) | **GET** /v5/user/subscriptions | 列出授权用户 watch 了的仓库 +*ActivityApi* | [**getV5UserSubscriptionsOwnerRepo**](docs/ActivityApi.md#getV5UserSubscriptionsOwnerRepo) | **GET** /v5/user/subscriptions/{owner}/{repo} | 检查授权用户是否 watch 了一个仓库 +*ActivityApi* | [**getV5UsersUsernameEvents**](docs/ActivityApi.md#getV5UsersUsernameEvents) | **GET** /v5/users/{username}/events | 列出用户的动态 +*ActivityApi* | [**getV5UsersUsernameEventsOrgsOrg**](docs/ActivityApi.md#getV5UsersUsernameEventsOrgsOrg) | **GET** /v5/users/{username}/events/orgs/{org} | 列出用户所属组织的动态 +*ActivityApi* | [**getV5UsersUsernameEventsPublic**](docs/ActivityApi.md#getV5UsersUsernameEventsPublic) | **GET** /v5/users/{username}/events/public | 列出用户的公开动态 +*ActivityApi* | [**getV5UsersUsernameReceivedEvents**](docs/ActivityApi.md#getV5UsersUsernameReceivedEvents) | **GET** /v5/users/{username}/received_events | 列出一个用户收到的动态 +*ActivityApi* | [**getV5UsersUsernameReceivedEventsPublic**](docs/ActivityApi.md#getV5UsersUsernameReceivedEventsPublic) | **GET** /v5/users/{username}/received_events/public | 列出一个用户收到的公开动态 +*ActivityApi* | [**getV5UsersUsernameStarred**](docs/ActivityApi.md#getV5UsersUsernameStarred) | **GET** /v5/users/{username}/starred | 列出用户 star 了的仓库 +*ActivityApi* | [**getV5UsersUsernameSubscriptions**](docs/ActivityApi.md#getV5UsersUsernameSubscriptions) | **GET** /v5/users/{username}/subscriptions | 列出用户 watch 了的仓库 +*ActivityApi* | [**patchV5NotificationsMessagesId**](docs/ActivityApi.md#patchV5NotificationsMessagesId) | **PATCH** /v5/notifications/messages/{id} | 标记一条私信为已读 +*ActivityApi* | [**patchV5NotificationsThreadsId**](docs/ActivityApi.md#patchV5NotificationsThreadsId) | **PATCH** /v5/notifications/threads/{id} | 标记一条通知为已读 +*ActivityApi* | [**postV5NotificationsMessages**](docs/ActivityApi.md#postV5NotificationsMessages) | **POST** /v5/notifications/messages | 发送私信给指定用户 +*ActivityApi* | [**putV5NotificationsMessages**](docs/ActivityApi.md#putV5NotificationsMessages) | **PUT** /v5/notifications/messages | 标记所有私信为已读 +*ActivityApi* | [**putV5NotificationsThreads**](docs/ActivityApi.md#putV5NotificationsThreads) | **PUT** /v5/notifications/threads | 标记所有通知为已读 +*ActivityApi* | [**putV5ReposOwnerRepoNotifications**](docs/ActivityApi.md#putV5ReposOwnerRepoNotifications) | **PUT** /v5/repos/{owner}/{repo}/notifications | 标记一个仓库里的通知为已读 +*ActivityApi* | [**putV5UserStarredOwnerRepo**](docs/ActivityApi.md#putV5UserStarredOwnerRepo) | **PUT** /v5/user/starred/{owner}/{repo} | star 一个仓库 +*ActivityApi* | [**putV5UserSubscriptionsOwnerRepo**](docs/ActivityApi.md#putV5UserSubscriptionsOwnerRepo) | **PUT** /v5/user/subscriptions/{owner}/{repo} | watch 一个仓库 +*EnterprisesApi* | [**deleteV5EnterprisesEnterpriseMembersUsername**](docs/EnterprisesApi.md#deleteV5EnterprisesEnterpriseMembersUsername) | **DELETE** /v5/enterprises/{enterprise}/members/{username} | 移除企业成员 +*EnterprisesApi* | [**deleteV5EnterprisesEnterpriseWeekReportsReportIdCommentsId**](docs/EnterprisesApi.md#deleteV5EnterprisesEnterpriseWeekReportsReportIdCommentsId) | **DELETE** /v5/enterprises/{enterprise}/week_reports/{report_id}/comments/{id} | 删除周报某个评论 +*EnterprisesApi* | [**getV5EnterprisesEnterprise**](docs/EnterprisesApi.md#getV5EnterprisesEnterprise) | **GET** /v5/enterprises/{enterprise} | 获取一个企业 +*EnterprisesApi* | [**getV5EnterprisesEnterpriseMembers**](docs/EnterprisesApi.md#getV5EnterprisesEnterpriseMembers) | **GET** /v5/enterprises/{enterprise}/members | 列出企业的所有成员 +*EnterprisesApi* | [**getV5EnterprisesEnterpriseMembersUsername**](docs/EnterprisesApi.md#getV5EnterprisesEnterpriseMembersUsername) | **GET** /v5/enterprises/{enterprise}/members/{username} | 获取企业的一个成员 +*EnterprisesApi* | [**getV5EnterprisesEnterpriseUsersUsernameWeekReports**](docs/EnterprisesApi.md#getV5EnterprisesEnterpriseUsersUsernameWeekReports) | **GET** /v5/enterprises/{enterprise}/users/{username}/week_reports | 个人周报列表 +*EnterprisesApi* | [**getV5EnterprisesEnterpriseWeekReports**](docs/EnterprisesApi.md#getV5EnterprisesEnterpriseWeekReports) | **GET** /v5/enterprises/{enterprise}/week_reports | 企业成员周报列表 +*EnterprisesApi* | [**getV5EnterprisesEnterpriseWeekReportsId**](docs/EnterprisesApi.md#getV5EnterprisesEnterpriseWeekReportsId) | **GET** /v5/enterprises/{enterprise}/week_reports/{id} | 周报详情 +*EnterprisesApi* | [**getV5EnterprisesEnterpriseWeekReportsIdComments**](docs/EnterprisesApi.md#getV5EnterprisesEnterpriseWeekReportsIdComments) | **GET** /v5/enterprises/{enterprise}/week_reports/{id}/comments | 某个周报评论列表 +*EnterprisesApi* | [**getV5UserEnterprises**](docs/EnterprisesApi.md#getV5UserEnterprises) | **GET** /v5/user/enterprises | 列出授权用户所属的企业 +*EnterprisesApi* | [**patchV5EnterprisesEnterpriseWeekReportId**](docs/EnterprisesApi.md#patchV5EnterprisesEnterpriseWeekReportId) | **PATCH** /v5/enterprises/{enterprise}/week_report/{id} | 编辑周报 +*EnterprisesApi* | [**postV5EnterprisesEnterpriseMembers**](docs/EnterprisesApi.md#postV5EnterprisesEnterpriseMembers) | **POST** /v5/enterprises/{enterprise}/members | 添加或邀请企业成员 +*EnterprisesApi* | [**postV5EnterprisesEnterpriseWeekReport**](docs/EnterprisesApi.md#postV5EnterprisesEnterpriseWeekReport) | **POST** /v5/enterprises/{enterprise}/week_report | 新建周报 +*EnterprisesApi* | [**postV5EnterprisesEnterpriseWeekReportsIdComment**](docs/EnterprisesApi.md#postV5EnterprisesEnterpriseWeekReportsIdComment) | **POST** /v5/enterprises/{enterprise}/week_reports/{id}/comment | 评论周报 +*EnterprisesApi* | [**putV5EnterprisesEnterpriseMembersUsername**](docs/EnterprisesApi.md#putV5EnterprisesEnterpriseMembersUsername) | **PUT** /v5/enterprises/{enterprise}/members/{username} | 修改企业成员权限或备注 +*GistsApi* | [**deleteV5GistsGistIdCommentsId**](docs/GistsApi.md#deleteV5GistsGistIdCommentsId) | **DELETE** /v5/gists/{gist_id}/comments/{id} | 删除代码片段的评论 +*GistsApi* | [**deleteV5GistsId**](docs/GistsApi.md#deleteV5GistsId) | **DELETE** /v5/gists/{id} | 删除指定代码片段 +*GistsApi* | [**deleteV5GistsIdStar**](docs/GistsApi.md#deleteV5GistsIdStar) | **DELETE** /v5/gists/{id}/star | 取消Star代码片段 +*GistsApi* | [**getV5Gists**](docs/GistsApi.md#getV5Gists) | **GET** /v5/gists | 获取代码片段 +*GistsApi* | [**getV5GistsGistIdComments**](docs/GistsApi.md#getV5GistsGistIdComments) | **GET** /v5/gists/{gist_id}/comments | 获取代码片段的评论 +*GistsApi* | [**getV5GistsGistIdCommentsId**](docs/GistsApi.md#getV5GistsGistIdCommentsId) | **GET** /v5/gists/{gist_id}/comments/{id} | 获取单条代码片段的评论 +*GistsApi* | [**getV5GistsId**](docs/GistsApi.md#getV5GistsId) | **GET** /v5/gists/{id} | 获取单条代码片段 +*GistsApi* | [**getV5GistsIdCommits**](docs/GistsApi.md#getV5GistsIdCommits) | **GET** /v5/gists/{id}/commits | 获取代码片段的commit +*GistsApi* | [**getV5GistsIdForks**](docs/GistsApi.md#getV5GistsIdForks) | **GET** /v5/gists/{id}/forks | 获取 Fork 了指定代码片段的列表 +*GistsApi* | [**getV5GistsIdStar**](docs/GistsApi.md#getV5GistsIdStar) | **GET** /v5/gists/{id}/star | 判断代码片段是否已Star +*GistsApi* | [**getV5GistsPublic**](docs/GistsApi.md#getV5GistsPublic) | **GET** /v5/gists/public | 获取公开的代码片段 +*GistsApi* | [**getV5GistsStarred**](docs/GistsApi.md#getV5GistsStarred) | **GET** /v5/gists/starred | 获取用户Star的代码片段 +*GistsApi* | [**getV5UsersUsernameGists**](docs/GistsApi.md#getV5UsersUsernameGists) | **GET** /v5/users/{username}/gists | 获取指定用户的公开代码片段 +*GistsApi* | [**patchV5GistsGistIdCommentsId**](docs/GistsApi.md#patchV5GistsGistIdCommentsId) | **PATCH** /v5/gists/{gist_id}/comments/{id} | 修改代码片段的评论 +*GistsApi* | [**patchV5GistsId**](docs/GistsApi.md#patchV5GistsId) | **PATCH** /v5/gists/{id} | 修改代码片段 +*GistsApi* | [**postV5Gists**](docs/GistsApi.md#postV5Gists) | **POST** /v5/gists | 创建代码片段 +*GistsApi* | [**postV5GistsGistIdComments**](docs/GistsApi.md#postV5GistsGistIdComments) | **POST** /v5/gists/{gist_id}/comments | 增加代码片段的评论 +*GistsApi* | [**postV5GistsIdForks**](docs/GistsApi.md#postV5GistsIdForks) | **POST** /v5/gists/{id}/forks | Fork代码片段 +*GistsApi* | [**putV5GistsIdStar**](docs/GistsApi.md#putV5GistsIdStar) | **PUT** /v5/gists/{id}/star | Star代码片段 +*GitDataApi* | [**getV5ReposOwnerRepoGitBlobsSha**](docs/GitDataApi.md#getV5ReposOwnerRepoGitBlobsSha) | **GET** /v5/repos/{owner}/{repo}/git/blobs/{sha} | 获取文件Blob +*GitDataApi* | [**getV5ReposOwnerRepoGitTreesSha**](docs/GitDataApi.md#getV5ReposOwnerRepoGitTreesSha) | **GET** /v5/repos/{owner}/{repo}/git/trees/{sha} | 获取目录Tree +*IssuesApi* | [**deleteV5ReposOwnerRepoIssuesCommentsId**](docs/IssuesApi.md#deleteV5ReposOwnerRepoIssuesCommentsId) | **DELETE** /v5/repos/{owner}/{repo}/issues/comments/{id} | 删除Issue某条评论 +*IssuesApi* | [**getV5EnterprisesEnterpriseIssues**](docs/IssuesApi.md#getV5EnterprisesEnterpriseIssues) | **GET** /v5/enterprises/{enterprise}/issues | 获取某个企业的所有Issues +*IssuesApi* | [**getV5EnterprisesEnterpriseIssuesNumber**](docs/IssuesApi.md#getV5EnterprisesEnterpriseIssuesNumber) | **GET** /v5/enterprises/{enterprise}/issues/{number} | 获取企业的某个Issue +*IssuesApi* | [**getV5EnterprisesEnterpriseIssuesNumberComments**](docs/IssuesApi.md#getV5EnterprisesEnterpriseIssuesNumberComments) | **GET** /v5/enterprises/{enterprise}/issues/{number}/comments | 获取企业某个Issue所有评论 +*IssuesApi* | [**getV5EnterprisesEnterpriseIssuesNumberLabels**](docs/IssuesApi.md#getV5EnterprisesEnterpriseIssuesNumberLabels) | **GET** /v5/enterprises/{enterprise}/issues/{number}/labels | 获取企业某个Issue所有标签 +*IssuesApi* | [**getV5Issues**](docs/IssuesApi.md#getV5Issues) | **GET** /v5/issues | 获取当前授权用户的所有Issues +*IssuesApi* | [**getV5OrgsOrgIssues**](docs/IssuesApi.md#getV5OrgsOrgIssues) | **GET** /v5/orgs/{org}/issues | 获取当前用户某个组织的Issues +*IssuesApi* | [**getV5ReposOwnerIssuesNumberOperateLogs**](docs/IssuesApi.md#getV5ReposOwnerIssuesNumberOperateLogs) | **GET** /v5/repos/{owner}/issues/{number}/operate_logs | 获取某个Issue下的操作日志 +*IssuesApi* | [**getV5ReposOwnerRepoIssues**](docs/IssuesApi.md#getV5ReposOwnerRepoIssues) | **GET** /v5/repos/{owner}/{repo}/issues | 仓库的所有Issues +*IssuesApi* | [**getV5ReposOwnerRepoIssuesComments**](docs/IssuesApi.md#getV5ReposOwnerRepoIssuesComments) | **GET** /v5/repos/{owner}/{repo}/issues/comments | 获取仓库所有Issue的评论 +*IssuesApi* | [**getV5ReposOwnerRepoIssuesCommentsId**](docs/IssuesApi.md#getV5ReposOwnerRepoIssuesCommentsId) | **GET** /v5/repos/{owner}/{repo}/issues/comments/{id} | 获取仓库Issue某条评论 +*IssuesApi* | [**getV5ReposOwnerRepoIssuesNumber**](docs/IssuesApi.md#getV5ReposOwnerRepoIssuesNumber) | **GET** /v5/repos/{owner}/{repo}/issues/{number} | 仓库的某个Issue +*IssuesApi* | [**getV5ReposOwnerRepoIssuesNumberComments**](docs/IssuesApi.md#getV5ReposOwnerRepoIssuesNumberComments) | **GET** /v5/repos/{owner}/{repo}/issues/{number}/comments | 获取仓库某个Issue所有的评论 +*IssuesApi* | [**getV5UserIssues**](docs/IssuesApi.md#getV5UserIssues) | **GET** /v5/user/issues | 获取授权用户的所有Issues +*IssuesApi* | [**patchV5ReposOwnerIssuesNumber**](docs/IssuesApi.md#patchV5ReposOwnerIssuesNumber) | **PATCH** /v5/repos/{owner}/issues/{number} | 更新Issue +*IssuesApi* | [**patchV5ReposOwnerRepoIssuesCommentsId**](docs/IssuesApi.md#patchV5ReposOwnerRepoIssuesCommentsId) | **PATCH** /v5/repos/{owner}/{repo}/issues/comments/{id} | 更新Issue某条评论 +*IssuesApi* | [**postV5ReposOwnerIssues**](docs/IssuesApi.md#postV5ReposOwnerIssues) | **POST** /v5/repos/{owner}/issues | 创建Issue +*IssuesApi* | [**postV5ReposOwnerRepoIssuesNumberComments**](docs/IssuesApi.md#postV5ReposOwnerRepoIssuesNumberComments) | **POST** /v5/repos/{owner}/{repo}/issues/{number}/comments | 创建某个Issue评论 +*LabelsApi* | [**deleteV5ReposOwnerRepoIssuesNumberLabels**](docs/LabelsApi.md#deleteV5ReposOwnerRepoIssuesNumberLabels) | **DELETE** /v5/repos/{owner}/{repo}/issues/{number}/labels | 删除Issue所有标签 +*LabelsApi* | [**deleteV5ReposOwnerRepoIssuesNumberLabelsName**](docs/LabelsApi.md#deleteV5ReposOwnerRepoIssuesNumberLabelsName) | **DELETE** /v5/repos/{owner}/{repo}/issues/{number}/labels/{name} | 删除Issue标签 +*LabelsApi* | [**deleteV5ReposOwnerRepoLabelsName**](docs/LabelsApi.md#deleteV5ReposOwnerRepoLabelsName) | **DELETE** /v5/repos/{owner}/{repo}/labels/{name} | 删除一个仓库任务标签 +*LabelsApi* | [**getV5EnterprisesEnterpriseLabels**](docs/LabelsApi.md#getV5EnterprisesEnterpriseLabels) | **GET** /v5/enterprises/{enterprise}/labels | 获取企业所有标签 +*LabelsApi* | [**getV5EnterprisesEnterpriseLabelsName**](docs/LabelsApi.md#getV5EnterprisesEnterpriseLabelsName) | **GET** /v5/enterprises/{enterprise}/labels/{name} | 获取企业某个标签 +*LabelsApi* | [**getV5ReposOwnerRepoIssuesNumberLabels**](docs/LabelsApi.md#getV5ReposOwnerRepoIssuesNumberLabels) | **GET** /v5/repos/{owner}/{repo}/issues/{number}/labels | 获取仓库任务的所有标签 +*LabelsApi* | [**getV5ReposOwnerRepoLabels**](docs/LabelsApi.md#getV5ReposOwnerRepoLabels) | **GET** /v5/repos/{owner}/{repo}/labels | 获取仓库所有任务标签 +*LabelsApi* | [**getV5ReposOwnerRepoLabelsName**](docs/LabelsApi.md#getV5ReposOwnerRepoLabelsName) | **GET** /v5/repos/{owner}/{repo}/labels/{name} | 根据标签名称获取单个标签 +*LabelsApi* | [**patchV5ReposOwnerRepoLabelsOriginalName**](docs/LabelsApi.md#patchV5ReposOwnerRepoLabelsOriginalName) | **PATCH** /v5/repos/{owner}/{repo}/labels/{original_name} | 更新一个仓库任务标签 +*LabelsApi* | [**postV5ReposOwnerRepoIssuesNumberLabels**](docs/LabelsApi.md#postV5ReposOwnerRepoIssuesNumberLabels) | **POST** /v5/repos/{owner}/{repo}/issues/{number}/labels | 创建Issue标签 +*LabelsApi* | [**postV5ReposOwnerRepoLabels**](docs/LabelsApi.md#postV5ReposOwnerRepoLabels) | **POST** /v5/repos/{owner}/{repo}/labels | 创建仓库任务标签 +*LabelsApi* | [**putV5ReposOwnerRepoIssuesNumberLabels**](docs/LabelsApi.md#putV5ReposOwnerRepoIssuesNumberLabels) | **PUT** /v5/repos/{owner}/{repo}/issues/{number}/labels | 替换Issue所有标签 +*MilestonesApi* | [**deleteV5ReposOwnerRepoMilestonesNumber**](docs/MilestonesApi.md#deleteV5ReposOwnerRepoMilestonesNumber) | **DELETE** /v5/repos/{owner}/{repo}/milestones/{number} | 删除仓库单个里程碑 +*MilestonesApi* | [**getV5ReposOwnerRepoMilestones**](docs/MilestonesApi.md#getV5ReposOwnerRepoMilestones) | **GET** /v5/repos/{owner}/{repo}/milestones | 获取仓库所有里程碑 +*MilestonesApi* | [**getV5ReposOwnerRepoMilestonesNumber**](docs/MilestonesApi.md#getV5ReposOwnerRepoMilestonesNumber) | **GET** /v5/repos/{owner}/{repo}/milestones/{number} | 获取仓库单个里程碑 +*MilestonesApi* | [**patchV5ReposOwnerRepoMilestonesNumber**](docs/MilestonesApi.md#patchV5ReposOwnerRepoMilestonesNumber) | **PATCH** /v5/repos/{owner}/{repo}/milestones/{number} | 更新仓库里程碑 +*MilestonesApi* | [**postV5ReposOwnerRepoMilestones**](docs/MilestonesApi.md#postV5ReposOwnerRepoMilestones) | **POST** /v5/repos/{owner}/{repo}/milestones | 创建仓库里程碑 +*MiscellaneousApi* | [**getV5Emojis**](docs/MiscellaneousApi.md#getV5Emojis) | **GET** /v5/emojis | 列出可使用的 Emoji +*MiscellaneousApi* | [**getV5GitignoreTemplates**](docs/MiscellaneousApi.md#getV5GitignoreTemplates) | **GET** /v5/gitignore/templates | 列出可使用的 .gitignore 模板 +*MiscellaneousApi* | [**getV5GitignoreTemplatesName**](docs/MiscellaneousApi.md#getV5GitignoreTemplatesName) | **GET** /v5/gitignore/templates/{name} | 获取一个 .gitignore 模板 +*MiscellaneousApi* | [**getV5GitignoreTemplatesNameRaw**](docs/MiscellaneousApi.md#getV5GitignoreTemplatesNameRaw) | **GET** /v5/gitignore/templates/{name}/raw | 获取一个 .gitignore 模板原始文件 +*MiscellaneousApi* | [**getV5Licenses**](docs/MiscellaneousApi.md#getV5Licenses) | **GET** /v5/licenses | 列出可使用的开源许可协议 +*MiscellaneousApi* | [**getV5LicensesLicense**](docs/MiscellaneousApi.md#getV5LicensesLicense) | **GET** /v5/licenses/{license} | 获取一个开源许可协议 +*MiscellaneousApi* | [**getV5LicensesLicenseRaw**](docs/MiscellaneousApi.md#getV5LicensesLicenseRaw) | **GET** /v5/licenses/{license}/raw | 获取一个开源许可协议原始文件 +*MiscellaneousApi* | [**getV5ReposOwnerRepoLicense**](docs/MiscellaneousApi.md#getV5ReposOwnerRepoLicense) | **GET** /v5/repos/{owner}/{repo}/license | 获取一个仓库使用的开源许可协议 +*MiscellaneousApi* | [**postV5Markdown**](docs/MiscellaneousApi.md#postV5Markdown) | **POST** /v5/markdown | 渲染 Markdown 文本 +*OrganizationsApi* | [**deleteV5OrgsOrgMembershipsUsername**](docs/OrganizationsApi.md#deleteV5OrgsOrgMembershipsUsername) | **DELETE** /v5/orgs/{org}/memberships/{username} | 移除授权用户所管理组织中的成员 +*OrganizationsApi* | [**deleteV5UserMembershipsOrgsOrg**](docs/OrganizationsApi.md#deleteV5UserMembershipsOrgsOrg) | **DELETE** /v5/user/memberships/orgs/{org} | 退出一个组织 +*OrganizationsApi* | [**getV5OrgsOrg**](docs/OrganizationsApi.md#getV5OrgsOrg) | **GET** /v5/orgs/{org} | 获取一个组织 +*OrganizationsApi* | [**getV5OrgsOrgMembers**](docs/OrganizationsApi.md#getV5OrgsOrgMembers) | **GET** /v5/orgs/{org}/members | 列出一个组织的所有成员 +*OrganizationsApi* | [**getV5OrgsOrgMembershipsUsername**](docs/OrganizationsApi.md#getV5OrgsOrgMembershipsUsername) | **GET** /v5/orgs/{org}/memberships/{username} | 获取授权用户所属组织的一个成员 +*OrganizationsApi* | [**getV5UserMembershipsOrgs**](docs/OrganizationsApi.md#getV5UserMembershipsOrgs) | **GET** /v5/user/memberships/orgs | 列出授权用户在所属组织的成员资料 +*OrganizationsApi* | [**getV5UserMembershipsOrgsOrg**](docs/OrganizationsApi.md#getV5UserMembershipsOrgsOrg) | **GET** /v5/user/memberships/orgs/{org} | 获取授权用户在一个组织的成员资料 +*OrganizationsApi* | [**getV5UserOrgs**](docs/OrganizationsApi.md#getV5UserOrgs) | **GET** /v5/user/orgs | 列出授权用户所属的组织 +*OrganizationsApi* | [**getV5UsersUsernameOrgs**](docs/OrganizationsApi.md#getV5UsersUsernameOrgs) | **GET** /v5/users/{username}/orgs | 列出用户所属的组织 +*OrganizationsApi* | [**patchV5OrgsOrg**](docs/OrganizationsApi.md#patchV5OrgsOrg) | **PATCH** /v5/orgs/{org} | 更新授权用户所管理的组织资料 +*OrganizationsApi* | [**patchV5UserMembershipsOrgsOrg**](docs/OrganizationsApi.md#patchV5UserMembershipsOrgsOrg) | **PATCH** /v5/user/memberships/orgs/{org} | 更新授权用户在一个组织的成员资料 +*OrganizationsApi* | [**postV5UsersOrganization**](docs/OrganizationsApi.md#postV5UsersOrganization) | **POST** /v5/users/organization | 创建组织 +*OrganizationsApi* | [**putV5OrgsOrgMembershipsUsername**](docs/OrganizationsApi.md#putV5OrgsOrgMembershipsUsername) | **PUT** /v5/orgs/{org}/memberships/{username} | 增加或更新授权用户所管理组织的成员 +*PullRequestsApi* | [**deleteV5ReposOwnerRepoPullsCommentsId**](docs/PullRequestsApi.md#deleteV5ReposOwnerRepoPullsCommentsId) | **DELETE** /v5/repos/{owner}/{repo}/pulls/comments/{id} | 删除评论 +*PullRequestsApi* | [**deleteV5ReposOwnerRepoPullsNumberAssignees**](docs/PullRequestsApi.md#deleteV5ReposOwnerRepoPullsNumberAssignees) | **DELETE** /v5/repos/{owner}/{repo}/pulls/{number}/assignees | 取消用户审查 Pull Request +*PullRequestsApi* | [**deleteV5ReposOwnerRepoPullsNumberTesters**](docs/PullRequestsApi.md#deleteV5ReposOwnerRepoPullsNumberTesters) | **DELETE** /v5/repos/{owner}/{repo}/pulls/{number}/testers | 取消用户测试 Pull Request +*PullRequestsApi* | [**getV5ReposOwnerRepoPulls**](docs/PullRequestsApi.md#getV5ReposOwnerRepoPulls) | **GET** /v5/repos/{owner}/{repo}/pulls | 获取Pull Request列表 +*PullRequestsApi* | [**getV5ReposOwnerRepoPullsComments**](docs/PullRequestsApi.md#getV5ReposOwnerRepoPullsComments) | **GET** /v5/repos/{owner}/{repo}/pulls/comments | 获取该仓库下的所有Pull Request评论 +*PullRequestsApi* | [**getV5ReposOwnerRepoPullsCommentsId**](docs/PullRequestsApi.md#getV5ReposOwnerRepoPullsCommentsId) | **GET** /v5/repos/{owner}/{repo}/pulls/comments/{id} | 获取Pull Request的某个评论 +*PullRequestsApi* | [**getV5ReposOwnerRepoPullsNumber**](docs/PullRequestsApi.md#getV5ReposOwnerRepoPullsNumber) | **GET** /v5/repos/{owner}/{repo}/pulls/{number} | 获取单个Pull Request +*PullRequestsApi* | [**getV5ReposOwnerRepoPullsNumberComments**](docs/PullRequestsApi.md#getV5ReposOwnerRepoPullsNumberComments) | **GET** /v5/repos/{owner}/{repo}/pulls/{number}/comments | 获取某个Pull Request的所有评论 +*PullRequestsApi* | [**getV5ReposOwnerRepoPullsNumberCommits**](docs/PullRequestsApi.md#getV5ReposOwnerRepoPullsNumberCommits) | **GET** /v5/repos/{owner}/{repo}/pulls/{number}/commits | 获取某Pull Request的所有Commit信息。最多显示250条Commit +*PullRequestsApi* | [**getV5ReposOwnerRepoPullsNumberFiles**](docs/PullRequestsApi.md#getV5ReposOwnerRepoPullsNumberFiles) | **GET** /v5/repos/{owner}/{repo}/pulls/{number}/files | Pull Request Commit文件列表。最多显示300条diff +*PullRequestsApi* | [**getV5ReposOwnerRepoPullsNumberMerge**](docs/PullRequestsApi.md#getV5ReposOwnerRepoPullsNumberMerge) | **GET** /v5/repos/{owner}/{repo}/pulls/{number}/merge | 判断Pull Request是否已经合并 +*PullRequestsApi* | [**getV5ReposOwnerRepoPullsNumberOperateLogs**](docs/PullRequestsApi.md#getV5ReposOwnerRepoPullsNumberOperateLogs) | **GET** /v5/repos/{owner}/{repo}/pulls/{number}/operate_logs | 获取某个Pull Request的操作日志 +*PullRequestsApi* | [**patchV5ReposOwnerRepoPullsCommentsId**](docs/PullRequestsApi.md#patchV5ReposOwnerRepoPullsCommentsId) | **PATCH** /v5/repos/{owner}/{repo}/pulls/comments/{id} | 编辑评论 +*PullRequestsApi* | [**patchV5ReposOwnerRepoPullsNumber**](docs/PullRequestsApi.md#patchV5ReposOwnerRepoPullsNumber) | **PATCH** /v5/repos/{owner}/{repo}/pulls/{number} | 更新Pull Request信息 +*PullRequestsApi* | [**postV5ReposOwnerRepoPulls**](docs/PullRequestsApi.md#postV5ReposOwnerRepoPulls) | **POST** /v5/repos/{owner}/{repo}/pulls | 创建Pull Request +*PullRequestsApi* | [**postV5ReposOwnerRepoPullsNumberAssignees**](docs/PullRequestsApi.md#postV5ReposOwnerRepoPullsNumberAssignees) | **POST** /v5/repos/{owner}/{repo}/pulls/{number}/assignees | 指派用户审查 Pull Request +*PullRequestsApi* | [**postV5ReposOwnerRepoPullsNumberComments**](docs/PullRequestsApi.md#postV5ReposOwnerRepoPullsNumberComments) | **POST** /v5/repos/{owner}/{repo}/pulls/{number}/comments | 提交Pull Request评论 +*PullRequestsApi* | [**postV5ReposOwnerRepoPullsNumberTesters**](docs/PullRequestsApi.md#postV5ReposOwnerRepoPullsNumberTesters) | **POST** /v5/repos/{owner}/{repo}/pulls/{number}/testers | 指派用户测试 Pull Request +*PullRequestsApi* | [**putV5ReposOwnerRepoPullsNumberMerge**](docs/PullRequestsApi.md#putV5ReposOwnerRepoPullsNumberMerge) | **PUT** /v5/repos/{owner}/{repo}/pulls/{number}/merge | 合并Pull Request +*RepositoriesApi* | [**deleteV5ReposOwnerRepo**](docs/RepositoriesApi.md#deleteV5ReposOwnerRepo) | **DELETE** /v5/repos/{owner}/{repo} | 删除一个仓库 +*RepositoriesApi* | [**deleteV5ReposOwnerRepoBranchesBranchProtection**](docs/RepositoriesApi.md#deleteV5ReposOwnerRepoBranchesBranchProtection) | **DELETE** /v5/repos/{owner}/{repo}/branches/{branch}/protection | 取消保护分支的设置 +*RepositoriesApi* | [**deleteV5ReposOwnerRepoCollaboratorsUsername**](docs/RepositoriesApi.md#deleteV5ReposOwnerRepoCollaboratorsUsername) | **DELETE** /v5/repos/{owner}/{repo}/collaborators/{username} | 移除仓库成员 +*RepositoriesApi* | [**deleteV5ReposOwnerRepoCommentsId**](docs/RepositoriesApi.md#deleteV5ReposOwnerRepoCommentsId) | **DELETE** /v5/repos/{owner}/{repo}/comments/{id} | 删除Commit评论 +*RepositoriesApi* | [**deleteV5ReposOwnerRepoContentsPath**](docs/RepositoriesApi.md#deleteV5ReposOwnerRepoContentsPath) | **DELETE** /v5/repos/{owner}/{repo}/contents/{path} | 删除文件 +*RepositoriesApi* | [**deleteV5ReposOwnerRepoKeysEnableId**](docs/RepositoriesApi.md#deleteV5ReposOwnerRepoKeysEnableId) | **DELETE** /v5/repos/{owner}/{repo}/keys/enable/{id} | 停用仓库公钥 +*RepositoriesApi* | [**deleteV5ReposOwnerRepoKeysId**](docs/RepositoriesApi.md#deleteV5ReposOwnerRepoKeysId) | **DELETE** /v5/repos/{owner}/{repo}/keys/{id} | 删除一个仓库公钥 +*RepositoriesApi* | [**deleteV5ReposOwnerRepoReleasesId**](docs/RepositoriesApi.md#deleteV5ReposOwnerRepoReleasesId) | **DELETE** /v5/repos/{owner}/{repo}/releases/{id} | 删除仓库Release +*RepositoriesApi* | [**getV5EnterprisesEnterpriseRepos**](docs/RepositoriesApi.md#getV5EnterprisesEnterpriseRepos) | **GET** /v5/enterprises/{enterprise}/repos | 获取企业的所有仓库 +*RepositoriesApi* | [**getV5OrgsOrgRepos**](docs/RepositoriesApi.md#getV5OrgsOrgRepos) | **GET** /v5/orgs/{org}/repos | 获取一个组织的仓库 +*RepositoriesApi* | [**getV5ReposOwnerRepo**](docs/RepositoriesApi.md#getV5ReposOwnerRepo) | **GET** /v5/repos/{owner}/{repo} | 获取用户的某个仓库 +*RepositoriesApi* | [**getV5ReposOwnerRepoBranches**](docs/RepositoriesApi.md#getV5ReposOwnerRepoBranches) | **GET** /v5/repos/{owner}/{repo}/branches | 获取所有分支 +*RepositoriesApi* | [**getV5ReposOwnerRepoBranchesBranch**](docs/RepositoriesApi.md#getV5ReposOwnerRepoBranchesBranch) | **GET** /v5/repos/{owner}/{repo}/branches/{branch} | 获取单个分支 +*RepositoriesApi* | [**getV5ReposOwnerRepoCollaborators**](docs/RepositoriesApi.md#getV5ReposOwnerRepoCollaborators) | **GET** /v5/repos/{owner}/{repo}/collaborators | 获取仓库的所有成员 +*RepositoriesApi* | [**getV5ReposOwnerRepoCollaboratorsUsername**](docs/RepositoriesApi.md#getV5ReposOwnerRepoCollaboratorsUsername) | **GET** /v5/repos/{owner}/{repo}/collaborators/{username} | 判断用户是否为仓库成员 +*RepositoriesApi* | [**getV5ReposOwnerRepoCollaboratorsUsernamePermission**](docs/RepositoriesApi.md#getV5ReposOwnerRepoCollaboratorsUsernamePermission) | **GET** /v5/repos/{owner}/{repo}/collaborators/{username}/permission | 查看仓库成员的权限 +*RepositoriesApi* | [**getV5ReposOwnerRepoComments**](docs/RepositoriesApi.md#getV5ReposOwnerRepoComments) | **GET** /v5/repos/{owner}/{repo}/comments | 获取仓库的Commit评论 +*RepositoriesApi* | [**getV5ReposOwnerRepoCommentsId**](docs/RepositoriesApi.md#getV5ReposOwnerRepoCommentsId) | **GET** /v5/repos/{owner}/{repo}/comments/{id} | 获取仓库的某条Commit评论 +*RepositoriesApi* | [**getV5ReposOwnerRepoCommits**](docs/RepositoriesApi.md#getV5ReposOwnerRepoCommits) | **GET** /v5/repos/{owner}/{repo}/commits | 仓库的所有提交 +*RepositoriesApi* | [**getV5ReposOwnerRepoCommitsRefComments**](docs/RepositoriesApi.md#getV5ReposOwnerRepoCommitsRefComments) | **GET** /v5/repos/{owner}/{repo}/commits/{ref}/comments | 获取单个Commit的评论 +*RepositoriesApi* | [**getV5ReposOwnerRepoCommitsSha**](docs/RepositoriesApi.md#getV5ReposOwnerRepoCommitsSha) | **GET** /v5/repos/{owner}/{repo}/commits/{sha} | 仓库的某个提交 +*RepositoriesApi* | [**getV5ReposOwnerRepoCompareBaseHead**](docs/RepositoriesApi.md#getV5ReposOwnerRepoCompareBaseHead) | **GET** /v5/repos/{owner}/{repo}/compare/{base}...{head} | 两个Commits之间对比的版本差异 +*RepositoriesApi* | [**getV5ReposOwnerRepoContentsPath**](docs/RepositoriesApi.md#getV5ReposOwnerRepoContentsPath) | **GET** /v5/repos/{owner}/{repo}/contents/{path} | 获取仓库具体路径下的内容 +*RepositoriesApi* | [**getV5ReposOwnerRepoContributors**](docs/RepositoriesApi.md#getV5ReposOwnerRepoContributors) | **GET** /v5/repos/{owner}/{repo}/contributors | 获取仓库贡献者 +*RepositoriesApi* | [**getV5ReposOwnerRepoForks**](docs/RepositoriesApi.md#getV5ReposOwnerRepoForks) | **GET** /v5/repos/{owner}/{repo}/forks | 查看仓库的Forks +*RepositoriesApi* | [**getV5ReposOwnerRepoKeys**](docs/RepositoriesApi.md#getV5ReposOwnerRepoKeys) | **GET** /v5/repos/{owner}/{repo}/keys | 获取仓库已部署的公钥 +*RepositoriesApi* | [**getV5ReposOwnerRepoKeysAvailable**](docs/RepositoriesApi.md#getV5ReposOwnerRepoKeysAvailable) | **GET** /v5/repos/{owner}/{repo}/keys/available | 获取仓库可部署的公钥 +*RepositoriesApi* | [**getV5ReposOwnerRepoKeysId**](docs/RepositoriesApi.md#getV5ReposOwnerRepoKeysId) | **GET** /v5/repos/{owner}/{repo}/keys/{id} | 获取仓库的单个公钥 +*RepositoriesApi* | [**getV5ReposOwnerRepoPages**](docs/RepositoriesApi.md#getV5ReposOwnerRepoPages) | **GET** /v5/repos/{owner}/{repo}/pages | 获取Pages信息 +*RepositoriesApi* | [**getV5ReposOwnerRepoReadme**](docs/RepositoriesApi.md#getV5ReposOwnerRepoReadme) | **GET** /v5/repos/{owner}/{repo}/readme | 获取仓库README +*RepositoriesApi* | [**getV5ReposOwnerRepoReleases**](docs/RepositoriesApi.md#getV5ReposOwnerRepoReleases) | **GET** /v5/repos/{owner}/{repo}/releases | 获取仓库的所有Releases +*RepositoriesApi* | [**getV5ReposOwnerRepoReleasesId**](docs/RepositoriesApi.md#getV5ReposOwnerRepoReleasesId) | **GET** /v5/repos/{owner}/{repo}/releases/{id} | 获取仓库的单个Releases +*RepositoriesApi* | [**getV5ReposOwnerRepoReleasesLatest**](docs/RepositoriesApi.md#getV5ReposOwnerRepoReleasesLatest) | **GET** /v5/repos/{owner}/{repo}/releases/latest | 获取仓库的最后更新的Release +*RepositoriesApi* | [**getV5ReposOwnerRepoReleasesTagsTag**](docs/RepositoriesApi.md#getV5ReposOwnerRepoReleasesTagsTag) | **GET** /v5/repos/{owner}/{repo}/releases/tags/{tag} | 根据Tag名称获取仓库的Release +*RepositoriesApi* | [**getV5ReposOwnerRepoTags**](docs/RepositoriesApi.md#getV5ReposOwnerRepoTags) | **GET** /v5/repos/{owner}/{repo}/tags | 列出仓库所有的tags +*RepositoriesApi* | [**getV5UserRepos**](docs/RepositoriesApi.md#getV5UserRepos) | **GET** /v5/user/repos | 列出授权用户的所有仓库 +*RepositoriesApi* | [**getV5UsersUsernameRepos**](docs/RepositoriesApi.md#getV5UsersUsernameRepos) | **GET** /v5/users/{username}/repos | 获取某个用户的公开仓库 +*RepositoriesApi* | [**patchV5ReposOwnerRepo**](docs/RepositoriesApi.md#patchV5ReposOwnerRepo) | **PATCH** /v5/repos/{owner}/{repo} | 更新仓库设置 +*RepositoriesApi* | [**patchV5ReposOwnerRepoCommentsId**](docs/RepositoriesApi.md#patchV5ReposOwnerRepoCommentsId) | **PATCH** /v5/repos/{owner}/{repo}/comments/{id} | 更新Commit评论 +*RepositoriesApi* | [**patchV5ReposOwnerRepoReleasesId**](docs/RepositoriesApi.md#patchV5ReposOwnerRepoReleasesId) | **PATCH** /v5/repos/{owner}/{repo}/releases/{id} | 更新仓库Release +*RepositoriesApi* | [**postV5EnterprisesEnterpriseRepos**](docs/RepositoriesApi.md#postV5EnterprisesEnterpriseRepos) | **POST** /v5/enterprises/{enterprise}/repos | 创建企业仓库 +*RepositoriesApi* | [**postV5OrgsOrgRepos**](docs/RepositoriesApi.md#postV5OrgsOrgRepos) | **POST** /v5/orgs/{org}/repos | 创建组织仓库 +*RepositoriesApi* | [**postV5ReposOwnerRepoBranches**](docs/RepositoriesApi.md#postV5ReposOwnerRepoBranches) | **POST** /v5/repos/{owner}/{repo}/branches | 创建分支 +*RepositoriesApi* | [**postV5ReposOwnerRepoCommitsShaComments**](docs/RepositoriesApi.md#postV5ReposOwnerRepoCommitsShaComments) | **POST** /v5/repos/{owner}/{repo}/commits/{sha}/comments | 创建Commit评论 +*RepositoriesApi* | [**postV5ReposOwnerRepoContentsPath**](docs/RepositoriesApi.md#postV5ReposOwnerRepoContentsPath) | **POST** /v5/repos/{owner}/{repo}/contents/{path} | 新建文件 +*RepositoriesApi* | [**postV5ReposOwnerRepoForks**](docs/RepositoriesApi.md#postV5ReposOwnerRepoForks) | **POST** /v5/repos/{owner}/{repo}/forks | Fork一个仓库 +*RepositoriesApi* | [**postV5ReposOwnerRepoKeys**](docs/RepositoriesApi.md#postV5ReposOwnerRepoKeys) | **POST** /v5/repos/{owner}/{repo}/keys | 为仓库添加公钥 +*RepositoriesApi* | [**postV5ReposOwnerRepoPagesBuilds**](docs/RepositoriesApi.md#postV5ReposOwnerRepoPagesBuilds) | **POST** /v5/repos/{owner}/{repo}/pages/builds | 请求建立Pages +*RepositoriesApi* | [**postV5ReposOwnerRepoReleases**](docs/RepositoriesApi.md#postV5ReposOwnerRepoReleases) | **POST** /v5/repos/{owner}/{repo}/releases | 创建仓库Release +*RepositoriesApi* | [**postV5UserRepos**](docs/RepositoriesApi.md#postV5UserRepos) | **POST** /v5/user/repos | 创建一个仓库 +*RepositoriesApi* | [**putV5ReposOwnerRepoBranchesBranchProtection**](docs/RepositoriesApi.md#putV5ReposOwnerRepoBranchesBranchProtection) | **PUT** /v5/repos/{owner}/{repo}/branches/{branch}/protection | 设置分支保护 +*RepositoriesApi* | [**putV5ReposOwnerRepoClear**](docs/RepositoriesApi.md#putV5ReposOwnerRepoClear) | **PUT** /v5/repos/{owner}/{repo}/clear | 清空一个仓库 +*RepositoriesApi* | [**putV5ReposOwnerRepoCollaboratorsUsername**](docs/RepositoriesApi.md#putV5ReposOwnerRepoCollaboratorsUsername) | **PUT** /v5/repos/{owner}/{repo}/collaborators/{username} | 添加仓库成员 +*RepositoriesApi* | [**putV5ReposOwnerRepoContentsPath**](docs/RepositoriesApi.md#putV5ReposOwnerRepoContentsPath) | **PUT** /v5/repos/{owner}/{repo}/contents/{path} | 更新文件 +*RepositoriesApi* | [**putV5ReposOwnerRepoKeysEnableId**](docs/RepositoriesApi.md#putV5ReposOwnerRepoKeysEnableId) | **PUT** /v5/repos/{owner}/{repo}/keys/enable/{id} | 启用仓库公钥 +*SearchApi* | [**getV5SearchGists**](docs/SearchApi.md#getV5SearchGists) | **GET** /v5/search/gists | 搜索代码片段 +*SearchApi* | [**getV5SearchIssues**](docs/SearchApi.md#getV5SearchIssues) | **GET** /v5/search/issues | 搜索 Issues +*SearchApi* | [**getV5SearchRepositories**](docs/SearchApi.md#getV5SearchRepositories) | **GET** /v5/search/repositories | 搜索仓库 +*SearchApi* | [**getV5SearchUsers**](docs/SearchApi.md#getV5SearchUsers) | **GET** /v5/search/users | 搜索用户 +*UsersApi* | [**deleteV5UserFollowingUsername**](docs/UsersApi.md#deleteV5UserFollowingUsername) | **DELETE** /v5/user/following/{username} | 取消关注一个用户 +*UsersApi* | [**deleteV5UserKeysId**](docs/UsersApi.md#deleteV5UserKeysId) | **DELETE** /v5/user/keys/{id} | 删除一个公钥 +*UsersApi* | [**getV5User**](docs/UsersApi.md#getV5User) | **GET** /v5/user | 获取授权用户的资料 +*UsersApi* | [**getV5UserFollowers**](docs/UsersApi.md#getV5UserFollowers) | **GET** /v5/user/followers | 列出授权用户的关注者 +*UsersApi* | [**getV5UserFollowing**](docs/UsersApi.md#getV5UserFollowing) | **GET** /v5/user/following | 列出授权用户正关注的用户 +*UsersApi* | [**getV5UserFollowingUsername**](docs/UsersApi.md#getV5UserFollowingUsername) | **GET** /v5/user/following/{username} | 检查授权用户是否关注了一个用户 +*UsersApi* | [**getV5UserKeys**](docs/UsersApi.md#getV5UserKeys) | **GET** /v5/user/keys | 列出授权用户的所有公钥 +*UsersApi* | [**getV5UserKeysId**](docs/UsersApi.md#getV5UserKeysId) | **GET** /v5/user/keys/{id} | 获取一个公钥 +*UsersApi* | [**getV5UserNamespace**](docs/UsersApi.md#getV5UserNamespace) | **GET** /v5/user/namespace | 获取授权用户的一个 Namespace +*UsersApi* | [**getV5UserNamespaces**](docs/UsersApi.md#getV5UserNamespaces) | **GET** /v5/user/namespaces | 列出授权用户所有的 Namespace +*UsersApi* | [**getV5UsersUsername**](docs/UsersApi.md#getV5UsersUsername) | **GET** /v5/users/{username} | 获取一个用户 +*UsersApi* | [**getV5UsersUsernameFollowers**](docs/UsersApi.md#getV5UsersUsernameFollowers) | **GET** /v5/users/{username}/followers | 列出指定用户的关注者 +*UsersApi* | [**getV5UsersUsernameFollowing**](docs/UsersApi.md#getV5UsersUsernameFollowing) | **GET** /v5/users/{username}/following | 列出指定用户正在关注的用户 +*UsersApi* | [**getV5UsersUsernameFollowingTargetUser**](docs/UsersApi.md#getV5UsersUsernameFollowingTargetUser) | **GET** /v5/users/{username}/following/{target_user} | 检查指定用户是否关注目标用户 +*UsersApi* | [**getV5UsersUsernameKeys**](docs/UsersApi.md#getV5UsersUsernameKeys) | **GET** /v5/users/{username}/keys | 列出指定用户的所有公钥 +*UsersApi* | [**patchV5User**](docs/UsersApi.md#patchV5User) | **PATCH** /v5/user | 更新授权用户的资料 +*UsersApi* | [**postV5UserKeys**](docs/UsersApi.md#postV5UserKeys) | **POST** /v5/user/keys | 添加一个公钥 +*UsersApi* | [**putV5UserFollowingUsername**](docs/UsersApi.md#putV5UserFollowingUsername) | **PUT** /v5/user/following/{username} | 关注一个用户 +*WebhooksApi* | [**deleteV5ReposOwnerRepoHooksId**](docs/WebhooksApi.md#deleteV5ReposOwnerRepoHooksId) | **DELETE** /v5/repos/{owner}/{repo}/hooks/{id} | 删除一个仓库WebHook +*WebhooksApi* | [**getV5ReposOwnerRepoHooks**](docs/WebhooksApi.md#getV5ReposOwnerRepoHooks) | **GET** /v5/repos/{owner}/{repo}/hooks | 列出仓库的WebHooks +*WebhooksApi* | [**getV5ReposOwnerRepoHooksId**](docs/WebhooksApi.md#getV5ReposOwnerRepoHooksId) | **GET** /v5/repos/{owner}/{repo}/hooks/{id} | 获取仓库单个WebHook +*WebhooksApi* | [**patchV5ReposOwnerRepoHooksId**](docs/WebhooksApi.md#patchV5ReposOwnerRepoHooksId) | **PATCH** /v5/repos/{owner}/{repo}/hooks/{id} | 更新一个仓库WebHook +*WebhooksApi* | [**postV5ReposOwnerRepoHooks**](docs/WebhooksApi.md#postV5ReposOwnerRepoHooks) | **POST** /v5/repos/{owner}/{repo}/hooks | 创建一个仓库WebHook +*WebhooksApi* | [**postV5ReposOwnerRepoHooksIdTests**](docs/WebhooksApi.md#postV5ReposOwnerRepoHooksIdTests) | **POST** /v5/repos/{owner}/{repo}/hooks/{id}/tests | 测试WebHook是否发送成功 + + +## Documentation for Models + + - [BasicInfo](docs/BasicInfo.md) + - [Blob](docs/Blob.md) + - [Branch](docs/Branch.md) + - [Code](docs/Code.md) + - [CodeComment](docs/CodeComment.md) + - [CodeForks](docs/CodeForks.md) + - [CodeForksHistory](docs/CodeForksHistory.md) + - [Commit](docs/Commit.md) + - [CommitContent](docs/CommitContent.md) + - [Compare](docs/Compare.md) + - [CompleteBranch](docs/CompleteBranch.md) + - [Content](docs/Content.md) + - [ContentBasic](docs/ContentBasic.md) + - [Contributor](docs/Contributor.md) + - [EnterpriseBasic](docs/EnterpriseBasic.md) + - [EnterpriseMember](docs/EnterpriseMember.md) + - [Event](docs/Event.md) + - [Group](docs/Group.md) + - [GroupDetail](docs/GroupDetail.md) + - [GroupMember](docs/GroupMember.md) + - [Hook](docs/Hook.md) + - [Issue](docs/Issue.md) + - [IssueCommentPostParam](docs/IssueCommentPostParam.md) + - [IssueUpdateParam](docs/IssueUpdateParam.md) + - [Label](docs/Label.md) + - [Milestone](docs/Milestone.md) + - [Namespace](docs/Namespace.md) + - [NamespaceMini](docs/NamespaceMini.md) + - [Note](docs/Note.md) + - [OperateLog](docs/OperateLog.md) + - [ProgramBasic](docs/ProgramBasic.md) + - [Project](docs/Project.md) + - [ProjectBasic](docs/ProjectBasic.md) + - [ProjectMember](docs/ProjectMember.md) + - [ProjectMemberPermission](docs/ProjectMemberPermission.md) + - [ProjectMemberPutParam](docs/ProjectMemberPutParam.md) + - [PullRequest](docs/PullRequest.md) + - [PullRequestCommentPostParam](docs/PullRequestCommentPostParam.md) + - [PullRequestComments](docs/PullRequestComments.md) + - [PullRequestCommits](docs/PullRequestCommits.md) + - [PullRequestFiles](docs/PullRequestFiles.md) + - [PullRequestMergePutParam](docs/PullRequestMergePutParam.md) + - [PullRequestUpdateParam](docs/PullRequestUpdateParam.md) + - [Release](docs/Release.md) + - [RepoCommit](docs/RepoCommit.md) + - [RepositoryPostParam](docs/RepositoryPostParam.md) + - [SSHKey](docs/SSHKey.md) + - [SSHKeyBasic](docs/SSHKeyBasic.md) + - [Tag](docs/Tag.md) + - [Tree](docs/Tree.md) + - [User](docs/User.md) + - [UserBasic](docs/UserBasic.md) + - [UserMessage](docs/UserMessage.md) + - [UserMessageList](docs/UserMessageList.md) + - [UserMini](docs/UserMini.md) + - [UserNotification](docs/UserNotification.md) + - [UserNotificationCount](docs/UserNotificationCount.md) + - [UserNotificationList](docs/UserNotificationList.md) + - [UserNotificationNamespace](docs/UserNotificationNamespace.md) + - [UserNotificationSubject](docs/UserNotificationSubject.md) + - [WeekReport](docs/WeekReport.md) + + +## 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 + + + diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..4ebc486bf8915623a115bdb5e3808970bbfd73db --- /dev/null +++ b/build.gradle @@ -0,0 +1,104 @@ +apply plugin: 'idea' +apply plugin: 'eclipse' + +group = 'io.swagger' +version = '1.0.0' + +buildscript { + repositories { + jcenter() + } + dependencies { + classpath 'com.android.tools.build:gradle:2.3.+' + classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5' + } +} + +repositories { + jcenter() +} + + +if(hasProperty('target') && target == 'android') { + + apply plugin: 'com.android.library' + apply plugin: 'com.github.dcendents.android-maven' + + android { + compileSdkVersion 25 + buildToolsVersion '25.0.2' + defaultConfig { + minSdkVersion 14 + targetSdkVersion 25 + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_7 + targetCompatibility JavaVersion.VERSION_1_7 + } + + // Rename the aar correctly + libraryVariants.all { variant -> + variant.outputs.each { output -> + def outputFile = output.outputFile + if (outputFile != null && outputFile.name.endsWith('.aar')) { + def fileName = "${project.name}-${variant.baseName}-${version}.aar" + output.outputFile = new File(outputFile.parent, fileName) + } + } + } + + dependencies { + provided 'javax.annotation:jsr250-api:1.0' + } + } + + afterEvaluate { + android.libraryVariants.all { variant -> + def task = project.tasks.create "jar${variant.name.capitalize()}", Jar + task.description = "Create jar artifact for ${variant.name}" + task.dependsOn variant.javaCompile + task.from variant.javaCompile.destinationDir + task.destinationDir = project.file("${project.buildDir}/outputs/jar") + task.archiveName = "${project.name}-${variant.baseName}-${version}.jar" + artifacts.add('archives', task); + } + } + + task sourcesJar(type: Jar) { + from android.sourceSets.main.java.srcDirs + classifier = 'sources' + } + + artifacts { + archives sourcesJar + } + +} else { + + apply plugin: 'java' + apply plugin: 'maven' + + sourceCompatibility = JavaVersion.VERSION_1_7 + targetCompatibility = JavaVersion.VERSION_1_7 + + install { + repositories.mavenInstaller { + pom.artifactId = 'swagger-java-client' + } + } + + task execute(type:JavaExec) { + main = System.getProperty('mainClass') + classpath = sourceSets.main.runtimeClasspath + } +} + +dependencies { + compile 'io.swagger:swagger-annotations:1.5.15' + compile 'com.squareup.okhttp:okhttp:2.7.5' + compile 'com.squareup.okhttp:logging-interceptor:2.7.5' + compile 'com.google.code.gson:gson:2.8.1' + compile 'io.gsonfire:gson-fire:1.8.0' + compile 'org.threeten:threetenbp:1.3.5' + testCompile 'junit:junit:4.12' +} diff --git a/build.sbt b/build.sbt new file mode 100644 index 0000000000000000000000000000000000000000..485ccb39253d8d6b820c0ce2625eeb230912870d --- /dev/null +++ b/build.sbt @@ -0,0 +1,21 @@ +lazy val root = (project in file(".")). + settings( + organization := "io.swagger", + name := "swagger-java-client", + version := "1.0.0", + scalaVersion := "2.11.4", + scalacOptions ++= Seq("-feature"), + javacOptions in compile ++= Seq("-Xlint:deprecation"), + publishArtifact in (Compile, packageDoc) := false, + resolvers += Resolver.mavenLocal, + libraryDependencies ++= Seq( + "io.swagger" % "swagger-annotations" % "1.5.15", + "com.squareup.okhttp" % "okhttp" % "2.7.5", + "com.squareup.okhttp" % "logging-interceptor" % "2.7.5", + "com.google.code.gson" % "gson" % "2.8.1", + "org.threeten" % "threetenbp" % "1.3.5" % "compile", + "io.gsonfire" % "gson-fire" % "1.8.0" % "compile", + "junit" % "junit" % "4.12" % "test", + "com.novocode" % "junit-interface" % "0.10" % "test" + ) + ) diff --git a/config.json b/config.json new file mode 100644 index 0000000000000000000000000000000000000000..df6a97a56641ad6f02a983736f378b9d563e9a83 --- /dev/null +++ b/config.json @@ -0,0 +1,5 @@ +{ + "modelPackage" : "com.gitee.model", + "apiPackage" : "com.gitee.api" +} + diff --git a/docs/ActivityApi.md b/docs/ActivityApi.md new file mode 100644 index 0000000000000000000000000000000000000000..7ae049ead03ee87bc75feef893e65413761bc62a --- /dev/null +++ b/docs/ActivityApi.md @@ -0,0 +1,1723 @@ +# ActivityApi + +All URIs are relative to *https://gitee.com/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**deleteV5UserStarredOwnerRepo**](ActivityApi.md#deleteV5UserStarredOwnerRepo) | **DELETE** /v5/user/starred/{owner}/{repo} | 取消 star 一个仓库 +[**deleteV5UserSubscriptionsOwnerRepo**](ActivityApi.md#deleteV5UserSubscriptionsOwnerRepo) | **DELETE** /v5/user/subscriptions/{owner}/{repo} | 取消 watch 一个仓库 +[**getV5Events**](ActivityApi.md#getV5Events) | **GET** /v5/events | 获取站内所有公开动态 +[**getV5NetworksOwnerRepoEvents**](ActivityApi.md#getV5NetworksOwnerRepoEvents) | **GET** /v5/networks/{owner}/{repo}/events | 列出仓库的所有公开动态 +[**getV5NotificationsCount**](ActivityApi.md#getV5NotificationsCount) | **GET** /v5/notifications/count | 获取授权用户的通知数 +[**getV5NotificationsMessages**](ActivityApi.md#getV5NotificationsMessages) | **GET** /v5/notifications/messages | 列出授权用户的所有私信 +[**getV5NotificationsMessagesId**](ActivityApi.md#getV5NotificationsMessagesId) | **GET** /v5/notifications/messages/{id} | 获取一条私信 +[**getV5NotificationsThreads**](ActivityApi.md#getV5NotificationsThreads) | **GET** /v5/notifications/threads | 列出授权用户的所有通知 +[**getV5NotificationsThreadsId**](ActivityApi.md#getV5NotificationsThreadsId) | **GET** /v5/notifications/threads/{id} | 获取一条通知 +[**getV5OrgsOrgEvents**](ActivityApi.md#getV5OrgsOrgEvents) | **GET** /v5/orgs/{org}/events | 列出组织的公开动态 +[**getV5ReposOwnerRepoEvents**](ActivityApi.md#getV5ReposOwnerRepoEvents) | **GET** /v5/repos/{owner}/{repo}/events | 列出仓库的所有动态 +[**getV5ReposOwnerRepoNotifications**](ActivityApi.md#getV5ReposOwnerRepoNotifications) | **GET** /v5/repos/{owner}/{repo}/notifications | 列出一个仓库里的通知 +[**getV5ReposOwnerRepoStargazers**](ActivityApi.md#getV5ReposOwnerRepoStargazers) | **GET** /v5/repos/{owner}/{repo}/stargazers | 列出 star 了仓库的用户 +[**getV5ReposOwnerRepoSubscribers**](ActivityApi.md#getV5ReposOwnerRepoSubscribers) | **GET** /v5/repos/{owner}/{repo}/subscribers | 列出 watch 了仓库的用户 +[**getV5UserStarred**](ActivityApi.md#getV5UserStarred) | **GET** /v5/user/starred | 列出授权用户 star 了的仓库 +[**getV5UserStarredOwnerRepo**](ActivityApi.md#getV5UserStarredOwnerRepo) | **GET** /v5/user/starred/{owner}/{repo} | 检查授权用户是否 star 了一个仓库 +[**getV5UserSubscriptions**](ActivityApi.md#getV5UserSubscriptions) | **GET** /v5/user/subscriptions | 列出授权用户 watch 了的仓库 +[**getV5UserSubscriptionsOwnerRepo**](ActivityApi.md#getV5UserSubscriptionsOwnerRepo) | **GET** /v5/user/subscriptions/{owner}/{repo} | 检查授权用户是否 watch 了一个仓库 +[**getV5UsersUsernameEvents**](ActivityApi.md#getV5UsersUsernameEvents) | **GET** /v5/users/{username}/events | 列出用户的动态 +[**getV5UsersUsernameEventsOrgsOrg**](ActivityApi.md#getV5UsersUsernameEventsOrgsOrg) | **GET** /v5/users/{username}/events/orgs/{org} | 列出用户所属组织的动态 +[**getV5UsersUsernameEventsPublic**](ActivityApi.md#getV5UsersUsernameEventsPublic) | **GET** /v5/users/{username}/events/public | 列出用户的公开动态 +[**getV5UsersUsernameReceivedEvents**](ActivityApi.md#getV5UsersUsernameReceivedEvents) | **GET** /v5/users/{username}/received_events | 列出一个用户收到的动态 +[**getV5UsersUsernameReceivedEventsPublic**](ActivityApi.md#getV5UsersUsernameReceivedEventsPublic) | **GET** /v5/users/{username}/received_events/public | 列出一个用户收到的公开动态 +[**getV5UsersUsernameStarred**](ActivityApi.md#getV5UsersUsernameStarred) | **GET** /v5/users/{username}/starred | 列出用户 star 了的仓库 +[**getV5UsersUsernameSubscriptions**](ActivityApi.md#getV5UsersUsernameSubscriptions) | **GET** /v5/users/{username}/subscriptions | 列出用户 watch 了的仓库 +[**patchV5NotificationsMessagesId**](ActivityApi.md#patchV5NotificationsMessagesId) | **PATCH** /v5/notifications/messages/{id} | 标记一条私信为已读 +[**patchV5NotificationsThreadsId**](ActivityApi.md#patchV5NotificationsThreadsId) | **PATCH** /v5/notifications/threads/{id} | 标记一条通知为已读 +[**postV5NotificationsMessages**](ActivityApi.md#postV5NotificationsMessages) | **POST** /v5/notifications/messages | 发送私信给指定用户 +[**putV5NotificationsMessages**](ActivityApi.md#putV5NotificationsMessages) | **PUT** /v5/notifications/messages | 标记所有私信为已读 +[**putV5NotificationsThreads**](ActivityApi.md#putV5NotificationsThreads) | **PUT** /v5/notifications/threads | 标记所有通知为已读 +[**putV5ReposOwnerRepoNotifications**](ActivityApi.md#putV5ReposOwnerRepoNotifications) | **PUT** /v5/repos/{owner}/{repo}/notifications | 标记一个仓库里的通知为已读 +[**putV5UserStarredOwnerRepo**](ActivityApi.md#putV5UserStarredOwnerRepo) | **PUT** /v5/user/starred/{owner}/{repo} | star 一个仓库 +[**putV5UserSubscriptionsOwnerRepo**](ActivityApi.md#putV5UserSubscriptionsOwnerRepo) | **PUT** /v5/user/subscriptions/{owner}/{repo} | watch 一个仓库 + + + +# **deleteV5UserStarredOwnerRepo** +> deleteV5UserStarredOwnerRepo(owner, repo, accessToken) + +取消 star 一个仓库 + +取消 star 一个仓库 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.ActivityApi; + + +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(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| 仓库所属空间地址(企业、组织或个人的地址path) | + **repo** | **String**| 仓库路径(path) | + **accessToken** | **String**| 用户授权码 | [optional] + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **deleteV5UserSubscriptionsOwnerRepo** +> deleteV5UserSubscriptionsOwnerRepo(owner, repo, accessToken) + +取消 watch 一个仓库 + +取消 watch 一个仓库 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.ActivityApi; + + +ActivityApi apiInstance = new ActivityApi(); +String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path) +String repo = "repo_example"; // String | 仓库路径(path) +String accessToken = "accessToken_example"; // String | 用户授权码 +try { + apiInstance.deleteV5UserSubscriptionsOwnerRepo(owner, repo, accessToken); +} catch (ApiException e) { + System.err.println("Exception when calling ActivityApi#deleteV5UserSubscriptionsOwnerRepo"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| 仓库所属空间地址(企业、组织或个人的地址path) | + **repo** | **String**| 仓库路径(path) | + **accessToken** | **String**| 用户授权码 | [optional] + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5Events** +> List<Event> getV5Events(accessToken, page, perPage) + +获取站内所有公开动态 + +获取站内所有公开动态 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.ActivityApi; + + +ActivityApi apiInstance = new ActivityApi(); +String accessToken = "accessToken_example"; // String | 用户授权码 +Integer page = 1; // Integer | 当前的页码 +Integer perPage = 20; // Integer | 每页的数量,最大为 100 +try { + List result = apiInstance.getV5Events(accessToken, page, perPage); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ActivityApi#getV5Events"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accessToken** | **String**| 用户授权码 | [optional] + **page** | **Integer**| 当前的页码 | [optional] [default to 1] + **perPage** | **Integer**| 每页的数量,最大为 100 | [optional] [default to 20] + +### Return type + +[**List<Event>**](Event.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5NetworksOwnerRepoEvents** +> List<Event> getV5NetworksOwnerRepoEvents(owner, repo, accessToken, page, perPage) + +列出仓库的所有公开动态 + +列出仓库的所有公开动态 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.ActivityApi; + + +ActivityApi apiInstance = new ActivityApi(); +String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path) +String repo = "repo_example"; // String | 仓库路径(path) +String accessToken = "accessToken_example"; // String | 用户授权码 +Integer page = 1; // Integer | 当前的页码 +Integer perPage = 20; // Integer | 每页的数量,最大为 100 +try { + List result = apiInstance.getV5NetworksOwnerRepoEvents(owner, repo, accessToken, page, perPage); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ActivityApi#getV5NetworksOwnerRepoEvents"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| 仓库所属空间地址(企业、组织或个人的地址path) | + **repo** | **String**| 仓库路径(path) | + **accessToken** | **String**| 用户授权码 | [optional] + **page** | **Integer**| 当前的页码 | [optional] [default to 1] + **perPage** | **Integer**| 每页的数量,最大为 100 | [optional] [default to 20] + +### Return type + +[**List<Event>**](Event.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5NotificationsCount** +> UserNotificationCount getV5NotificationsCount(accessToken, unread) + +获取授权用户的通知数 + +获取授权用户的通知数 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.ActivityApi; + + +ActivityApi apiInstance = new ActivityApi(); +String accessToken = "accessToken_example"; // String | 用户授权码 +Boolean unread = true; // Boolean | 是否只获取未读消息,默认:否 +try { + UserNotificationCount result = apiInstance.getV5NotificationsCount(accessToken, unread); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ActivityApi#getV5NotificationsCount"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accessToken** | **String**| 用户授权码 | [optional] + **unread** | **Boolean**| 是否只获取未读消息,默认:否 | [optional] + +### Return type + +[**UserNotificationCount**](UserNotificationCount.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5NotificationsMessages** +> List<UserMessageList> getV5NotificationsMessages(accessToken, unread, since, before, ids, page, perPage) + +列出授权用户的所有私信 + +列出授权用户的所有私信 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.ActivityApi; + + +ActivityApi apiInstance = new ActivityApi(); +String accessToken = "accessToken_example"; // String | 用户授权码 +Boolean unread = true; // Boolean | 是否只显示未读私信,默认:否 +String since = "since_example"; // String | 只获取在给定时间后更新的私信,要求时间格式为 ISO 8601 +String before = "before_example"; // String | 只获取在给定时间前更新的私信,要求时间格式为 ISO 8601 +String ids = "ids_example"; // String | 指定一组私信 ID,以 , 分隔 +Integer page = 1; // Integer | 当前的页码 +Integer perPage = 20; // Integer | 每页的数量,最大为 100 +try { + List result = apiInstance.getV5NotificationsMessages(accessToken, unread, since, before, ids, page, perPage); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ActivityApi#getV5NotificationsMessages"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accessToken** | **String**| 用户授权码 | [optional] + **unread** | **Boolean**| 是否只显示未读私信,默认:否 | [optional] + **since** | **String**| 只获取在给定时间后更新的私信,要求时间格式为 ISO 8601 | [optional] + **before** | **String**| 只获取在给定时间前更新的私信,要求时间格式为 ISO 8601 | [optional] + **ids** | **String**| 指定一组私信 ID,以 , 分隔 | [optional] + **page** | **Integer**| 当前的页码 | [optional] [default to 1] + **perPage** | **Integer**| 每页的数量,最大为 100 | [optional] [default to 20] + +### Return type + +[**List<UserMessageList>**](UserMessageList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5NotificationsMessagesId** +> UserMessage getV5NotificationsMessagesId(id, accessToken) + +获取一条私信 + +获取一条私信 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.ActivityApi; + + +ActivityApi apiInstance = new ActivityApi(); +String id = "id_example"; // String | 私信的 ID +String accessToken = "accessToken_example"; // String | 用户授权码 +try { + UserMessage result = apiInstance.getV5NotificationsMessagesId(id, accessToken); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ActivityApi#getV5NotificationsMessagesId"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| 私信的 ID | + **accessToken** | **String**| 用户授权码 | [optional] + +### Return type + +[**UserMessage**](UserMessage.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5NotificationsThreads** +> List<UserNotificationList> getV5NotificationsThreads(accessToken, unread, participating, type, since, before, ids, page, perPage) + +列出授权用户的所有通知 + +列出授权用户的所有通知 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.ActivityApi; + + +ActivityApi apiInstance = new ActivityApi(); +String accessToken = "accessToken_example"; // String | 用户授权码 +Boolean unread = true; // Boolean | 是否只获取未读消息,默认:否 +Boolean participating = true; // Boolean | 是否只获取自己直接参与的消息,默认:否 +String type = "all"; // String | 筛选指定类型的通知,all:所有,event:事件通知,referer:@ 通知 +String since = "since_example"; // String | 只获取在给定时间后更新的消息,要求时间格式为 ISO 8601 +String before = "before_example"; // String | 只获取在给定时间前更新的消息,要求时间格式为 ISO 8601 +String ids = "ids_example"; // String | 指定一组通知 ID,以 , 分隔 +Integer page = 1; // Integer | 当前的页码 +Integer perPage = 20; // Integer | 每页的数量,最大为 100 +try { + List result = apiInstance.getV5NotificationsThreads(accessToken, unread, participating, type, since, before, ids, page, perPage); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ActivityApi#getV5NotificationsThreads"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accessToken** | **String**| 用户授权码 | [optional] + **unread** | **Boolean**| 是否只获取未读消息,默认:否 | [optional] + **participating** | **Boolean**| 是否只获取自己直接参与的消息,默认:否 | [optional] + **type** | **String**| 筛选指定类型的通知,all:所有,event:事件通知,referer:@ 通知 | [optional] [default to all] [enum: all, event, referer] + **since** | **String**| 只获取在给定时间后更新的消息,要求时间格式为 ISO 8601 | [optional] + **before** | **String**| 只获取在给定时间前更新的消息,要求时间格式为 ISO 8601 | [optional] + **ids** | **String**| 指定一组通知 ID,以 , 分隔 | [optional] + **page** | **Integer**| 当前的页码 | [optional] [default to 1] + **perPage** | **Integer**| 每页的数量,最大为 100 | [optional] [default to 20] + +### Return type + +[**List<UserNotificationList>**](UserNotificationList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5NotificationsThreadsId** +> UserNotification getV5NotificationsThreadsId(id, accessToken) + +获取一条通知 + +获取一条通知 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.ActivityApi; + + +ActivityApi apiInstance = new ActivityApi(); +String id = "id_example"; // String | 通知的 ID +String accessToken = "accessToken_example"; // String | 用户授权码 +try { + UserNotification result = apiInstance.getV5NotificationsThreadsId(id, accessToken); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ActivityApi#getV5NotificationsThreadsId"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| 通知的 ID | + **accessToken** | **String**| 用户授权码 | [optional] + +### Return type + +[**UserNotification**](UserNotification.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5OrgsOrgEvents** +> List<Event> getV5OrgsOrgEvents(org, accessToken, page, perPage) + +列出组织的公开动态 + +列出组织的公开动态 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.ActivityApi; + + +ActivityApi apiInstance = new ActivityApi(); +String org = "org_example"; // String | 组织的路径(path/login) +String accessToken = "accessToken_example"; // String | 用户授权码 +Integer page = 1; // Integer | 当前的页码 +Integer perPage = 20; // Integer | 每页的数量,最大为 100 +try { + List result = apiInstance.getV5OrgsOrgEvents(org, accessToken, page, perPage); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ActivityApi#getV5OrgsOrgEvents"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **String**| 组织的路径(path/login) | + **accessToken** | **String**| 用户授权码 | [optional] + **page** | **Integer**| 当前的页码 | [optional] [default to 1] + **perPage** | **Integer**| 每页的数量,最大为 100 | [optional] [default to 20] + +### Return type + +[**List<Event>**](Event.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5ReposOwnerRepoEvents** +> List<Event> getV5ReposOwnerRepoEvents(owner, repo, accessToken, page, perPage) + +列出仓库的所有动态 + +列出仓库的所有动态 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.ActivityApi; + + +ActivityApi apiInstance = new ActivityApi(); +String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path) +String repo = "repo_example"; // String | 仓库路径(path) +String accessToken = "accessToken_example"; // String | 用户授权码 +Integer page = 1; // Integer | 当前的页码 +Integer perPage = 20; // Integer | 每页的数量,最大为 100 +try { + List result = apiInstance.getV5ReposOwnerRepoEvents(owner, repo, accessToken, page, perPage); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ActivityApi#getV5ReposOwnerRepoEvents"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| 仓库所属空间地址(企业、组织或个人的地址path) | + **repo** | **String**| 仓库路径(path) | + **accessToken** | **String**| 用户授权码 | [optional] + **page** | **Integer**| 当前的页码 | [optional] [default to 1] + **perPage** | **Integer**| 每页的数量,最大为 100 | [optional] [default to 20] + +### Return type + +[**List<Event>**](Event.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5ReposOwnerRepoNotifications** +> List<UserNotificationList> getV5ReposOwnerRepoNotifications(owner, repo, accessToken, unread, participating, type, since, before, ids, page, perPage) + +列出一个仓库里的通知 + +列出一个仓库里的通知 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.ActivityApi; + + +ActivityApi apiInstance = new ActivityApi(); +String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path) +String repo = "repo_example"; // String | 仓库路径(path) +String accessToken = "accessToken_example"; // String | 用户授权码 +Boolean unread = true; // Boolean | 是否只获取未读消息,默认:否 +Boolean participating = true; // Boolean | 是否只获取自己直接参与的消息,默认:否 +String type = "all"; // String | 筛选指定类型的通知,all:所有,event:事件通知,referer:@ 通知 +String since = "since_example"; // String | 只获取在给定时间后更新的消息,要求时间格式为 ISO 8601 +String before = "before_example"; // String | 只获取在给定时间前更新的消息,要求时间格式为 ISO 8601 +String ids = "ids_example"; // String | 指定一组通知 ID,以 , 分隔 +Integer page = 1; // Integer | 当前的页码 +Integer perPage = 20; // Integer | 每页的数量,最大为 100 +try { + List result = apiInstance.getV5ReposOwnerRepoNotifications(owner, repo, accessToken, unread, participating, type, since, before, ids, page, perPage); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ActivityApi#getV5ReposOwnerRepoNotifications"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| 仓库所属空间地址(企业、组织或个人的地址path) | + **repo** | **String**| 仓库路径(path) | + **accessToken** | **String**| 用户授权码 | [optional] + **unread** | **Boolean**| 是否只获取未读消息,默认:否 | [optional] + **participating** | **Boolean**| 是否只获取自己直接参与的消息,默认:否 | [optional] + **type** | **String**| 筛选指定类型的通知,all:所有,event:事件通知,referer:@ 通知 | [optional] [default to all] [enum: all, event, referer] + **since** | **String**| 只获取在给定时间后更新的消息,要求时间格式为 ISO 8601 | [optional] + **before** | **String**| 只获取在给定时间前更新的消息,要求时间格式为 ISO 8601 | [optional] + **ids** | **String**| 指定一组通知 ID,以 , 分隔 | [optional] + **page** | **Integer**| 当前的页码 | [optional] [default to 1] + **perPage** | **Integer**| 每页的数量,最大为 100 | [optional] [default to 20] + +### Return type + +[**List<UserNotificationList>**](UserNotificationList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5ReposOwnerRepoStargazers** +> List<UserBasic> getV5ReposOwnerRepoStargazers(owner, repo, accessToken, page, perPage) + +列出 star 了仓库的用户 + +列出 star 了仓库的用户 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.ActivityApi; + + +ActivityApi apiInstance = new ActivityApi(); +String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path) +String repo = "repo_example"; // String | 仓库路径(path) +String accessToken = "accessToken_example"; // String | 用户授权码 +Integer page = 1; // Integer | 当前的页码 +Integer perPage = 20; // Integer | 每页的数量,最大为 100 +try { + List result = apiInstance.getV5ReposOwnerRepoStargazers(owner, repo, accessToken, page, perPage); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ActivityApi#getV5ReposOwnerRepoStargazers"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| 仓库所属空间地址(企业、组织或个人的地址path) | + **repo** | **String**| 仓库路径(path) | + **accessToken** | **String**| 用户授权码 | [optional] + **page** | **Integer**| 当前的页码 | [optional] [default to 1] + **perPage** | **Integer**| 每页的数量,最大为 100 | [optional] [default to 20] + +### Return type + +[**List<UserBasic>**](UserBasic.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5ReposOwnerRepoSubscribers** +> List<UserBasic> getV5ReposOwnerRepoSubscribers(owner, repo, accessToken, page, perPage) + +列出 watch 了仓库的用户 + +列出 watch 了仓库的用户 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.ActivityApi; + + +ActivityApi apiInstance = new ActivityApi(); +String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path) +String repo = "repo_example"; // String | 仓库路径(path) +String accessToken = "accessToken_example"; // String | 用户授权码 +Integer page = 1; // Integer | 当前的页码 +Integer perPage = 20; // Integer | 每页的数量,最大为 100 +try { + List result = apiInstance.getV5ReposOwnerRepoSubscribers(owner, repo, accessToken, page, perPage); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ActivityApi#getV5ReposOwnerRepoSubscribers"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| 仓库所属空间地址(企业、组织或个人的地址path) | + **repo** | **String**| 仓库路径(path) | + **accessToken** | **String**| 用户授权码 | [optional] + **page** | **Integer**| 当前的页码 | [optional] [default to 1] + **perPage** | **Integer**| 每页的数量,最大为 100 | [optional] [default to 20] + +### Return type + +[**List<UserBasic>**](UserBasic.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5UserStarred** +> List<Project> getV5UserStarred(accessToken, sort, direction, page, perPage) + +列出授权用户 star 了的仓库 + +列出授权用户 star 了的仓库 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.ActivityApi; + + +ActivityApi apiInstance = new ActivityApi(); +String accessToken = "accessToken_example"; // String | 用户授权码 +String sort = "created"; // String | 根据仓库创建时间(created)或最后推送时间(updated)进行排序,默认:创建时间 +String direction = "desc"; // String | 按递增(asc)或递减(desc)排序,默认:递减 +Integer page = 1; // Integer | 当前的页码 +Integer perPage = 20; // Integer | 每页的数量,最大为 100 +try { + List result = apiInstance.getV5UserStarred(accessToken, sort, direction, page, perPage); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ActivityApi#getV5UserStarred"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accessToken** | **String**| 用户授权码 | [optional] + **sort** | **String**| 根据仓库创建时间(created)或最后推送时间(updated)进行排序,默认:创建时间 | [optional] [default to created] [enum: created, last_push] + **direction** | **String**| 按递增(asc)或递减(desc)排序,默认:递减 | [optional] [default to desc] [enum: asc, desc] + **page** | **Integer**| 当前的页码 | [optional] [default to 1] + **perPage** | **Integer**| 每页的数量,最大为 100 | [optional] [default to 20] + +### Return type + +[**List<Project>**](Project.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5UserStarredOwnerRepo** +> getV5UserStarredOwnerRepo(owner, repo, accessToken) + +检查授权用户是否 star 了一个仓库 + +检查授权用户是否 star 了一个仓库 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.ActivityApi; + + +ActivityApi apiInstance = new ActivityApi(); +String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path) +String repo = "repo_example"; // String | 仓库路径(path) +String accessToken = "accessToken_example"; // String | 用户授权码 +try { + apiInstance.getV5UserStarredOwnerRepo(owner, repo, accessToken); +} catch (ApiException e) { + System.err.println("Exception when calling ActivityApi#getV5UserStarredOwnerRepo"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| 仓库所属空间地址(企业、组织或个人的地址path) | + **repo** | **String**| 仓库路径(path) | + **accessToken** | **String**| 用户授权码 | [optional] + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5UserSubscriptions** +> List<Project> getV5UserSubscriptions(accessToken, sort, direction, page, perPage) + +列出授权用户 watch 了的仓库 + +列出授权用户 watch 了的仓库 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.ActivityApi; + + +ActivityApi apiInstance = new ActivityApi(); +String accessToken = "accessToken_example"; // String | 用户授权码 +String sort = "created"; // String | 根据仓库创建时间(created)或最后推送时间(updated)进行排序,默认:创建时间 +String direction = "desc"; // String | 按递增(asc)或递减(desc)排序,默认:递减 +Integer page = 1; // Integer | 当前的页码 +Integer perPage = 20; // Integer | 每页的数量,最大为 100 +try { + List result = apiInstance.getV5UserSubscriptions(accessToken, sort, direction, page, perPage); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ActivityApi#getV5UserSubscriptions"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accessToken** | **String**| 用户授权码 | [optional] + **sort** | **String**| 根据仓库创建时间(created)或最后推送时间(updated)进行排序,默认:创建时间 | [optional] [default to created] [enum: created, last_push] + **direction** | **String**| 按递增(asc)或递减(desc)排序,默认:递减 | [optional] [default to desc] [enum: asc, desc] + **page** | **Integer**| 当前的页码 | [optional] [default to 1] + **perPage** | **Integer**| 每页的数量,最大为 100 | [optional] [default to 20] + +### Return type + +[**List<Project>**](Project.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5UserSubscriptionsOwnerRepo** +> getV5UserSubscriptionsOwnerRepo(owner, repo, accessToken) + +检查授权用户是否 watch 了一个仓库 + +检查授权用户是否 watch 了一个仓库 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.ActivityApi; + + +ActivityApi apiInstance = new ActivityApi(); +String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path) +String repo = "repo_example"; // String | 仓库路径(path) +String accessToken = "accessToken_example"; // String | 用户授权码 +try { + apiInstance.getV5UserSubscriptionsOwnerRepo(owner, repo, accessToken); +} catch (ApiException e) { + System.err.println("Exception when calling ActivityApi#getV5UserSubscriptionsOwnerRepo"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| 仓库所属空间地址(企业、组织或个人的地址path) | + **repo** | **String**| 仓库路径(path) | + **accessToken** | **String**| 用户授权码 | [optional] + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5UsersUsernameEvents** +> List<Event> getV5UsersUsernameEvents(username, accessToken, page, perPage) + +列出用户的动态 + +列出用户的动态 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.ActivityApi; + + +ActivityApi apiInstance = new ActivityApi(); +String username = "username_example"; // String | 用户名(username/login) +String accessToken = "accessToken_example"; // String | 用户授权码 +Integer page = 1; // Integer | 当前的页码 +Integer perPage = 20; // Integer | 每页的数量,最大为 100 +try { + List result = apiInstance.getV5UsersUsernameEvents(username, accessToken, page, perPage); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ActivityApi#getV5UsersUsernameEvents"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **username** | **String**| 用户名(username/login) | + **accessToken** | **String**| 用户授权码 | [optional] + **page** | **Integer**| 当前的页码 | [optional] [default to 1] + **perPage** | **Integer**| 每页的数量,最大为 100 | [optional] [default to 20] + +### Return type + +[**List<Event>**](Event.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5UsersUsernameEventsOrgsOrg** +> List<Event> getV5UsersUsernameEventsOrgsOrg(username, org, accessToken, page, perPage) + +列出用户所属组织的动态 + +列出用户所属组织的动态 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.ActivityApi; + + +ActivityApi apiInstance = new ActivityApi(); +String username = "username_example"; // String | 用户名(username/login) +String org = "org_example"; // String | 组织的路径(path/login) +String accessToken = "accessToken_example"; // String | 用户授权码 +Integer page = 1; // Integer | 当前的页码 +Integer perPage = 20; // Integer | 每页的数量,最大为 100 +try { + List result = apiInstance.getV5UsersUsernameEventsOrgsOrg(username, org, accessToken, page, perPage); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ActivityApi#getV5UsersUsernameEventsOrgsOrg"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **username** | **String**| 用户名(username/login) | + **org** | **String**| 组织的路径(path/login) | + **accessToken** | **String**| 用户授权码 | [optional] + **page** | **Integer**| 当前的页码 | [optional] [default to 1] + **perPage** | **Integer**| 每页的数量,最大为 100 | [optional] [default to 20] + +### Return type + +[**List<Event>**](Event.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5UsersUsernameEventsPublic** +> List<Event> getV5UsersUsernameEventsPublic(username, accessToken, page, perPage) + +列出用户的公开动态 + +列出用户的公开动态 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.ActivityApi; + + +ActivityApi apiInstance = new ActivityApi(); +String username = "username_example"; // String | 用户名(username/login) +String accessToken = "accessToken_example"; // String | 用户授权码 +Integer page = 1; // Integer | 当前的页码 +Integer perPage = 20; // Integer | 每页的数量,最大为 100 +try { + List result = apiInstance.getV5UsersUsernameEventsPublic(username, accessToken, page, perPage); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ActivityApi#getV5UsersUsernameEventsPublic"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **username** | **String**| 用户名(username/login) | + **accessToken** | **String**| 用户授权码 | [optional] + **page** | **Integer**| 当前的页码 | [optional] [default to 1] + **perPage** | **Integer**| 每页的数量,最大为 100 | [optional] [default to 20] + +### Return type + +[**List<Event>**](Event.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5UsersUsernameReceivedEvents** +> List<Event> getV5UsersUsernameReceivedEvents(username, accessToken, page, perPage) + +列出一个用户收到的动态 + +列出一个用户收到的动态 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.ActivityApi; + + +ActivityApi apiInstance = new ActivityApi(); +String username = "username_example"; // String | 用户名(username/login) +String accessToken = "accessToken_example"; // String | 用户授权码 +Integer page = 1; // Integer | 当前的页码 +Integer perPage = 20; // Integer | 每页的数量,最大为 100 +try { + List result = apiInstance.getV5UsersUsernameReceivedEvents(username, accessToken, page, perPage); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ActivityApi#getV5UsersUsernameReceivedEvents"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **username** | **String**| 用户名(username/login) | + **accessToken** | **String**| 用户授权码 | [optional] + **page** | **Integer**| 当前的页码 | [optional] [default to 1] + **perPage** | **Integer**| 每页的数量,最大为 100 | [optional] [default to 20] + +### Return type + +[**List<Event>**](Event.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5UsersUsernameReceivedEventsPublic** +> List<Event> getV5UsersUsernameReceivedEventsPublic(username, accessToken, page, perPage) + +列出一个用户收到的公开动态 + +列出一个用户收到的公开动态 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.ActivityApi; + + +ActivityApi apiInstance = new ActivityApi(); +String username = "username_example"; // String | 用户名(username/login) +String accessToken = "accessToken_example"; // String | 用户授权码 +Integer page = 1; // Integer | 当前的页码 +Integer perPage = 20; // Integer | 每页的数量,最大为 100 +try { + List result = apiInstance.getV5UsersUsernameReceivedEventsPublic(username, accessToken, page, perPage); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ActivityApi#getV5UsersUsernameReceivedEventsPublic"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **username** | **String**| 用户名(username/login) | + **accessToken** | **String**| 用户授权码 | [optional] + **page** | **Integer**| 当前的页码 | [optional] [default to 1] + **perPage** | **Integer**| 每页的数量,最大为 100 | [optional] [default to 20] + +### Return type + +[**List<Event>**](Event.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5UsersUsernameStarred** +> List<Project> getV5UsersUsernameStarred(username, accessToken, page, perPage, sort, direction) + +列出用户 star 了的仓库 + +列出用户 star 了的仓库 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.ActivityApi; + + +ActivityApi apiInstance = new ActivityApi(); +String username = "username_example"; // String | 用户名(username/login) +String accessToken = "accessToken_example"; // String | 用户授权码 +Integer page = 1; // Integer | 当前的页码 +Integer perPage = 20; // Integer | 每页的数量,最大为 100 +String sort = "created"; // String | 根据仓库创建时间(created)或最后推送时间(updated)进行排序,默认:创建时间 +String direction = "desc"; // String | 按递增(asc)或递减(desc)排序,默认:递减 +try { + List result = apiInstance.getV5UsersUsernameStarred(username, accessToken, page, perPage, sort, direction); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ActivityApi#getV5UsersUsernameStarred"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **username** | **String**| 用户名(username/login) | + **accessToken** | **String**| 用户授权码 | [optional] + **page** | **Integer**| 当前的页码 | [optional] [default to 1] + **perPage** | **Integer**| 每页的数量,最大为 100 | [optional] [default to 20] + **sort** | **String**| 根据仓库创建时间(created)或最后推送时间(updated)进行排序,默认:创建时间 | [optional] [default to created] [enum: created, last_push] + **direction** | **String**| 按递增(asc)或递减(desc)排序,默认:递减 | [optional] [default to desc] [enum: asc, desc] + +### Return type + +[**List<Project>**](Project.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5UsersUsernameSubscriptions** +> List<Project> getV5UsersUsernameSubscriptions(username, accessToken, page, perPage, sort, direction) + +列出用户 watch 了的仓库 + +列出用户 watch 了的仓库 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.ActivityApi; + + +ActivityApi apiInstance = new ActivityApi(); +String username = "username_example"; // String | 用户名(username/login) +String accessToken = "accessToken_example"; // String | 用户授权码 +Integer page = 1; // Integer | 当前的页码 +Integer perPage = 20; // Integer | 每页的数量,最大为 100 +String sort = "created"; // String | 根据仓库创建时间(created)或最后推送时间(updated)进行排序,默认:创建时间 +String direction = "desc"; // String | 按递增(asc)或递减(desc)排序,默认:递减 +try { + List result = apiInstance.getV5UsersUsernameSubscriptions(username, accessToken, page, perPage, sort, direction); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ActivityApi#getV5UsersUsernameSubscriptions"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **username** | **String**| 用户名(username/login) | + **accessToken** | **String**| 用户授权码 | [optional] + **page** | **Integer**| 当前的页码 | [optional] [default to 1] + **perPage** | **Integer**| 每页的数量,最大为 100 | [optional] [default to 20] + **sort** | **String**| 根据仓库创建时间(created)或最后推送时间(updated)进行排序,默认:创建时间 | [optional] [default to created] [enum: created, last_push] + **direction** | **String**| 按递增(asc)或递减(desc)排序,默认:递减 | [optional] [default to desc] [enum: asc, desc] + +### Return type + +[**List<Project>**](Project.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **patchV5NotificationsMessagesId** +> patchV5NotificationsMessagesId(id, accessToken) + +标记一条私信为已读 + +标记一条私信为已读 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.ActivityApi; + + +ActivityApi apiInstance = new ActivityApi(); +String id = "id_example"; // String | 私信的 ID +String accessToken = "accessToken_example"; // String | 用户授权码 +try { + apiInstance.patchV5NotificationsMessagesId(id, accessToken); +} catch (ApiException e) { + System.err.println("Exception when calling ActivityApi#patchV5NotificationsMessagesId"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| 私信的 ID | + **accessToken** | **String**| 用户授权码 | [optional] + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **patchV5NotificationsThreadsId** +> patchV5NotificationsThreadsId(id, accessToken) + +标记一条通知为已读 + +标记一条通知为已读 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.ActivityApi; + + +ActivityApi apiInstance = new ActivityApi(); +String id = "id_example"; // String | 通知的 ID +String accessToken = "accessToken_example"; // String | 用户授权码 +try { + apiInstance.patchV5NotificationsThreadsId(id, accessToken); +} catch (ApiException e) { + System.err.println("Exception when calling ActivityApi#patchV5NotificationsThreadsId"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| 通知的 ID | + **accessToken** | **String**| 用户授权码 | [optional] + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **postV5NotificationsMessages** +> UserMessage postV5NotificationsMessages(username, content, accessToken) + +发送私信给指定用户 + +发送私信给指定用户 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.ActivityApi; + + +ActivityApi apiInstance = new ActivityApi(); +String username = "username_example"; // String | 用户名(username/login) +String content = "content_example"; // String | 私信内容 +String accessToken = "accessToken_example"; // String | 用户授权码 +try { + UserMessage result = apiInstance.postV5NotificationsMessages(username, content, accessToken); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ActivityApi#postV5NotificationsMessages"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **username** | **String**| 用户名(username/login) | + **content** | **String**| 私信内容 | + **accessToken** | **String**| 用户授权码 | [optional] + +### Return type + +[**UserMessage**](UserMessage.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **putV5NotificationsMessages** +> putV5NotificationsMessages(accessToken, ids) + +标记所有私信为已读 + +标记所有私信为已读 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.ActivityApi; + + +ActivityApi apiInstance = new ActivityApi(); +String accessToken = "accessToken_example"; // String | 用户授权码 +String ids = "ids_example"; // String | 指定一组私信 ID,以 , 分隔 +try { + apiInstance.putV5NotificationsMessages(accessToken, ids); +} catch (ApiException e) { + System.err.println("Exception when calling ActivityApi#putV5NotificationsMessages"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accessToken** | **String**| 用户授权码 | [optional] + **ids** | **String**| 指定一组私信 ID,以 , 分隔 | [optional] + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **putV5NotificationsThreads** +> putV5NotificationsThreads(accessToken, ids) + +标记所有通知为已读 + +标记所有通知为已读 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.ActivityApi; + + +ActivityApi apiInstance = new ActivityApi(); +String accessToken = "accessToken_example"; // String | 用户授权码 +String ids = "ids_example"; // String | 指定一组通知 ID,以 , 分隔 +try { + apiInstance.putV5NotificationsThreads(accessToken, ids); +} catch (ApiException e) { + System.err.println("Exception when calling ActivityApi#putV5NotificationsThreads"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accessToken** | **String**| 用户授权码 | [optional] + **ids** | **String**| 指定一组通知 ID,以 , 分隔 | [optional] + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **putV5ReposOwnerRepoNotifications** +> putV5ReposOwnerRepoNotifications(owner, repo, accessToken, ids) + +标记一个仓库里的通知为已读 + +标记一个仓库里的通知为已读 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.ActivityApi; + + +ActivityApi apiInstance = new ActivityApi(); +String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path) +String repo = "repo_example"; // String | 仓库路径(path) +String accessToken = "accessToken_example"; // String | 用户授权码 +String ids = "ids_example"; // String | 指定一组通知 ID,以 , 分隔 +try { + apiInstance.putV5ReposOwnerRepoNotifications(owner, repo, accessToken, ids); +} catch (ApiException e) { + System.err.println("Exception when calling ActivityApi#putV5ReposOwnerRepoNotifications"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| 仓库所属空间地址(企业、组织或个人的地址path) | + **repo** | **String**| 仓库路径(path) | + **accessToken** | **String**| 用户授权码 | [optional] + **ids** | **String**| 指定一组通知 ID,以 , 分隔 | [optional] + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **putV5UserStarredOwnerRepo** +> putV5UserStarredOwnerRepo(owner, repo, accessToken) + +star 一个仓库 + +star 一个仓库 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.ActivityApi; + + +ActivityApi apiInstance = new ActivityApi(); +String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path) +String repo = "repo_example"; // String | 仓库路径(path) +String accessToken = "accessToken_example"; // String | 用户授权码 +try { + apiInstance.putV5UserStarredOwnerRepo(owner, repo, accessToken); +} catch (ApiException e) { + System.err.println("Exception when calling ActivityApi#putV5UserStarredOwnerRepo"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| 仓库所属空间地址(企业、组织或个人的地址path) | + **repo** | **String**| 仓库路径(path) | + **accessToken** | **String**| 用户授权码 | [optional] + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **putV5UserSubscriptionsOwnerRepo** +> putV5UserSubscriptionsOwnerRepo(owner, repo, watchType, accessToken) + +watch 一个仓库 + +watch 一个仓库 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.ActivityApi; + + +ActivityApi apiInstance = new ActivityApi(); +String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path) +String repo = "repo_example"; // String | 仓库路径(path) +String watchType = "watching"; // String | watch策略, watching: 关注所有动态, releases_only: 仅关注版本发行动态, ignoring: 关注但不提醒动态 +String accessToken = "accessToken_example"; // String | 用户授权码 +try { + apiInstance.putV5UserSubscriptionsOwnerRepo(owner, repo, watchType, accessToken); +} catch (ApiException e) { + System.err.println("Exception when calling ActivityApi#putV5UserSubscriptionsOwnerRepo"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| 仓库所属空间地址(企业、组织或个人的地址path) | + **repo** | **String**| 仓库路径(path) | + **watchType** | **String**| watch策略, watching: 关注所有动态, releases_only: 仅关注版本发行动态, ignoring: 关注但不提醒动态 | [default to watching] [enum: watching, releases_only, ignoring] + **accessToken** | **String**| 用户授权码 | [optional] + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + diff --git a/docs/BasicInfo.md b/docs/BasicInfo.md new file mode 100644 index 0000000000000000000000000000000000000000..1d7ff18e21816d14bf5f5396cac833f3fe4fa79c --- /dev/null +++ b/docs/BasicInfo.md @@ -0,0 +1,14 @@ + +# BasicInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**label** | **String** | | [optional] +**ref** | **String** | | [optional] +**sha** | **String** | | [optional] +**user** | [**UserBasic**](UserBasic.md) | | [optional] +**repo** | [**Project**](Project.md) | | [optional] + + + diff --git a/docs/Blob.md b/docs/Blob.md new file mode 100644 index 0000000000000000000000000000000000000000..1cd790754e1bb166640859fc8b30803964b6945c --- /dev/null +++ b/docs/Blob.md @@ -0,0 +1,14 @@ + +# Blob + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sha** | **String** | | [optional] +**size** | **String** | | [optional] +**url** | **String** | | [optional] +**content** | **String** | | [optional] +**encoding** | **String** | | [optional] + + + diff --git a/docs/Branch.md b/docs/Branch.md new file mode 100644 index 0000000000000000000000000000000000000000..ba8cfcd57b2844163ff50c4a8ed0ceaf23b9dbe2 --- /dev/null +++ b/docs/Branch.md @@ -0,0 +1,13 @@ + +# Branch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | [optional] +**commit** | **String** | | [optional] +**_protected** | **String** | | [optional] +**protectionUrl** | **String** | | [optional] + + + diff --git a/docs/Code.md b/docs/Code.md new file mode 100644 index 0000000000000000000000000000000000000000..d350ea6f0b8f67869d287505efd8f5b078cb5d10 --- /dev/null +++ b/docs/Code.md @@ -0,0 +1,26 @@ + +# Code + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url** | **String** | | [optional] +**forksUrl** | **String** | | [optional] +**commitsUrl** | **String** | | [optional] +**id** | **String** | | [optional] +**description** | **String** | | [optional] +**_public** | **String** | | [optional] +**owner** | **String** | | [optional] +**user** | **String** | | [optional] +**files** | **String** | | [optional] +**truncated** | **String** | | [optional] +**htmlUrl** | **String** | | [optional] +**comments** | **String** | | [optional] +**commentsUrl** | **String** | | [optional] +**gitPullUrl** | **String** | | [optional] +**gitPushUrl** | **String** | | [optional] +**createdAt** | **String** | | [optional] +**updatedAt** | **String** | | [optional] + + + diff --git a/docs/CodeComment.md b/docs/CodeComment.md new file mode 100644 index 0000000000000000000000000000000000000000..239f5b8a4fbab5f335ee9713d4e1e1e51461fb05 --- /dev/null +++ b/docs/CodeComment.md @@ -0,0 +1,13 @@ + +# CodeComment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | [optional] +**body** | **String** | | [optional] +**createdAt** | **String** | | [optional] +**updatedAt** | **String** | | [optional] + + + diff --git a/docs/CodeForks.md b/docs/CodeForks.md new file mode 100644 index 0000000000000000000000000000000000000000..df2cf0be0ffa69549e2406a84e7661c1fd6c93e9 --- /dev/null +++ b/docs/CodeForks.md @@ -0,0 +1,14 @@ + +# CodeForks + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user** | **String** | | [optional] +**url** | **String** | | [optional] +**id** | **String** | | [optional] +**createdAt** | **String** | | [optional] +**updatedAt** | **String** | | [optional] + + + diff --git a/docs/CodeForksHistory.md b/docs/CodeForksHistory.md new file mode 100644 index 0000000000000000000000000000000000000000..21e4ce118ddfa9762aff8f9be5171fa8b247e020 --- /dev/null +++ b/docs/CodeForksHistory.md @@ -0,0 +1,28 @@ + +# CodeForksHistory + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url** | **String** | | [optional] +**forksUrl** | **String** | | [optional] +**commitsUrl** | **String** | | [optional] +**id** | **String** | | [optional] +**description** | **String** | | [optional] +**_public** | **String** | | [optional] +**owner** | **String** | | [optional] +**user** | **String** | | [optional] +**files** | **String** | | [optional] +**truncated** | **String** | | [optional] +**htmlUrl** | **String** | | [optional] +**comments** | **String** | | [optional] +**commentsUrl** | **String** | | [optional] +**gitPullUrl** | **String** | | [optional] +**gitPushUrl** | **String** | | [optional] +**createdAt** | **String** | | [optional] +**updatedAt** | **String** | | [optional] +**forks** | **String** | | [optional] +**history** | **String** | | [optional] + + + diff --git a/docs/Commit.md b/docs/Commit.md new file mode 100644 index 0000000000000000000000000000000000000000..a7fdf22e5492844085d4efd3e80aecf32fabfe49 --- /dev/null +++ b/docs/Commit.md @@ -0,0 +1,21 @@ + +# Commit + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | [optional] +**treeId** | **String** | | [optional] +**parentIds** | **List<String>** | | [optional] +**message** | **String** | | [optional] +**timestamp** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**url** | **String** | | [optional] +**author** | [**UserBasic**](UserBasic.md) | | [optional] +**committer** | [**UserBasic**](UserBasic.md) | | [optional] +**distinct** | **Boolean** | | [optional] +**added** | **List<String>** | | [optional] +**removed** | **List<String>** | | [optional] +**modified** | **List<String>** | | [optional] + + + diff --git a/docs/CommitContent.md b/docs/CommitContent.md new file mode 100644 index 0000000000000000000000000000000000000000..5260ae822768c0990f4c3a8ccecd5ef52facff17 --- /dev/null +++ b/docs/CommitContent.md @@ -0,0 +1,11 @@ + +# CommitContent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | [**ContentBasic**](ContentBasic.md) | | [optional] +**commit** | [**Commit**](Commit.md) | | [optional] + + + diff --git a/docs/Compare.md b/docs/Compare.md new file mode 100644 index 0000000000000000000000000000000000000000..d7c28674a6462e4daee18c7913eeb4db0435c428 --- /dev/null +++ b/docs/Compare.md @@ -0,0 +1,13 @@ + +# Compare + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**baseCommit** | **String** | | [optional] +**mergeBaseCommit** | **String** | | [optional] +**commits** | **String** | | [optional] +**files** | **String** | | [optional] + + + diff --git a/docs/CompleteBranch.md b/docs/CompleteBranch.md new file mode 100644 index 0000000000000000000000000000000000000000..eba8ac836c7901cf00350d287e57e4a9e0008f23 --- /dev/null +++ b/docs/CompleteBranch.md @@ -0,0 +1,14 @@ + +# CompleteBranch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | [optional] +**commit** | **String** | | [optional] +**links** | **String** | | [optional] +**_protected** | **String** | | [optional] +**protectionUrl** | **String** | | [optional] + + + diff --git a/docs/Content.md b/docs/Content.md new file mode 100644 index 0000000000000000000000000000000000000000..eaaccdc7b11e5583ee9c69f1a0d8d20599f6ddb9 --- /dev/null +++ b/docs/Content.md @@ -0,0 +1,20 @@ + +# Content + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **String** | | [optional] +**encoding** | **String** | | [optional] +**size** | **String** | | [optional] +**name** | **String** | | [optional] +**path** | **String** | | [optional] +**content** | **String** | | [optional] +**sha** | **String** | | [optional] +**url** | **String** | | [optional] +**htmlUrl** | **String** | | [optional] +**downloadUrl** | **String** | | [optional] +**links** | **String** | | [optional] + + + diff --git a/docs/ContentBasic.md b/docs/ContentBasic.md new file mode 100644 index 0000000000000000000000000000000000000000..8a9bf982c0ecf4fdc922bc7e2ba041e71fa281fa --- /dev/null +++ b/docs/ContentBasic.md @@ -0,0 +1,18 @@ + +# ContentBasic + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | [optional] +**path** | **String** | | [optional] +**size** | **String** | | [optional] +**sha** | **String** | | [optional] +**type** | **String** | | [optional] +**url** | **String** | | [optional] +**htmlUrl** | **String** | | [optional] +**downloadUrl** | **String** | | [optional] +**links** | **String** | | [optional] + + + diff --git a/docs/Contributor.md b/docs/Contributor.md new file mode 100644 index 0000000000000000000000000000000000000000..8938c930af48757f84557ca794370b846aecacd6 --- /dev/null +++ b/docs/Contributor.md @@ -0,0 +1,12 @@ + +# Contributor + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**email** | **String** | | [optional] +**name** | **String** | | [optional] +**contributions** | **String** | | [optional] + + + diff --git a/docs/EnterpriseBasic.md b/docs/EnterpriseBasic.md new file mode 100644 index 0000000000000000000000000000000000000000..856ed5e44040f225b3246ebd925650d037d51090 --- /dev/null +++ b/docs/EnterpriseBasic.md @@ -0,0 +1,14 @@ + +# EnterpriseBasic + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Integer** | | [optional] +**path** | **String** | | [optional] +**name** | **String** | | [optional] +**url** | **String** | | [optional] +**avatarUrl** | **String** | | [optional] + + + diff --git a/docs/EnterpriseMember.md b/docs/EnterpriseMember.md new file mode 100644 index 0000000000000000000000000000000000000000..e354fc8663c7ba804af0a23ce59916d17bbde193 --- /dev/null +++ b/docs/EnterpriseMember.md @@ -0,0 +1,16 @@ + +# EnterpriseMember + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url** | **String** | | [optional] +**active** | **String** | | [optional] +**remark** | **String** | | [optional] +**role** | **String** | | [optional] +**outsourced** | **String** | | [optional] +**enterprise** | [**EnterpriseBasic**](EnterpriseBasic.md) | | [optional] +**user** | **String** | | [optional] + + + diff --git a/docs/EnterprisesApi.md b/docs/EnterprisesApi.md new file mode 100644 index 0000000000000000000000000000000000000000..6cefe2c442c2424b3a5fb7235309e98036d2795e --- /dev/null +++ b/docs/EnterprisesApi.md @@ -0,0 +1,803 @@ +# EnterprisesApi + +All URIs are relative to *https://gitee.com/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**deleteV5EnterprisesEnterpriseMembersUsername**](EnterprisesApi.md#deleteV5EnterprisesEnterpriseMembersUsername) | **DELETE** /v5/enterprises/{enterprise}/members/{username} | 移除企业成员 +[**deleteV5EnterprisesEnterpriseWeekReportsReportIdCommentsId**](EnterprisesApi.md#deleteV5EnterprisesEnterpriseWeekReportsReportIdCommentsId) | **DELETE** /v5/enterprises/{enterprise}/week_reports/{report_id}/comments/{id} | 删除周报某个评论 +[**getV5EnterprisesEnterprise**](EnterprisesApi.md#getV5EnterprisesEnterprise) | **GET** /v5/enterprises/{enterprise} | 获取一个企业 +[**getV5EnterprisesEnterpriseMembers**](EnterprisesApi.md#getV5EnterprisesEnterpriseMembers) | **GET** /v5/enterprises/{enterprise}/members | 列出企业的所有成员 +[**getV5EnterprisesEnterpriseMembersUsername**](EnterprisesApi.md#getV5EnterprisesEnterpriseMembersUsername) | **GET** /v5/enterprises/{enterprise}/members/{username} | 获取企业的一个成员 +[**getV5EnterprisesEnterpriseUsersUsernameWeekReports**](EnterprisesApi.md#getV5EnterprisesEnterpriseUsersUsernameWeekReports) | **GET** /v5/enterprises/{enterprise}/users/{username}/week_reports | 个人周报列表 +[**getV5EnterprisesEnterpriseWeekReports**](EnterprisesApi.md#getV5EnterprisesEnterpriseWeekReports) | **GET** /v5/enterprises/{enterprise}/week_reports | 企业成员周报列表 +[**getV5EnterprisesEnterpriseWeekReportsId**](EnterprisesApi.md#getV5EnterprisesEnterpriseWeekReportsId) | **GET** /v5/enterprises/{enterprise}/week_reports/{id} | 周报详情 +[**getV5EnterprisesEnterpriseWeekReportsIdComments**](EnterprisesApi.md#getV5EnterprisesEnterpriseWeekReportsIdComments) | **GET** /v5/enterprises/{enterprise}/week_reports/{id}/comments | 某个周报评论列表 +[**getV5UserEnterprises**](EnterprisesApi.md#getV5UserEnterprises) | **GET** /v5/user/enterprises | 列出授权用户所属的企业 +[**patchV5EnterprisesEnterpriseWeekReportId**](EnterprisesApi.md#patchV5EnterprisesEnterpriseWeekReportId) | **PATCH** /v5/enterprises/{enterprise}/week_report/{id} | 编辑周报 +[**postV5EnterprisesEnterpriseMembers**](EnterprisesApi.md#postV5EnterprisesEnterpriseMembers) | **POST** /v5/enterprises/{enterprise}/members | 添加或邀请企业成员 +[**postV5EnterprisesEnterpriseWeekReport**](EnterprisesApi.md#postV5EnterprisesEnterpriseWeekReport) | **POST** /v5/enterprises/{enterprise}/week_report | 新建周报 +[**postV5EnterprisesEnterpriseWeekReportsIdComment**](EnterprisesApi.md#postV5EnterprisesEnterpriseWeekReportsIdComment) | **POST** /v5/enterprises/{enterprise}/week_reports/{id}/comment | 评论周报 +[**putV5EnterprisesEnterpriseMembersUsername**](EnterprisesApi.md#putV5EnterprisesEnterpriseMembersUsername) | **PUT** /v5/enterprises/{enterprise}/members/{username} | 修改企业成员权限或备注 + + + +# **deleteV5EnterprisesEnterpriseMembersUsername** +> deleteV5EnterprisesEnterpriseMembersUsername(enterprise, username, accessToken) + +移除企业成员 + +移除企业成员 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.EnterprisesApi; + + +EnterprisesApi apiInstance = new EnterprisesApi(); +String enterprise = "enterprise_example"; // String | 企业的路径(path/login) +String username = "username_example"; // String | 用户名(username/login) +String accessToken = "accessToken_example"; // String | 用户授权码 +try { + apiInstance.deleteV5EnterprisesEnterpriseMembersUsername(enterprise, username, accessToken); +} catch (ApiException e) { + System.err.println("Exception when calling EnterprisesApi#deleteV5EnterprisesEnterpriseMembersUsername"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **enterprise** | **String**| 企业的路径(path/login) | + **username** | **String**| 用户名(username/login) | + **accessToken** | **String**| 用户授权码 | [optional] + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **deleteV5EnterprisesEnterpriseWeekReportsReportIdCommentsId** +> deleteV5EnterprisesEnterpriseWeekReportsReportIdCommentsId(enterprise, reportId, id, accessToken) + +删除周报某个评论 + +删除周报某个评论 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.EnterprisesApi; + + +EnterprisesApi apiInstance = new EnterprisesApi(); +String enterprise = "enterprise_example"; // String | 企业的路径(path/login) +Integer reportId = 56; // Integer | 周报ID +Integer id = 56; // Integer | 评论ID +String accessToken = "accessToken_example"; // String | 用户授权码 +try { + apiInstance.deleteV5EnterprisesEnterpriseWeekReportsReportIdCommentsId(enterprise, reportId, id, accessToken); +} catch (ApiException e) { + System.err.println("Exception when calling EnterprisesApi#deleteV5EnterprisesEnterpriseWeekReportsReportIdCommentsId"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **enterprise** | **String**| 企业的路径(path/login) | + **reportId** | **Integer**| 周报ID | + **id** | **Integer**| 评论ID | + **accessToken** | **String**| 用户授权码 | [optional] + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5EnterprisesEnterprise** +> EnterpriseBasic getV5EnterprisesEnterprise(enterprise, accessToken) + +获取一个企业 + +获取一个企业 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.EnterprisesApi; + + +EnterprisesApi apiInstance = new EnterprisesApi(); +String enterprise = "enterprise_example"; // String | 企业的路径(path/login) +String accessToken = "accessToken_example"; // String | 用户授权码 +try { + EnterpriseBasic result = apiInstance.getV5EnterprisesEnterprise(enterprise, accessToken); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling EnterprisesApi#getV5EnterprisesEnterprise"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **enterprise** | **String**| 企业的路径(path/login) | + **accessToken** | **String**| 用户授权码 | [optional] + +### Return type + +[**EnterpriseBasic**](EnterpriseBasic.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5EnterprisesEnterpriseMembers** +> List<EnterpriseMember> getV5EnterprisesEnterpriseMembers(enterprise, accessToken, role) + +列出企业的所有成员 + +列出企业的所有成员 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.EnterprisesApi; + + +EnterprisesApi apiInstance = new EnterprisesApi(); +String enterprise = "enterprise_example"; // String | 企业的路径(path/login) +String accessToken = "accessToken_example"; // String | 用户授权码 +String role = "all"; // String | 根据角色筛选成员 +try { + List result = apiInstance.getV5EnterprisesEnterpriseMembers(enterprise, accessToken, role); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling EnterprisesApi#getV5EnterprisesEnterpriseMembers"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **enterprise** | **String**| 企业的路径(path/login) | + **accessToken** | **String**| 用户授权码 | [optional] + **role** | **String**| 根据角色筛选成员 | [optional] [default to all] [enum: all, admin, member] + +### Return type + +[**List<EnterpriseMember>**](EnterpriseMember.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5EnterprisesEnterpriseMembersUsername** +> EnterpriseMember getV5EnterprisesEnterpriseMembersUsername(enterprise, username, accessToken) + +获取企业的一个成员 + +获取企业的一个成员 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.EnterprisesApi; + + +EnterprisesApi apiInstance = new EnterprisesApi(); +String enterprise = "enterprise_example"; // String | 企业的路径(path/login) +String username = "username_example"; // String | 用户名(username/login) +String accessToken = "accessToken_example"; // String | 用户授权码 +try { + EnterpriseMember result = apiInstance.getV5EnterprisesEnterpriseMembersUsername(enterprise, username, accessToken); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling EnterprisesApi#getV5EnterprisesEnterpriseMembersUsername"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **enterprise** | **String**| 企业的路径(path/login) | + **username** | **String**| 用户名(username/login) | + **accessToken** | **String**| 用户授权码 | [optional] + +### Return type + +[**EnterpriseMember**](EnterpriseMember.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5EnterprisesEnterpriseUsersUsernameWeekReports** +> List<WeekReport> getV5EnterprisesEnterpriseUsersUsernameWeekReports(enterprise, username, accessToken, page, perPage) + +个人周报列表 + +个人周报列表 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.EnterprisesApi; + + +EnterprisesApi apiInstance = new EnterprisesApi(); +String enterprise = "enterprise_example"; // String | 企业的路径(path/login) +String username = "username_example"; // String | 用户名(username/login) +String accessToken = "accessToken_example"; // String | 用户授权码 +Integer page = 1; // Integer | 当前的页码 +Integer perPage = 20; // Integer | 每页的数量,最大为 100 +try { + List result = apiInstance.getV5EnterprisesEnterpriseUsersUsernameWeekReports(enterprise, username, accessToken, page, perPage); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling EnterprisesApi#getV5EnterprisesEnterpriseUsersUsernameWeekReports"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **enterprise** | **String**| 企业的路径(path/login) | + **username** | **String**| 用户名(username/login) | + **accessToken** | **String**| 用户授权码 | [optional] + **page** | **Integer**| 当前的页码 | [optional] [default to 1] + **perPage** | **Integer**| 每页的数量,最大为 100 | [optional] [default to 20] + +### Return type + +[**List<WeekReport>**](WeekReport.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5EnterprisesEnterpriseWeekReports** +> List<WeekReport> getV5EnterprisesEnterpriseWeekReports(enterprise, accessToken, page, perPage, username, year, weekIndex, date) + +企业成员周报列表 + +企业成员周报列表 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.EnterprisesApi; + + +EnterprisesApi apiInstance = new EnterprisesApi(); +String enterprise = "enterprise_example"; // String | 企业的路径(path/login) +String accessToken = "accessToken_example"; // String | 用户授权码 +Integer page = 1; // Integer | 当前的页码 +Integer perPage = 20; // Integer | 每页的数量,最大为 100 +String username = "username_example"; // String | 用户名(username/login) +Integer year = 56; // Integer | 周报所属年 +Integer weekIndex = 56; // Integer | 周报所属周 +String date = "date_example"; // String | 周报日期(格式:2019-03-25) +try { + List result = apiInstance.getV5EnterprisesEnterpriseWeekReports(enterprise, accessToken, page, perPage, username, year, weekIndex, date); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling EnterprisesApi#getV5EnterprisesEnterpriseWeekReports"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **enterprise** | **String**| 企业的路径(path/login) | + **accessToken** | **String**| 用户授权码 | [optional] + **page** | **Integer**| 当前的页码 | [optional] [default to 1] + **perPage** | **Integer**| 每页的数量,最大为 100 | [optional] [default to 20] + **username** | **String**| 用户名(username/login) | [optional] + **year** | **Integer**| 周报所属年 | [optional] + **weekIndex** | **Integer**| 周报所属周 | [optional] + **date** | **String**| 周报日期(格式:2019-03-25) | [optional] + +### Return type + +[**List<WeekReport>**](WeekReport.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5EnterprisesEnterpriseWeekReportsId** +> WeekReport getV5EnterprisesEnterpriseWeekReportsId(enterprise, id, accessToken) + +周报详情 + +周报详情 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.EnterprisesApi; + + +EnterprisesApi apiInstance = new EnterprisesApi(); +String enterprise = "enterprise_example"; // String | 企业的路径(path/login) +Integer id = 56; // Integer | 周报ID +String accessToken = "accessToken_example"; // String | 用户授权码 +try { + WeekReport result = apiInstance.getV5EnterprisesEnterpriseWeekReportsId(enterprise, id, accessToken); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling EnterprisesApi#getV5EnterprisesEnterpriseWeekReportsId"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **enterprise** | **String**| 企业的路径(path/login) | + **id** | **Integer**| 周报ID | + **accessToken** | **String**| 用户授权码 | [optional] + +### Return type + +[**WeekReport**](WeekReport.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5EnterprisesEnterpriseWeekReportsIdComments** +> List<Note> getV5EnterprisesEnterpriseWeekReportsIdComments(enterprise, id, accessToken, page, perPage) + +某个周报评论列表 + +某个周报评论列表 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.EnterprisesApi; + + +EnterprisesApi apiInstance = new EnterprisesApi(); +String enterprise = "enterprise_example"; // String | 企业的路径(path/login) +Integer id = 56; // Integer | 周报ID +String accessToken = "accessToken_example"; // String | 用户授权码 +Integer page = 1; // Integer | 当前的页码 +Integer perPage = 20; // Integer | 每页的数量,最大为 100 +try { + List result = apiInstance.getV5EnterprisesEnterpriseWeekReportsIdComments(enterprise, id, accessToken, page, perPage); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling EnterprisesApi#getV5EnterprisesEnterpriseWeekReportsIdComments"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **enterprise** | **String**| 企业的路径(path/login) | + **id** | **Integer**| 周报ID | + **accessToken** | **String**| 用户授权码 | [optional] + **page** | **Integer**| 当前的页码 | [optional] [default to 1] + **perPage** | **Integer**| 每页的数量,最大为 100 | [optional] [default to 20] + +### Return type + +[**List<Note>**](Note.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5UserEnterprises** +> List<EnterpriseBasic> getV5UserEnterprises(accessToken, page, perPage, admin) + +列出授权用户所属的企业 + +列出授权用户所属的企业 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.EnterprisesApi; + + +EnterprisesApi apiInstance = new EnterprisesApi(); +String accessToken = "accessToken_example"; // String | 用户授权码 +Integer page = 1; // Integer | 当前的页码 +Integer perPage = 20; // Integer | 每页的数量,最大为 100 +Boolean admin = true; // Boolean | 只列出授权用户管理的企业 +try { + List result = apiInstance.getV5UserEnterprises(accessToken, page, perPage, admin); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling EnterprisesApi#getV5UserEnterprises"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accessToken** | **String**| 用户授权码 | [optional] + **page** | **Integer**| 当前的页码 | [optional] [default to 1] + **perPage** | **Integer**| 每页的数量,最大为 100 | [optional] [default to 20] + **admin** | **Boolean**| 只列出授权用户管理的企业 | [optional] [default to true] + +### Return type + +[**List<EnterpriseBasic>**](EnterpriseBasic.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **patchV5EnterprisesEnterpriseWeekReportId** +> WeekReport patchV5EnterprisesEnterpriseWeekReportId(enterprise, id, content, accessToken) + +编辑周报 + +编辑周报 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.EnterprisesApi; + + +EnterprisesApi apiInstance = new EnterprisesApi(); +String enterprise = "enterprise_example"; // String | 企业的路径(path/login) +Integer id = 56; // Integer | 周报ID +String content = "content_example"; // String | 周报内容 +String accessToken = "accessToken_example"; // String | 用户授权码 +try { + WeekReport result = apiInstance.patchV5EnterprisesEnterpriseWeekReportId(enterprise, id, content, accessToken); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling EnterprisesApi#patchV5EnterprisesEnterpriseWeekReportId"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **enterprise** | **String**| 企业的路径(path/login) | + **id** | **Integer**| 周报ID | + **content** | **String**| 周报内容 | + **accessToken** | **String**| 用户授权码 | [optional] + +### Return type + +[**WeekReport**](WeekReport.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **postV5EnterprisesEnterpriseMembers** +> postV5EnterprisesEnterpriseMembers(enterprise, accessToken, username, email, outsourced, role, name) + +添加或邀请企业成员 + +添加或邀请企业成员 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.EnterprisesApi; + + +EnterprisesApi apiInstance = new EnterprisesApi(); +String enterprise = "enterprise_example"; // String | 企业的路径(path/login) +String accessToken = "accessToken_example"; // String | 用户授权码 +String username = "username_example"; // String | 需要邀请的码云用户名(username/login),username,email至少填写一个 +String email = "email_example"; // String | 要添加邮箱地址,若该邮箱未注册则自动创建帐号。username,email至少填写一个 +Boolean outsourced = true; // Boolean | 是否企业外包成员,默认:否 +String role = "member"; // String | 企业角色,默认普通成员 +String name = "name_example"; // String | 企业成员真实姓名(备注) +try { + apiInstance.postV5EnterprisesEnterpriseMembers(enterprise, accessToken, username, email, outsourced, role, name); +} catch (ApiException e) { + System.err.println("Exception when calling EnterprisesApi#postV5EnterprisesEnterpriseMembers"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **enterprise** | **String**| 企业的路径(path/login) | + **accessToken** | **String**| 用户授权码 | [optional] + **username** | **String**| 需要邀请的码云用户名(username/login),username,email至少填写一个 | [optional] + **email** | **String**| 要添加邮箱地址,若该邮箱未注册则自动创建帐号。username,email至少填写一个 | [optional] + **outsourced** | **Boolean**| 是否企业外包成员,默认:否 | [optional] + **role** | **String**| 企业角色,默认普通成员 | [optional] [default to member] [enum: admin, member] + **name** | **String**| 企业成员真实姓名(备注) | [optional] + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **postV5EnterprisesEnterpriseWeekReport** +> WeekReport postV5EnterprisesEnterpriseWeekReport(enterprise, year, content, weekIndex, username, accessToken, date) + +新建周报 + +新建周报 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.EnterprisesApi; + + +EnterprisesApi apiInstance = new EnterprisesApi(); +String enterprise = "enterprise_example"; // String | 企业的路径(path/login) +Integer year = 56; // Integer | 周报所属年 +String content = "content_example"; // String | 周报内容 +Integer weekIndex = 56; // Integer | 周报所属周 +String username = "username_example"; // String | 用户名(username/login) +String accessToken = "accessToken_example"; // String | 用户授权码 +String date = "date_example"; // String | 周报日期(格式:2019-03-25) +try { + WeekReport result = apiInstance.postV5EnterprisesEnterpriseWeekReport(enterprise, year, content, weekIndex, username, accessToken, date); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling EnterprisesApi#postV5EnterprisesEnterpriseWeekReport"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **enterprise** | **String**| 企业的路径(path/login) | + **year** | **Integer**| 周报所属年 | + **content** | **String**| 周报内容 | + **weekIndex** | **Integer**| 周报所属周 | + **username** | **String**| 用户名(username/login) | + **accessToken** | **String**| 用户授权码 | [optional] + **date** | **String**| 周报日期(格式:2019-03-25) | [optional] + +### Return type + +[**WeekReport**](WeekReport.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **postV5EnterprisesEnterpriseWeekReportsIdComment** +> Note postV5EnterprisesEnterpriseWeekReportsIdComment(enterprise, id, body, accessToken) + +评论周报 + +评论周报 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.EnterprisesApi; + + +EnterprisesApi apiInstance = new EnterprisesApi(); +String enterprise = "enterprise_example"; // String | 企业的路径(path/login) +Integer id = 56; // Integer | 周报ID +String body = "body_example"; // String | 评论的内容 +String accessToken = "accessToken_example"; // String | 用户授权码 +try { + Note result = apiInstance.postV5EnterprisesEnterpriseWeekReportsIdComment(enterprise, id, body, accessToken); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling EnterprisesApi#postV5EnterprisesEnterpriseWeekReportsIdComment"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **enterprise** | **String**| 企业的路径(path/login) | + **id** | **Integer**| 周报ID | + **body** | **String**| 评论的内容 | + **accessToken** | **String**| 用户授权码 | [optional] + +### Return type + +[**Note**](Note.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **putV5EnterprisesEnterpriseMembersUsername** +> EnterpriseMember putV5EnterprisesEnterpriseMembersUsername(enterprise, username, accessToken, outsourced, role, active, name) + +修改企业成员权限或备注 + +修改企业成员权限或备注 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.EnterprisesApi; + + +EnterprisesApi apiInstance = new EnterprisesApi(); +String enterprise = "enterprise_example"; // String | 企业的路径(path/login) +String username = "username_example"; // String | 用户名(username/login) +String accessToken = "accessToken_example"; // String | 用户授权码 +Boolean outsourced = true; // Boolean | 是否企业外包成员,默认:否 +String role = "member"; // String | 企业角色,默认普通成员 +Boolean active = true; // Boolean | 是否可访问企业资源,默认:是。(若选否则禁止该用户访问企业资源) +String name = "name_example"; // String | 企业成员真实姓名(备注) +try { + EnterpriseMember result = apiInstance.putV5EnterprisesEnterpriseMembersUsername(enterprise, username, accessToken, outsourced, role, active, name); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling EnterprisesApi#putV5EnterprisesEnterpriseMembersUsername"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **enterprise** | **String**| 企业的路径(path/login) | + **username** | **String**| 用户名(username/login) | + **accessToken** | **String**| 用户授权码 | [optional] + **outsourced** | **Boolean**| 是否企业外包成员,默认:否 | [optional] + **role** | **String**| 企业角色,默认普通成员 | [optional] [default to member] [enum: admin, member] + **active** | **Boolean**| 是否可访问企业资源,默认:是。(若选否则禁止该用户访问企业资源) | [optional] [default to true] + **name** | **String**| 企业成员真实姓名(备注) | [optional] + +### Return type + +[**EnterpriseMember**](EnterpriseMember.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + diff --git a/docs/Event.md b/docs/Event.md new file mode 100644 index 0000000000000000000000000000000000000000..0a3e770884ceb7711ede873a808ab0170b540fef --- /dev/null +++ b/docs/Event.md @@ -0,0 +1,17 @@ + +# Event + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Integer** | | [optional] +**type** | **String** | | [optional] +**actor** | **String** | | [optional] +**repo** | **String** | | [optional] +**org** | **String** | | [optional] +**_public** | **String** | | [optional] +**createdAt** | **String** | | [optional] +**payload** | **Object** | 不同类型动态的内容 | [optional] + + + diff --git a/docs/GistsApi.md b/docs/GistsApi.md new file mode 100644 index 0000000000000000000000000000000000000000..01256b14ca2765c073a2502631c5f5d1ee5987a4 --- /dev/null +++ b/docs/GistsApi.md @@ -0,0 +1,958 @@ +# GistsApi + +All URIs are relative to *https://gitee.com/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**deleteV5GistsGistIdCommentsId**](GistsApi.md#deleteV5GistsGistIdCommentsId) | **DELETE** /v5/gists/{gist_id}/comments/{id} | 删除代码片段的评论 +[**deleteV5GistsId**](GistsApi.md#deleteV5GistsId) | **DELETE** /v5/gists/{id} | 删除指定代码片段 +[**deleteV5GistsIdStar**](GistsApi.md#deleteV5GistsIdStar) | **DELETE** /v5/gists/{id}/star | 取消Star代码片段 +[**getV5Gists**](GistsApi.md#getV5Gists) | **GET** /v5/gists | 获取代码片段 +[**getV5GistsGistIdComments**](GistsApi.md#getV5GistsGistIdComments) | **GET** /v5/gists/{gist_id}/comments | 获取代码片段的评论 +[**getV5GistsGistIdCommentsId**](GistsApi.md#getV5GistsGistIdCommentsId) | **GET** /v5/gists/{gist_id}/comments/{id} | 获取单条代码片段的评论 +[**getV5GistsId**](GistsApi.md#getV5GistsId) | **GET** /v5/gists/{id} | 获取单条代码片段 +[**getV5GistsIdCommits**](GistsApi.md#getV5GistsIdCommits) | **GET** /v5/gists/{id}/commits | 获取代码片段的commit +[**getV5GistsIdForks**](GistsApi.md#getV5GistsIdForks) | **GET** /v5/gists/{id}/forks | 获取 Fork 了指定代码片段的列表 +[**getV5GistsIdStar**](GistsApi.md#getV5GistsIdStar) | **GET** /v5/gists/{id}/star | 判断代码片段是否已Star +[**getV5GistsPublic**](GistsApi.md#getV5GistsPublic) | **GET** /v5/gists/public | 获取公开的代码片段 +[**getV5GistsStarred**](GistsApi.md#getV5GistsStarred) | **GET** /v5/gists/starred | 获取用户Star的代码片段 +[**getV5UsersUsernameGists**](GistsApi.md#getV5UsersUsernameGists) | **GET** /v5/users/{username}/gists | 获取指定用户的公开代码片段 +[**patchV5GistsGistIdCommentsId**](GistsApi.md#patchV5GistsGistIdCommentsId) | **PATCH** /v5/gists/{gist_id}/comments/{id} | 修改代码片段的评论 +[**patchV5GistsId**](GistsApi.md#patchV5GistsId) | **PATCH** /v5/gists/{id} | 修改代码片段 +[**postV5Gists**](GistsApi.md#postV5Gists) | **POST** /v5/gists | 创建代码片段 +[**postV5GistsGistIdComments**](GistsApi.md#postV5GistsGistIdComments) | **POST** /v5/gists/{gist_id}/comments | 增加代码片段的评论 +[**postV5GistsIdForks**](GistsApi.md#postV5GistsIdForks) | **POST** /v5/gists/{id}/forks | Fork代码片段 +[**putV5GistsIdStar**](GistsApi.md#putV5GistsIdStar) | **PUT** /v5/gists/{id}/star | Star代码片段 + + + +# **deleteV5GistsGistIdCommentsId** +> deleteV5GistsGistIdCommentsId(gistId, id, accessToken) + +删除代码片段的评论 + +删除代码片段的评论 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.GistsApi; + + +GistsApi apiInstance = new GistsApi(); +String gistId = "gistId_example"; // String | 代码片段的ID +Integer id = 56; // Integer | 评论的ID +String accessToken = "accessToken_example"; // String | 用户授权码 +try { + apiInstance.deleteV5GistsGistIdCommentsId(gistId, id, accessToken); +} catch (ApiException e) { + System.err.println("Exception when calling GistsApi#deleteV5GistsGistIdCommentsId"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **gistId** | **String**| 代码片段的ID | + **id** | **Integer**| 评论的ID | + **accessToken** | **String**| 用户授权码 | [optional] + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **deleteV5GistsId** +> deleteV5GistsId(id, accessToken) + +删除指定代码片段 + +删除指定代码片段 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.GistsApi; + + +GistsApi apiInstance = new GistsApi(); +String id = "id_example"; // String | 代码片段的ID +String accessToken = "accessToken_example"; // String | 用户授权码 +try { + apiInstance.deleteV5GistsId(id, accessToken); +} catch (ApiException e) { + System.err.println("Exception when calling GistsApi#deleteV5GistsId"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| 代码片段的ID | + **accessToken** | **String**| 用户授权码 | [optional] + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **deleteV5GistsIdStar** +> deleteV5GistsIdStar(id, accessToken) + +取消Star代码片段 + +取消Star代码片段 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.GistsApi; + + +GistsApi apiInstance = new GistsApi(); +String id = "id_example"; // String | 代码片段的ID +String accessToken = "accessToken_example"; // String | 用户授权码 +try { + apiInstance.deleteV5GistsIdStar(id, accessToken); +} catch (ApiException e) { + System.err.println("Exception when calling GistsApi#deleteV5GistsIdStar"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| 代码片段的ID | + **accessToken** | **String**| 用户授权码 | [optional] + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5Gists** +> List<Code> getV5Gists(accessToken, since, page, perPage) + +获取代码片段 + +获取代码片段 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.GistsApi; + + +GistsApi apiInstance = new GistsApi(); +String accessToken = "accessToken_example"; // String | 用户授权码 +String since = "since_example"; // String | 起始的更新时间,要求时间格式为 ISO 8601 +Integer page = 1; // Integer | 当前的页码 +Integer perPage = 20; // Integer | 每页的数量,最大为 100 +try { + List result = apiInstance.getV5Gists(accessToken, since, page, perPage); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling GistsApi#getV5Gists"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accessToken** | **String**| 用户授权码 | [optional] + **since** | **String**| 起始的更新时间,要求时间格式为 ISO 8601 | [optional] + **page** | **Integer**| 当前的页码 | [optional] [default to 1] + **perPage** | **Integer**| 每页的数量,最大为 100 | [optional] [default to 20] + +### Return type + +[**List<Code>**](Code.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5GistsGistIdComments** +> List<CodeComment> getV5GistsGistIdComments(gistId, accessToken, page, perPage) + +获取代码片段的评论 + +获取代码片段的评论 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.GistsApi; + + +GistsApi apiInstance = new GistsApi(); +String gistId = "gistId_example"; // String | 代码片段的ID +String accessToken = "accessToken_example"; // String | 用户授权码 +Integer page = 1; // Integer | 当前的页码 +Integer perPage = 20; // Integer | 每页的数量,最大为 100 +try { + List result = apiInstance.getV5GistsGistIdComments(gistId, accessToken, page, perPage); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling GistsApi#getV5GistsGistIdComments"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **gistId** | **String**| 代码片段的ID | + **accessToken** | **String**| 用户授权码 | [optional] + **page** | **Integer**| 当前的页码 | [optional] [default to 1] + **perPage** | **Integer**| 每页的数量,最大为 100 | [optional] [default to 20] + +### Return type + +[**List<CodeComment>**](CodeComment.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5GistsGistIdCommentsId** +> CodeComment getV5GistsGistIdCommentsId(gistId, id, accessToken) + +获取单条代码片段的评论 + +获取单条代码片段的评论 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.GistsApi; + + +GistsApi apiInstance = new GistsApi(); +String gistId = "gistId_example"; // String | 代码片段的ID +Integer id = 56; // Integer | 评论的ID +String accessToken = "accessToken_example"; // String | 用户授权码 +try { + CodeComment result = apiInstance.getV5GistsGistIdCommentsId(gistId, id, accessToken); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling GistsApi#getV5GistsGistIdCommentsId"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **gistId** | **String**| 代码片段的ID | + **id** | **Integer**| 评论的ID | + **accessToken** | **String**| 用户授权码 | [optional] + +### Return type + +[**CodeComment**](CodeComment.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5GistsId** +> CodeForksHistory getV5GistsId(id, accessToken) + +获取单条代码片段 + +获取单条代码片段 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.GistsApi; + + +GistsApi apiInstance = new GistsApi(); +String id = "id_example"; // String | 代码片段的ID +String accessToken = "accessToken_example"; // String | 用户授权码 +try { + CodeForksHistory result = apiInstance.getV5GistsId(id, accessToken); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling GistsApi#getV5GistsId"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| 代码片段的ID | + **accessToken** | **String**| 用户授权码 | [optional] + +### Return type + +[**CodeForksHistory**](CodeForksHistory.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5GistsIdCommits** +> CodeForksHistory getV5GistsIdCommits(id, accessToken) + +获取代码片段的commit + +获取代码片段的commit + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.GistsApi; + + +GistsApi apiInstance = new GistsApi(); +String id = "id_example"; // String | 代码片段的ID +String accessToken = "accessToken_example"; // String | 用户授权码 +try { + CodeForksHistory result = apiInstance.getV5GistsIdCommits(id, accessToken); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling GistsApi#getV5GistsIdCommits"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| 代码片段的ID | + **accessToken** | **String**| 用户授权码 | [optional] + +### Return type + +[**CodeForksHistory**](CodeForksHistory.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5GistsIdForks** +> CodeForks getV5GistsIdForks(id, accessToken, page, perPage) + +获取 Fork 了指定代码片段的列表 + +获取 Fork 了指定代码片段的列表 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.GistsApi; + + +GistsApi apiInstance = new GistsApi(); +String id = "id_example"; // String | 代码片段的ID +String accessToken = "accessToken_example"; // String | 用户授权码 +Integer page = 1; // Integer | 当前的页码 +Integer perPage = 20; // Integer | 每页的数量,最大为 100 +try { + CodeForks result = apiInstance.getV5GistsIdForks(id, accessToken, page, perPage); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling GistsApi#getV5GistsIdForks"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| 代码片段的ID | + **accessToken** | **String**| 用户授权码 | [optional] + **page** | **Integer**| 当前的页码 | [optional] [default to 1] + **perPage** | **Integer**| 每页的数量,最大为 100 | [optional] [default to 20] + +### Return type + +[**CodeForks**](CodeForks.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5GistsIdStar** +> getV5GistsIdStar(id, accessToken) + +判断代码片段是否已Star + +判断代码片段是否已Star + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.GistsApi; + + +GistsApi apiInstance = new GistsApi(); +String id = "id_example"; // String | 代码片段的ID +String accessToken = "accessToken_example"; // String | 用户授权码 +try { + apiInstance.getV5GistsIdStar(id, accessToken); +} catch (ApiException e) { + System.err.println("Exception when calling GistsApi#getV5GistsIdStar"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| 代码片段的ID | + **accessToken** | **String**| 用户授权码 | [optional] + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5GistsPublic** +> List<Code> getV5GistsPublic(accessToken, since, page, perPage) + +获取公开的代码片段 + +获取公开的代码片段 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.GistsApi; + + +GistsApi apiInstance = new GistsApi(); +String accessToken = "accessToken_example"; // String | 用户授权码 +String since = "since_example"; // String | 起始的更新时间,要求时间格式为 ISO 8601 +Integer page = 1; // Integer | 当前的页码 +Integer perPage = 20; // Integer | 每页的数量,最大为 100 +try { + List result = apiInstance.getV5GistsPublic(accessToken, since, page, perPage); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling GistsApi#getV5GistsPublic"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accessToken** | **String**| 用户授权码 | [optional] + **since** | **String**| 起始的更新时间,要求时间格式为 ISO 8601 | [optional] + **page** | **Integer**| 当前的页码 | [optional] [default to 1] + **perPage** | **Integer**| 每页的数量,最大为 100 | [optional] [default to 20] + +### Return type + +[**List<Code>**](Code.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5GistsStarred** +> List<Code> getV5GistsStarred(accessToken, since, page, perPage) + +获取用户Star的代码片段 + +获取用户Star的代码片段 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.GistsApi; + + +GistsApi apiInstance = new GistsApi(); +String accessToken = "accessToken_example"; // String | 用户授权码 +String since = "since_example"; // String | 起始的更新时间,要求时间格式为 ISO 8601 +Integer page = 1; // Integer | 当前的页码 +Integer perPage = 20; // Integer | 每页的数量,最大为 100 +try { + List result = apiInstance.getV5GistsStarred(accessToken, since, page, perPage); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling GistsApi#getV5GistsStarred"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accessToken** | **String**| 用户授权码 | [optional] + **since** | **String**| 起始的更新时间,要求时间格式为 ISO 8601 | [optional] + **page** | **Integer**| 当前的页码 | [optional] [default to 1] + **perPage** | **Integer**| 每页的数量,最大为 100 | [optional] [default to 20] + +### Return type + +[**List<Code>**](Code.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5UsersUsernameGists** +> List<Code> getV5UsersUsernameGists(username, accessToken, page, perPage) + +获取指定用户的公开代码片段 + +获取指定用户的公开代码片段 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.GistsApi; + + +GistsApi apiInstance = new GistsApi(); +String username = "username_example"; // String | 用户名(username/login) +String accessToken = "accessToken_example"; // String | 用户授权码 +Integer page = 1; // Integer | 当前的页码 +Integer perPage = 20; // Integer | 每页的数量,最大为 100 +try { + List result = apiInstance.getV5UsersUsernameGists(username, accessToken, page, perPage); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling GistsApi#getV5UsersUsernameGists"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **username** | **String**| 用户名(username/login) | + **accessToken** | **String**| 用户授权码 | [optional] + **page** | **Integer**| 当前的页码 | [optional] [default to 1] + **perPage** | **Integer**| 每页的数量,最大为 100 | [optional] [default to 20] + +### Return type + +[**List<Code>**](Code.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **patchV5GistsGistIdCommentsId** +> CodeComment patchV5GistsGistIdCommentsId(gistId, id, body, accessToken) + +修改代码片段的评论 + +修改代码片段的评论 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.GistsApi; + + +GistsApi apiInstance = new GistsApi(); +String gistId = "gistId_example"; // String | 代码片段的ID +Integer id = 56; // Integer | 评论的ID +String body = "body_example"; // String | 评论内容 +String accessToken = "accessToken_example"; // String | 用户授权码 +try { + CodeComment result = apiInstance.patchV5GistsGistIdCommentsId(gistId, id, body, accessToken); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling GistsApi#patchV5GistsGistIdCommentsId"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **gistId** | **String**| 代码片段的ID | + **id** | **Integer**| 评论的ID | + **body** | **String**| 评论内容 | + **accessToken** | **String**| 用户授权码 | [optional] + +### Return type + +[**CodeComment**](CodeComment.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **patchV5GistsId** +> CodeForksHistory patchV5GistsId(id, accessToken, files, description, _public) + +修改代码片段 + +修改代码片段 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.GistsApi; + + +GistsApi apiInstance = new GistsApi(); +String id = "id_example"; // String | 代码片段的ID +String accessToken = "accessToken_example"; // String | 用户授权码 +File files = new File("/path/to/file.txt"); // File | Hash形式的代码片段文件名以及文件内容。如: { \"file1.txt\": { \"content\": \"String file contents\" } } +String description = "description_example"; // String | 代码片段描述,1~30个字符 +Boolean _public = true; // Boolean | 公开/私有,默认: 私有 +try { + CodeForksHistory result = apiInstance.patchV5GistsId(id, accessToken, files, description, _public); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling GistsApi#patchV5GistsId"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| 代码片段的ID | + **accessToken** | **String**| 用户授权码 | [optional] + **files** | **File**| Hash形式的代码片段文件名以及文件内容。如: { \"file1.txt\": { \"content\": \"String file contents\" } } | [optional] + **description** | **String**| 代码片段描述,1~30个字符 | [optional] + **_public** | **Boolean**| 公开/私有,默认: 私有 | [optional] + +### Return type + +[**CodeForksHistory**](CodeForksHistory.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **postV5Gists** +> List<CodeForksHistory> postV5Gists(files, description, accessToken, _public) + +创建代码片段 + +创建代码片段 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.GistsApi; + + +GistsApi apiInstance = new GistsApi(); +File files = new File("/path/to/file.txt"); // File | Hash形式的代码片段文件名以及文件内容。如: { \"file1.txt\": { \"content\": \"String file contents\" } } +String description = "description_example"; // String | 代码片段描述,1~30个字符 +String accessToken = "accessToken_example"; // String | 用户授权码 +Boolean _public = true; // Boolean | 公开/私有,默认: 私有 +try { + List result = apiInstance.postV5Gists(files, description, accessToken, _public); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling GistsApi#postV5Gists"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **files** | **File**| Hash形式的代码片段文件名以及文件内容。如: { \"file1.txt\": { \"content\": \"String file contents\" } } | + **description** | **String**| 代码片段描述,1~30个字符 | + **accessToken** | **String**| 用户授权码 | [optional] + **_public** | **Boolean**| 公开/私有,默认: 私有 | [optional] + +### Return type + +[**List<CodeForksHistory>**](CodeForksHistory.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **postV5GistsGistIdComments** +> CodeComment postV5GistsGistIdComments(gistId, body, accessToken) + +增加代码片段的评论 + +增加代码片段的评论 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.GistsApi; + + +GistsApi apiInstance = new GistsApi(); +String gistId = "gistId_example"; // String | 代码片段的ID +String body = "body_example"; // String | 评论内容 +String accessToken = "accessToken_example"; // String | 用户授权码 +try { + CodeComment result = apiInstance.postV5GistsGistIdComments(gistId, body, accessToken); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling GistsApi#postV5GistsGistIdComments"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **gistId** | **String**| 代码片段的ID | + **body** | **String**| 评论内容 | + **accessToken** | **String**| 用户授权码 | [optional] + +### Return type + +[**CodeComment**](CodeComment.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **postV5GistsIdForks** +> postV5GistsIdForks(id, accessToken) + +Fork代码片段 + +Fork代码片段 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.GistsApi; + + +GistsApi apiInstance = new GistsApi(); +String id = "id_example"; // String | 代码片段的ID +String accessToken = "accessToken_example"; // String | 用户授权码 +try { + apiInstance.postV5GistsIdForks(id, accessToken); +} catch (ApiException e) { + System.err.println("Exception when calling GistsApi#postV5GistsIdForks"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| 代码片段的ID | + **accessToken** | **String**| 用户授权码 | [optional] + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **putV5GistsIdStar** +> putV5GistsIdStar(id, accessToken) + +Star代码片段 + +Star代码片段 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.GistsApi; + + +GistsApi apiInstance = new GistsApi(); +String id = "id_example"; // String | 代码片段的ID +String accessToken = "accessToken_example"; // String | 用户授权码 +try { + apiInstance.putV5GistsIdStar(id, accessToken); +} catch (ApiException e) { + System.err.println("Exception when calling GistsApi#putV5GistsIdStar"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| 代码片段的ID | + **accessToken** | **String**| 用户授权码 | [optional] + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + diff --git a/docs/GitDataApi.md b/docs/GitDataApi.md new file mode 100644 index 0000000000000000000000000000000000000000..a94b4c37723af82ac3483d80021a71b89fec0b59 --- /dev/null +++ b/docs/GitDataApi.md @@ -0,0 +1,114 @@ +# GitDataApi + +All URIs are relative to *https://gitee.com/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getV5ReposOwnerRepoGitBlobsSha**](GitDataApi.md#getV5ReposOwnerRepoGitBlobsSha) | **GET** /v5/repos/{owner}/{repo}/git/blobs/{sha} | 获取文件Blob +[**getV5ReposOwnerRepoGitTreesSha**](GitDataApi.md#getV5ReposOwnerRepoGitTreesSha) | **GET** /v5/repos/{owner}/{repo}/git/trees/{sha} | 获取目录Tree + + + +# **getV5ReposOwnerRepoGitBlobsSha** +> Blob getV5ReposOwnerRepoGitBlobsSha(owner, repo, sha, accessToken) + +获取文件Blob + +获取文件Blob + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.GitDataApi; + + +GitDataApi apiInstance = new GitDataApi(); +String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path) +String repo = "repo_example"; // String | 仓库路径(path) +String sha = "sha_example"; // String | 文件的 Blob SHA,可通过 [获取仓库具体路径下的内容] API 获取 +String accessToken = "accessToken_example"; // String | 用户授权码 +try { + Blob result = apiInstance.getV5ReposOwnerRepoGitBlobsSha(owner, repo, sha, accessToken); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling GitDataApi#getV5ReposOwnerRepoGitBlobsSha"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| 仓库所属空间地址(企业、组织或个人的地址path) | + **repo** | **String**| 仓库路径(path) | + **sha** | **String**| 文件的 Blob SHA,可通过 [获取仓库具体路径下的内容] API 获取 | + **accessToken** | **String**| 用户授权码 | [optional] + +### Return type + +[**Blob**](Blob.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5ReposOwnerRepoGitTreesSha** +> Tree getV5ReposOwnerRepoGitTreesSha(owner, repo, sha, accessToken, recursive) + +获取目录Tree + +获取目录Tree + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.GitDataApi; + + +GitDataApi apiInstance = new GitDataApi(); +String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path) +String repo = "repo_example"; // String | 仓库路径(path) +String sha = "sha_example"; // String | 可以是分支名(如master)、Commit或者目录Tree的SHA值 +String accessToken = "accessToken_example"; // String | 用户授权码 +Integer recursive = 56; // Integer | 赋值为1递归获取目录 +try { + Tree result = apiInstance.getV5ReposOwnerRepoGitTreesSha(owner, repo, sha, accessToken, recursive); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling GitDataApi#getV5ReposOwnerRepoGitTreesSha"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| 仓库所属空间地址(企业、组织或个人的地址path) | + **repo** | **String**| 仓库路径(path) | + **sha** | **String**| 可以是分支名(如master)、Commit或者目录Tree的SHA值 | + **accessToken** | **String**| 用户授权码 | [optional] + **recursive** | **Integer**| 赋值为1递归获取目录 | [optional] + +### Return type + +[**Tree**](Tree.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + diff --git a/docs/Group.md b/docs/Group.md new file mode 100644 index 0000000000000000000000000000000000000000..20c349422cd74c6654085de520fe849b5180550d --- /dev/null +++ b/docs/Group.md @@ -0,0 +1,17 @@ + +# Group + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Integer** | | [optional] +**login** | **String** | | [optional] +**url** | **String** | | [optional] +**avatarUrl** | **String** | | [optional] +**reposUrl** | **String** | | [optional] +**eventsUrl** | **String** | | [optional] +**membersUrl** | **String** | | [optional] +**description** | **String** | | [optional] + + + diff --git a/docs/GroupDetail.md b/docs/GroupDetail.md new file mode 100644 index 0000000000000000000000000000000000000000..bd66eed6e9fed2356452de768d5cdf4d2ac0171c --- /dev/null +++ b/docs/GroupDetail.md @@ -0,0 +1,29 @@ + +# GroupDetail + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Integer** | | [optional] +**login** | **String** | | [optional] +**url** | **String** | | [optional] +**avatarUrl** | **String** | | [optional] +**reposUrl** | **String** | | [optional] +**eventsUrl** | **String** | | [optional] +**membersUrl** | **String** | | [optional] +**description** | **String** | | [optional] +**name** | **String** | | [optional] +**createdAt** | **String** | | [optional] +**type** | **String** | | [optional] +**location** | **String** | | [optional] +**email** | **String** | | [optional] +**htmlUrl** | **String** | | [optional] +**_public** | **String** | | [optional] +**enterprise** | **String** | | [optional] +**members** | **String** | | [optional] +**publicRepos** | **String** | | [optional] +**privateRepos** | **String** | | [optional] +**owner** | **String** | | [optional] + + + diff --git a/docs/GroupMember.md b/docs/GroupMember.md new file mode 100644 index 0000000000000000000000000000000000000000..0e84fc37a80e78575e693d5cb3701d26d0b09fdf --- /dev/null +++ b/docs/GroupMember.md @@ -0,0 +1,16 @@ + +# GroupMember + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url** | **String** | | [optional] +**active** | **String** | | [optional] +**remark** | **String** | | [optional] +**role** | **String** | | [optional] +**organizationUrl** | **String** | | [optional] +**organization** | [**Group**](Group.md) | | [optional] +**user** | **String** | | [optional] + + + diff --git a/docs/Hook.md b/docs/Hook.md new file mode 100644 index 0000000000000000000000000000000000000000..636b64cf3a9c04ccfb8f48dd63b0b5f89ba0cf51 --- /dev/null +++ b/docs/Hook.md @@ -0,0 +1,21 @@ + +# Hook + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | [optional] +**url** | **String** | | [optional] +**createdAt** | **String** | | [optional] +**password** | **String** | | [optional] +**projectId** | **String** | | [optional] +**result** | **String** | | [optional] +**resultCode** | **String** | | [optional] +**pushEvents** | **String** | | [optional] +**tagPushEvents** | **String** | | [optional] +**issuesEvents** | **String** | | [optional] +**noteEvents** | **String** | | [optional] +**mergeRequestsEvents** | **String** | | [optional] + + + diff --git a/docs/Issue.md b/docs/Issue.md new file mode 100644 index 0000000000000000000000000000000000000000..c100559f65f5902e367bd378c55d4ef77a546b71 --- /dev/null +++ b/docs/Issue.md @@ -0,0 +1,36 @@ + +# Issue + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Integer** | | [optional] +**url** | **String** | | [optional] +**repositoryUrl** | **String** | | [optional] +**labelsUrl** | **String** | | [optional] +**commentsUrl** | **String** | | [optional] +**htmlUrl** | **String** | | [optional] +**parentUrl** | **String** | | [optional] +**number** | **String** | | [optional] +**state** | **String** | | [optional] +**title** | **String** | | [optional] +**body** | **String** | | [optional] +**bodyHtml** | **String** | | [optional] +**user** | [**UserBasic**](UserBasic.md) | | [optional] +**labels** | [**List<Label>**](Label.md) | | [optional] +**assignee** | [**UserBasic**](UserBasic.md) | | [optional] +**collaborators** | [**List<UserBasic>**](UserBasic.md) | | [optional] +**repository** | **String** | | [optional] +**milestone** | [**Milestone**](Milestone.md) | | [optional] +**createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**planStartedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**deadline** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**finishedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**scheduledTime** | **String** | | [optional] +**comments** | **Integer** | | [optional] +**issueType** | **String** | | [optional] +**program** | [**ProgramBasic**](ProgramBasic.md) | | [optional] + + + diff --git a/docs/IssueCommentPostParam.md b/docs/IssueCommentPostParam.md new file mode 100644 index 0000000000000000000000000000000000000000..b0b6b7fcad1da8bcbf9135afa9e260df56e50e3f --- /dev/null +++ b/docs/IssueCommentPostParam.md @@ -0,0 +1,11 @@ + +# IssueCommentPostParam + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accessToken** | **String** | 用户授权码 | [optional] +**body** | **String** | The contents of the comment | [optional] + + + diff --git a/docs/IssueUpdateParam.md b/docs/IssueUpdateParam.md new file mode 100644 index 0000000000000000000000000000000000000000..196e5cfe2e6f7d2d424c57deeda4feba8ade0225 --- /dev/null +++ b/docs/IssueUpdateParam.md @@ -0,0 +1,27 @@ + +# IssueUpdateParam + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accessToken** | **String** | 用户授权码 | [optional] +**repo** | **String** | 仓库路径(path) | [optional] +**title** | **String** | Issue标题 | [optional] +**state** | [**StateEnum**](#StateEnum) | Issue 状态,open(开启的)、progressing(进行中)、closed(关闭的) | [optional] +**body** | **String** | Issue描述 | [optional] +**assignee** | **String** | Issue负责人的username | [optional] +**milestone** | **Integer** | 里程碑序号 | [optional] +**labels** | **String** | 用逗号分开的标签,名称要求长度在 2-20 之间且非特殊字符。如: bug,performance | [optional] +**program** | **String** | 项目ID | [optional] + + + +## Enum: StateEnum +Name | Value +---- | ----- +OPEN | "open" +PROGRESSING | "progressing" +CLOSED | "closed" + + + diff --git a/docs/IssuesApi.md b/docs/IssuesApi.md new file mode 100644 index 0000000000000000000000000000000000000000..9bbb87ee8012125b299b6924a16e3813e564d7ef --- /dev/null +++ b/docs/IssuesApi.md @@ -0,0 +1,1083 @@ +# IssuesApi + +All URIs are relative to *https://gitee.com/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**deleteV5ReposOwnerRepoIssuesCommentsId**](IssuesApi.md#deleteV5ReposOwnerRepoIssuesCommentsId) | **DELETE** /v5/repos/{owner}/{repo}/issues/comments/{id} | 删除Issue某条评论 +[**getV5EnterprisesEnterpriseIssues**](IssuesApi.md#getV5EnterprisesEnterpriseIssues) | **GET** /v5/enterprises/{enterprise}/issues | 获取某个企业的所有Issues +[**getV5EnterprisesEnterpriseIssuesNumber**](IssuesApi.md#getV5EnterprisesEnterpriseIssuesNumber) | **GET** /v5/enterprises/{enterprise}/issues/{number} | 获取企业的某个Issue +[**getV5EnterprisesEnterpriseIssuesNumberComments**](IssuesApi.md#getV5EnterprisesEnterpriseIssuesNumberComments) | **GET** /v5/enterprises/{enterprise}/issues/{number}/comments | 获取企业某个Issue所有评论 +[**getV5EnterprisesEnterpriseIssuesNumberLabels**](IssuesApi.md#getV5EnterprisesEnterpriseIssuesNumberLabels) | **GET** /v5/enterprises/{enterprise}/issues/{number}/labels | 获取企业某个Issue所有标签 +[**getV5Issues**](IssuesApi.md#getV5Issues) | **GET** /v5/issues | 获取当前授权用户的所有Issues +[**getV5OrgsOrgIssues**](IssuesApi.md#getV5OrgsOrgIssues) | **GET** /v5/orgs/{org}/issues | 获取当前用户某个组织的Issues +[**getV5ReposOwnerIssuesNumberOperateLogs**](IssuesApi.md#getV5ReposOwnerIssuesNumberOperateLogs) | **GET** /v5/repos/{owner}/issues/{number}/operate_logs | 获取某个Issue下的操作日志 +[**getV5ReposOwnerRepoIssues**](IssuesApi.md#getV5ReposOwnerRepoIssues) | **GET** /v5/repos/{owner}/{repo}/issues | 仓库的所有Issues +[**getV5ReposOwnerRepoIssuesComments**](IssuesApi.md#getV5ReposOwnerRepoIssuesComments) | **GET** /v5/repos/{owner}/{repo}/issues/comments | 获取仓库所有Issue的评论 +[**getV5ReposOwnerRepoIssuesCommentsId**](IssuesApi.md#getV5ReposOwnerRepoIssuesCommentsId) | **GET** /v5/repos/{owner}/{repo}/issues/comments/{id} | 获取仓库Issue某条评论 +[**getV5ReposOwnerRepoIssuesNumber**](IssuesApi.md#getV5ReposOwnerRepoIssuesNumber) | **GET** /v5/repos/{owner}/{repo}/issues/{number} | 仓库的某个Issue +[**getV5ReposOwnerRepoIssuesNumberComments**](IssuesApi.md#getV5ReposOwnerRepoIssuesNumberComments) | **GET** /v5/repos/{owner}/{repo}/issues/{number}/comments | 获取仓库某个Issue所有的评论 +[**getV5UserIssues**](IssuesApi.md#getV5UserIssues) | **GET** /v5/user/issues | 获取授权用户的所有Issues +[**patchV5ReposOwnerIssuesNumber**](IssuesApi.md#patchV5ReposOwnerIssuesNumber) | **PATCH** /v5/repos/{owner}/issues/{number} | 更新Issue +[**patchV5ReposOwnerRepoIssuesCommentsId**](IssuesApi.md#patchV5ReposOwnerRepoIssuesCommentsId) | **PATCH** /v5/repos/{owner}/{repo}/issues/comments/{id} | 更新Issue某条评论 +[**postV5ReposOwnerIssues**](IssuesApi.md#postV5ReposOwnerIssues) | **POST** /v5/repos/{owner}/issues | 创建Issue +[**postV5ReposOwnerRepoIssuesNumberComments**](IssuesApi.md#postV5ReposOwnerRepoIssuesNumberComments) | **POST** /v5/repos/{owner}/{repo}/issues/{number}/comments | 创建某个Issue评论 + + + +# **deleteV5ReposOwnerRepoIssuesCommentsId** +> deleteV5ReposOwnerRepoIssuesCommentsId(owner, repo, id, accessToken) + +删除Issue某条评论 + +删除Issue某条评论 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.IssuesApi; + + +IssuesApi apiInstance = new IssuesApi(); +String owner = "owner_example"; // String | 仓库所属空间地址(企业、组织或个人的地址path) +String repo = "repo_example"; // String | 仓库路径(path) +Integer id = 56; // Integer | 评论的ID +String accessToken = "accessToken_example"; // String | 用户授权码 +try { + apiInstance.deleteV5ReposOwnerRepoIssuesCommentsId(owner, repo, id, accessToken); +} catch (ApiException e) { + System.err.println("Exception when calling IssuesApi#deleteV5ReposOwnerRepoIssuesCommentsId"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| 仓库所属空间地址(企业、组织或个人的地址path) | + **repo** | **String**| 仓库路径(path) | + **id** | **Integer**| 评论的ID | + **accessToken** | **String**| 用户授权码 | [optional] + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5EnterprisesEnterpriseIssues** +> List<Issue> getV5EnterprisesEnterpriseIssues(enterprise, accessToken, state, labels, sort, direction, since, page, perPage, schedule, deadline, createdAt, finishedAt, milestone, assignee, creator, program) + +获取某个企业的所有Issues + +获取某个企业的所有Issues + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.IssuesApi; + + +IssuesApi apiInstance = new IssuesApi(); +String enterprise = "enterprise_example"; // String | 企业的路径(path/login) +String accessToken = "accessToken_example"; // String | 用户授权码 +String state = "open"; // String | Issue的状态: open(开启的), progressing(进行中), closed(关闭的), rejected(拒绝的)。 默认: open +String labels = "labels_example"; // String | 用逗号分开的标签。如: bug,performance +String sort = "created"; // String | 排序依据: 创建时间(created),更新时间(updated_at)。默认: created_at +String direction = "desc"; // String | 排序方式: 升序(asc),降序(desc)。默认: desc +String since = "since_example"; // String | 起始的更新时间,要求时间格式为 ISO 8601 +Integer page = 1; // Integer | 当前的页码 +Integer perPage = 20; // Integer | 每页的数量,最大为 100 +String schedule = "schedule_example"; // String | 计划开始日期,格式:20181006T173008+80-20181007T173008+80(区间),或者 -20181007T173008+80(小于20181007T173008+80),或者 20181006T173008+80-(大于20181006T173008+80),要求时间格式为20181006T173008+80 +String deadline = "deadline_example"; // String | 计划截止日期,格式同上 +String createdAt = "createdAt_example"; // String | 任务创建时间,格式同上 +String finishedAt = "finishedAt_example"; // String | 任务完成时间,即任务最后一次转为已完成状态的时间点。格式同上 +String milestone = "milestone_example"; // String | 根据里程碑标题。none为没里程碑的,*为所有带里程碑的 +String assignee = "assignee_example"; // String | 用户的username。 none为没指派者, *为所有带有指派者的 +String creator = "creator_example"; // String | 创建Issues的用户username +String program = "program_example"; // String | 所属项目名称。none为没所属有项目的,*为所有带所属项目的 +try { + List result = apiInstance.getV5EnterprisesEnterpriseIssues(enterprise, accessToken, state, labels, sort, direction, since, page, perPage, schedule, deadline, createdAt, finishedAt, milestone, assignee, creator, program); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssuesApi#getV5EnterprisesEnterpriseIssues"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **enterprise** | **String**| 企业的路径(path/login) | + **accessToken** | **String**| 用户授权码 | [optional] + **state** | **String**| Issue的状态: open(开启的), progressing(进行中), closed(关闭的), rejected(拒绝的)。 默认: open | [optional] [default to open] [enum: open, progressing, closed, rejected, all] + **labels** | **String**| 用逗号分开的标签。如: bug,performance | [optional] + **sort** | **String**| 排序依据: 创建时间(created),更新时间(updated_at)。默认: created_at | [optional] [default to created] [enum: created, updated] + **direction** | **String**| 排序方式: 升序(asc),降序(desc)。默认: desc | [optional] [default to desc] [enum: asc, desc] + **since** | **String**| 起始的更新时间,要求时间格式为 ISO 8601 | [optional] + **page** | **Integer**| 当前的页码 | [optional] [default to 1] + **perPage** | **Integer**| 每页的数量,最大为 100 | [optional] [default to 20] + **schedule** | **String**| 计划开始日期,格式:20181006T173008+80-20181007T173008+80(区间),或者 -20181007T173008+80(小于20181007T173008+80),或者 20181006T173008+80-(大于20181006T173008+80),要求时间格式为20181006T173008+80 | [optional] + **deadline** | **String**| 计划截止日期,格式同上 | [optional] + **createdAt** | **String**| 任务创建时间,格式同上 | [optional] + **finishedAt** | **String**| 任务完成时间,即任务最后一次转为已完成状态的时间点。格式同上 | [optional] + **milestone** | **String**| 根据里程碑标题。none为没里程碑的,*为所有带里程碑的 | [optional] + **assignee** | **String**| 用户的username。 none为没指派者, *为所有带有指派者的 | [optional] + **creator** | **String**| 创建Issues的用户username | [optional] + **program** | **String**| 所属项目名称。none为没所属有项目的,*为所有带所属项目的 | [optional] + +### Return type + +[**List<Issue>**](Issue.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5EnterprisesEnterpriseIssuesNumber** +> Issue getV5EnterprisesEnterpriseIssuesNumber(enterprise, number, accessToken) + +获取企业的某个Issue + +获取企业的某个Issue + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.IssuesApi; + + +IssuesApi apiInstance = new IssuesApi(); +String enterprise = "enterprise_example"; // String | 企业的路径(path/login) +String number = "number_example"; // String | Issue 编号(区分大小写,无需添加 # 号) +String accessToken = "accessToken_example"; // String | 用户授权码 +try { + Issue result = apiInstance.getV5EnterprisesEnterpriseIssuesNumber(enterprise, number, accessToken); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssuesApi#getV5EnterprisesEnterpriseIssuesNumber"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **enterprise** | **String**| 企业的路径(path/login) | + **number** | **String**| Issue 编号(区分大小写,无需添加 # 号) | + **accessToken** | **String**| 用户授权码 | [optional] + +### Return type + +[**Issue**](Issue.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5EnterprisesEnterpriseIssuesNumberComments** +> List<Note> getV5EnterprisesEnterpriseIssuesNumberComments(enterprise, number, accessToken, page, perPage) + +获取企业某个Issue所有评论 + +获取企业某个Issue所有评论 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.IssuesApi; + + +IssuesApi apiInstance = new IssuesApi(); +String enterprise = "enterprise_example"; // String | 企业的路径(path/login) +String number = "number_example"; // String | Issue 编号(区分大小写,无需添加 # 号) +String accessToken = "accessToken_example"; // String | 用户授权码 +Integer page = 1; // Integer | 当前的页码 +Integer perPage = 20; // Integer | 每页的数量,最大为 100 +try { + List result = apiInstance.getV5EnterprisesEnterpriseIssuesNumberComments(enterprise, number, accessToken, page, perPage); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssuesApi#getV5EnterprisesEnterpriseIssuesNumberComments"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **enterprise** | **String**| 企业的路径(path/login) | + **number** | **String**| Issue 编号(区分大小写,无需添加 # 号) | + **accessToken** | **String**| 用户授权码 | [optional] + **page** | **Integer**| 当前的页码 | [optional] [default to 1] + **perPage** | **Integer**| 每页的数量,最大为 100 | [optional] [default to 20] + +### Return type + +[**List<Note>**](Note.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, multipart/form-data + - **Accept**: application/json + + +# **getV5EnterprisesEnterpriseIssuesNumberLabels** +> List<Label> getV5EnterprisesEnterpriseIssuesNumberLabels(enterprise, number, accessToken, page, perPage) + +获取企业某个Issue所有标签 + +获取企业某个Issue所有标签 + +### Example +```java +// Import classes: +//import io.swagger.client.ApiException; +//import io.swagger.client.api.IssuesApi; + + +IssuesApi apiInstance = new IssuesApi(); +String enterprise = "enterprise_example"; // String | 企业的路径(path/login) +String number = "number_example"; // String | Issue 编号(区分大小写,无需添加 # 号) +String accessToken = "accessToken_example"; // String | 用户授权码 +Integer page = 1; // Integer | 当前的页码 +Integer perPage = 20; // Integer | 每页的数量,最大为 100 +try { + List