Update to 1.16.0-SNAPSHOT from v1.16.0-dev-116-g274aeb3a9

Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
Andrew Thornton 2021-08-18 17:23:06 +01:00
parent 8e0c6a3520
commit 86e509e656
No known key found for this signature in database
GPG Key ID: 3CDE74631F13A748
182 changed files with 828 additions and 564 deletions

View File

@ -2,21 +2,33 @@
<projectDescription>
<name>java-gitea-api</name>
<comment></comment>
<projects/>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
</natures>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments/>
</buildCommand>
<buildCommand>
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
<arguments/>
</buildCommand>
</buildSpec>
<linkedResources/>
<filteredResources/>
<filteredResources>
<filter>
<id>1629303551481</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>

View File

@ -1,2 +1,13 @@
arguments=
auto.sync=false
build.scans.enabled=false
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
connection.project.dir=
eclipse.preferences.version=1
gradle.user.home=
java.home=
jvm.arguments=
offline.mode=false
override.workspace.settings=false
show.console.view=false
show.executions.view=false

View File

@ -1,7 +1,7 @@
# java-gitea-api
Gitea API.
- API version: 1.14.0&amp;#43;dev-803-gf1da46622
- API version: 1.16.0-SNAPSHOT
This documentation describes the Gitea API.
@ -37,9 +37,9 @@ Add this dependency to your project's POM:
```xml
<dependency>
<groupId>io.gitea</groupId>
<groupId>com.github.zeripath</groupId>
<artifactId>java-gitea-api</artifactId>
<version>1.14.0-SNAPSHOT</version>
<version>1.16.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
```
@ -49,7 +49,7 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:
```groovy
compile "io.swagger:swagger-java-client:1.0.0"
compile "com.github.zeripath:java-gitea-api:1.16.0-SNAPSHOT"
```
### Others
@ -62,7 +62,7 @@ mvn clean package
Then manually install the following JARs:
* `target/swagger-java-client-1.0.0.jar`
* `target/java-gitea-api-1.16.0-SNAPSHOT.jar`
* `target/lib/*.jar`
## Getting Started
@ -83,7 +83,8 @@ public class AdminApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://your-gitea-url/");
// Configure API key authorization: AccessToken
ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
AccessToken.setApiKey("YOUR API KEY");
@ -258,13 +259,14 @@ Class | Method | HTTP request | Description
*OrganizationApi* | [**teamSearch**](docs/OrganizationApi.md#teamSearch) | **GET** /orgs/{org}/teams/search | Search for teams within an organization
*RepositoryApi* | [**createCurrentUserRepo**](docs/RepositoryApi.md#createCurrentUserRepo) | **POST** /user/repos | Create a repository
*RepositoryApi* | [**createFork**](docs/RepositoryApi.md#createFork) | **POST** /repos/{owner}/{repo}/forks | Fork a repository
*RepositoryApi* | [**generateRepo**](docs/RepositoryApi.md#generateRepo) | **POST** /repos/{template_owner}/{template_repo}/generate | Create a repository using a template
*RepositoryApi* | [**getAnnotatedTag**](docs/RepositoryApi.md#getAnnotatedTag) | **GET** /repos/{owner}/{repo}/git/tags/{sha} | Gets the tag object of an annotated tag (not lightweight tags)
*RepositoryApi* | [**getBlob**](docs/RepositoryApi.md#getBlob) | **GET** /repos/{owner}/{repo}/git/blobs/{sha} | Gets the blob of a repository.
*RepositoryApi* | [**getTag**](docs/RepositoryApi.md#getTag) | **GET** /repos/{owner}/{repo}/git/tags/{sha} | Gets the tag object of an annotated tag (not lightweight tags)
*RepositoryApi* | [**getTree**](docs/RepositoryApi.md#getTree) | **GET** /repos/{owner}/{repo}/git/trees/{sha} | Gets the tree of a repository.
*RepositoryApi* | [**listForks**](docs/RepositoryApi.md#listForks) | **GET** /repos/{owner}/{repo}/forks | List a repository&#39;s forks
*RepositoryApi* | [**repoAddCollaborator**](docs/RepositoryApi.md#repoAddCollaborator) | **PUT** /repos/{owner}/{repo}/collaborators/{collaborator} | Add a collaborator to a repository
*RepositoryApi* | [**repoAddTeam**](docs/RepositoryApi.md#repoAddTeam) | **PUT** /repos/{owner}/{repo}/teams/{team} | Add a team to a repository
*RepositoryApi* | [**repoAddTopc**](docs/RepositoryApi.md#repoAddTopc) | **PUT** /repos/{owner}/{repo}/topics/{topic} | Add a topic to a repository
*RepositoryApi* | [**repoAddTopic**](docs/RepositoryApi.md#repoAddTopic) | **PUT** /repos/{owner}/{repo}/topics/{topic} | Add a topic to a repository
*RepositoryApi* | [**repoCheckCollaborator**](docs/RepositoryApi.md#repoCheckCollaborator) | **GET** /repos/{owner}/{repo}/collaborators/{collaborator} | Check if a user is a collaborator of a repository
*RepositoryApi* | [**repoCheckTeam**](docs/RepositoryApi.md#repoCheckTeam) | **GET** /repos/{owner}/{repo}/teams/{team} | Check if a team is assigned to a repository
*RepositoryApi* | [**repoCreateBranch**](docs/RepositoryApi.md#repoCreateBranch) | **POST** /repos/{owner}/{repo}/branches | Create a branch
@ -278,6 +280,7 @@ Class | Method | HTTP request | Description
*RepositoryApi* | [**repoCreateRelease**](docs/RepositoryApi.md#repoCreateRelease) | **POST** /repos/{owner}/{repo}/releases | Create a release
*RepositoryApi* | [**repoCreateReleaseAttachment**](docs/RepositoryApi.md#repoCreateReleaseAttachment) | **POST** /repos/{owner}/{repo}/releases/{id}/assets | Create a release attachment
*RepositoryApi* | [**repoCreateStatus**](docs/RepositoryApi.md#repoCreateStatus) | **POST** /repos/{owner}/{repo}/statuses/{sha} | Create a commit status
*RepositoryApi* | [**repoCreateTag**](docs/RepositoryApi.md#repoCreateTag) | **POST** /repos/{owner}/{repo}/tags | Create a new git tag in a repository
*RepositoryApi* | [**repoDelete**](docs/RepositoryApi.md#repoDelete) | **DELETE** /repos/{owner}/{repo} | Delete a repository
*RepositoryApi* | [**repoDeleteBranch**](docs/RepositoryApi.md#repoDeleteBranch) | **DELETE** /repos/{owner}/{repo}/branches/{branch} | Delete a specific branch from a repository
*RepositoryApi* | [**repoDeleteBranchProtection**](docs/RepositoryApi.md#repoDeleteBranchProtection) | **DELETE** /repos/{owner}/{repo}/branch_protections/{name} | Delete a specific branch protection for the repository
@ -307,6 +310,7 @@ Class | Method | HTTP request | Description
*RepositoryApi* | [**repoGet**](docs/RepositoryApi.md#repoGet) | **GET** /repos/{owner}/{repo} | Get a repository
*RepositoryApi* | [**repoGetAllCommits**](docs/RepositoryApi.md#repoGetAllCommits) | **GET** /repos/{owner}/{repo}/commits | Get a list of all commits from a repository
*RepositoryApi* | [**repoGetArchive**](docs/RepositoryApi.md#repoGetArchive) | **GET** /repos/{owner}/{repo}/archive/{archive} | Get an archive of a repository
*RepositoryApi* | [**repoGetAssignees**](docs/RepositoryApi.md#repoGetAssignees) | **GET** /repos/{owner}/{repo}/assignees | Return all users that have write access and can be assigned to issues
*RepositoryApi* | [**repoGetBranch**](docs/RepositoryApi.md#repoGetBranch) | **GET** /repos/{owner}/{repo}/branches/{branch} | Retrieve a specific branch from a repository, including its effective branch protection
*RepositoryApi* | [**repoGetBranchProtection**](docs/RepositoryApi.md#repoGetBranchProtection) | **GET** /repos/{owner}/{repo}/branch_protections/{name} | Get a specific branch protection for the repository
*RepositoryApi* | [**repoGetByID**](docs/RepositoryApi.md#repoGetByID) | **GET** /repositories/{id} | Get a repository by id
@ -319,14 +323,18 @@ Class | Method | HTTP request | Description
*RepositoryApi* | [**repoGetIssueTemplates**](docs/RepositoryApi.md#repoGetIssueTemplates) | **GET** /repos/{owner}/{repo}/issue_templates | Get available issue templates for a repository
*RepositoryApi* | [**repoGetKey**](docs/RepositoryApi.md#repoGetKey) | **GET** /repos/{owner}/{repo}/keys/{id} | Get a repository&#39;s key by id
*RepositoryApi* | [**repoGetLanguages**](docs/RepositoryApi.md#repoGetLanguages) | **GET** /repos/{owner}/{repo}/languages | Get languages and number of bytes of code written
*RepositoryApi* | [**repoGetNote**](docs/RepositoryApi.md#repoGetNote) | **GET** /repos/{owner}/{repo}/git/notes/{sha} | Get a note corresponding to a single commit from a repository
*RepositoryApi* | [**repoGetPullRequest**](docs/RepositoryApi.md#repoGetPullRequest) | **GET** /repos/{owner}/{repo}/pulls/{index} | Get a pull request
*RepositoryApi* | [**repoGetPullRequestCommits**](docs/RepositoryApi.md#repoGetPullRequestCommits) | **GET** /repos/{owner}/{repo}/pulls/{index}/commits | Get commits for a pull request
*RepositoryApi* | [**repoGetPullReview**](docs/RepositoryApi.md#repoGetPullReview) | **GET** /repos/{owner}/{repo}/pulls/{index}/reviews/{id} | Get a specific review for a pull request
*RepositoryApi* | [**repoGetPullReviewComments**](docs/RepositoryApi.md#repoGetPullReviewComments) | **GET** /repos/{owner}/{repo}/pulls/{index}/reviews/{id}/comments | Get a specific review for a pull request
*RepositoryApi* | [**repoGetRawFile**](docs/RepositoryApi.md#repoGetRawFile) | **GET** /repos/{owner}/{repo}/raw/{filepath} | Get a file from a repository
*RepositoryApi* | [**repoGetRelease**](docs/RepositoryApi.md#repoGetRelease) | **GET** /repos/{owner}/{repo}/releases/{id} | Get a release
*RepositoryApi* | [**repoGetReleaseAttachment**](docs/RepositoryApi.md#repoGetReleaseAttachment) | **GET** /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id} | Get a release attachment
*RepositoryApi* | [**repoGetReleaseByTag**](docs/RepositoryApi.md#repoGetReleaseByTag) | **GET** /repos/{owner}/{repo}/releases/tags/{tag} | Get a release by tag name
*RepositoryApi* | [**repoGetReviewers**](docs/RepositoryApi.md#repoGetReviewers) | **GET** /repos/{owner}/{repo}/reviewers | Return all users that can be requested to review in this repo
*RepositoryApi* | [**repoGetSingleCommit**](docs/RepositoryApi.md#repoGetSingleCommit) | **GET** /repos/{owner}/{repo}/git/commits/{sha} | Get a single commit from a repository
*RepositoryApi* | [**repoGetTag**](docs/RepositoryApi.md#repoGetTag) | **GET** /repos/{owner}/{repo}/tags/{tag} | Get the tag of a repository by tag name
*RepositoryApi* | [**repoListAllGitRefs**](docs/RepositoryApi.md#repoListAllGitRefs) | **GET** /repos/{owner}/{repo}/git/refs | Get specified ref or filtered repository&#39;s refs
*RepositoryApi* | [**repoListBranchProtection**](docs/RepositoryApi.md#repoListBranchProtection) | **GET** /repos/{owner}/{repo}/branch_protections | List branch protections for a repository
*RepositoryApi* | [**repoListBranches**](docs/RepositoryApi.md#repoListBranches) | **GET** /repos/{owner}/{repo}/branches | List a repository&#39;s branches
@ -370,6 +378,9 @@ Class | Method | HTTP request | Description
*SettingsApi* | [**getGeneralRepositorySettings**](docs/SettingsApi.md#getGeneralRepositorySettings) | **GET** /settings/repository | Get instance&#39;s global settings for repositories
*SettingsApi* | [**getGeneralUISettings**](docs/SettingsApi.md#getGeneralUISettings) | **GET** /settings/ui | Get instance&#39;s global settings for ui
*UserApi* | [**createCurrentUserRepo**](docs/UserApi.md#createCurrentUserRepo) | **POST** /user/repos | Create a repository
*UserApi* | [**getUserSettings**](docs/UserApi.md#getUserSettings) | **GET** /user/settings | Get user settings
*UserApi* | [**getVerificationToken**](docs/UserApi.md#getVerificationToken) | **GET** /user/gpg_key_token | Get a Token to verify
*UserApi* | [**updateUserSettings**](docs/UserApi.md#updateUserSettings) | **PATCH** /user/settings | Update user settings
*UserApi* | [**userAddEmail**](docs/UserApi.md#userAddEmail) | **POST** /user/emails | Add email addresses
*UserApi* | [**userCheckFollowing**](docs/UserApi.md#userCheckFollowing) | **GET** /users/{follower}/following/{followee} | Check if one user is following another user
*UserApi* | [**userCreateOAuth2Application**](docs/UserApi.md#userCreateOAuth2Application) | **POST** /user/applications/oauth2 | creates a new OAuth2 application
@ -386,7 +397,7 @@ Class | Method | HTTP request | Description
*UserApi* | [**userCurrentListFollowing**](docs/UserApi.md#userCurrentListFollowing) | **GET** /user/following | List the users that the authenticated user is following
*UserApi* | [**userCurrentListGPGKeys**](docs/UserApi.md#userCurrentListGPGKeys) | **GET** /user/gpg_keys | List the authenticated user&#39;s GPG keys
*UserApi* | [**userCurrentListKeys**](docs/UserApi.md#userCurrentListKeys) | **GET** /user/keys | List the authenticated user&#39;s public keys
*UserApi* | [**userCurrentListRepos**](docs/UserApi.md#userCurrentListRepos) | **GET** /user/repos | List the repos that the authenticated user owns or has access to
*UserApi* | [**userCurrentListRepos**](docs/UserApi.md#userCurrentListRepos) | **GET** /user/repos | List the repos that the authenticated user owns
*UserApi* | [**userCurrentListStarred**](docs/UserApi.md#userCurrentListStarred) | **GET** /user/starred | The repos that the authenticated user has starred
*UserApi* | [**userCurrentListSubscriptions**](docs/UserApi.md#userCurrentListSubscriptions) | **GET** /user/subscriptions | List repositories watched by the authenticated user
*UserApi* | [**userCurrentPostGPGKey**](docs/UserApi.md#userCurrentPostGPGKey) | **POST** /user/gpg_keys | Create a GPG key
@ -415,6 +426,7 @@ Class | Method | HTTP request | Description
*UserApi* | [**userListTeams**](docs/UserApi.md#userListTeams) | **GET** /user/teams | List all the teams a user belongs to
*UserApi* | [**userSearch**](docs/UserApi.md#userSearch) | **GET** /users/search | Search for users
*UserApi* | [**userUpdateOAuth2Application**](docs/UserApi.md#userUpdateOAuth2Application) | **PATCH** /user/applications/oauth2/{id} | update an OAuth2 Application, this includes regenerating the client secret
*UserApi* | [**userVerifyGPGKey**](docs/UserApi.md#userVerifyGPGKey) | **POST** /user/gpg_key_verify | Verify a GPG key
## Documentation for Models
@ -437,6 +449,7 @@ Class | Method | HTTP request | Description
- [CommitStatus](docs/CommitStatus.md)
- [CommitUser](docs/CommitUser.md)
- [ContentsResponse](docs/ContentsResponse.md)
- [CreateAccessTokenOption](docs/CreateAccessTokenOption.md)
- [CreateBranchProtectionOption](docs/CreateBranchProtectionOption.md)
- [CreateBranchRepoOption](docs/CreateBranchRepoOption.md)
- [CreateEmailOption](docs/CreateEmailOption.md)
@ -458,6 +471,7 @@ Class | Method | HTTP request | Description
- [CreateReleaseOption](docs/CreateReleaseOption.md)
- [CreateRepoOption](docs/CreateRepoOption.md)
- [CreateStatusOption](docs/CreateStatusOption.md)
- [CreateTagOption](docs/CreateTagOption.md)
- [CreateTeamOption](docs/CreateTeamOption.md)
- [CreateUserOption](docs/CreateUserOption.md)
- [Cron](docs/Cron.md)
@ -494,6 +508,7 @@ Class | Method | HTTP request | Description
- [GeneralAttachmentSettings](docs/GeneralAttachmentSettings.md)
- [GeneralRepoSettings](docs/GeneralRepoSettings.md)
- [GeneralUISettings](docs/GeneralUISettings.md)
- [GenerateRepoOption](docs/GenerateRepoOption.md)
- [GitBlobResponse](docs/GitBlobResponse.md)
- [GitEntry](docs/GitEntry.md)
- [GitHook](docs/GitHook.md)
@ -514,6 +529,7 @@ Class | Method | HTTP request | Description
- [MigrateRepoForm](docs/MigrateRepoForm.md)
- [MigrateRepoOptions](docs/MigrateRepoOptions.md)
- [Milestone](docs/Milestone.md)
- [Note](docs/Note.md)
- [NotificationCount](docs/NotificationCount.md)
- [NotificationSubject](docs/NotificationSubject.md)
- [NotificationThread](docs/NotificationThread.md)
@ -550,6 +566,8 @@ Class | Method | HTTP request | Description
- [UpdateFileOptions](docs/UpdateFileOptions.md)
- [User](docs/User.md)
- [UserHeatmapData](docs/UserHeatmapData.md)
- [UserSettings](docs/UserSettings.md)
- [UserSettingsOptions](docs/UserSettingsOptions.md)
- [WatchInfo](docs/WatchInfo.md)

View File

@ -0,0 +1,10 @@
# CreateAccessTokenOption
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **String** | | [optional]

View File

@ -23,6 +23,7 @@ MSTEAMS | &quot;msteams&quot;
SLACK | &quot;slack&quot;
TELEGRAM | &quot;telegram&quot;
FEISHU | &quot;feishu&quot;
WECHATWORK | &quot;wechatwork&quot;

View File

@ -3897,7 +3897,7 @@ null (empty response body)
<a name="issueSearchIssues"></a>
# **issueSearchIssues**
> List&lt;Issue&gt; issueSearchIssues(state, labels, milestones, q, priorityRepoId, type, since, before, assigned, created, mentioned, reviewRequested, page, limit)
> List&lt;Issue&gt; issueSearchIssues(state, labels, milestones, q, priorityRepoId, type, since, before, assigned, created, mentioned, reviewRequested, owner, team, page, limit)
Search for issues across the repositories that the user has access to
@ -3966,10 +3966,12 @@ Boolean assigned = true; // Boolean | filter (issues / pulls) assigned to you, d
Boolean created = true; // Boolean | filter (issues / pulls) created by you, default is false
Boolean mentioned = true; // Boolean | filter (issues / pulls) mentioning you, default is false
Boolean reviewRequested = true; // Boolean | filter pulls requesting your review, default is false
String owner = "owner_example"; // String | filter by owner
String team = "team_example"; // String | filter by team (requires organization owner parameter to be provided)
Integer page = 56; // Integer | page number of results to return (1-based)
Integer limit = 56; // Integer | page size of results
try {
List<Issue> result = apiInstance.issueSearchIssues(state, labels, milestones, q, priorityRepoId, type, since, before, assigned, created, mentioned, reviewRequested, page, limit);
List<Issue> result = apiInstance.issueSearchIssues(state, labels, milestones, q, priorityRepoId, type, since, before, assigned, created, mentioned, reviewRequested, owner, team, page, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IssueApi#issueSearchIssues");
@ -3993,6 +3995,8 @@ Name | Type | Description | Notes
**created** | **Boolean**| filter (issues / pulls) created by you, default is false | [optional]
**mentioned** | **Boolean**| filter (issues / pulls) mentioning you, default is false | [optional]
**reviewRequested** | **Boolean**| filter pulls requesting your review, default is false | [optional]
**owner** | **String**| filter by owner | [optional]
**team** | **String**| filter by team (requires organization owner parameter to be provided) | [optional]
**page** | **Integer**| page number of results to return (1-based) | [optional]
**limit** | **Integer**| page size of results | [optional]

11
docs/Note.md Normal file
View File

@ -0,0 +1,11 @@
# Note
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**commit** | [**Commit**](Commit.md) | | [optional]
**message** | **String** | | [optional]

View File

@ -13,7 +13,7 @@ Method | HTTP request | Description
[**listForks**](RepositoryApi.md#listForks) | **GET** /repos/{owner}/{repo}/forks | List a repository&#39;s forks
[**repoAddCollaborator**](RepositoryApi.md#repoAddCollaborator) | **PUT** /repos/{owner}/{repo}/collaborators/{collaborator} | Add a collaborator to a repository
[**repoAddTeam**](RepositoryApi.md#repoAddTeam) | **PUT** /repos/{owner}/{repo}/teams/{team} | Add a team to a repository
[**repoAddTopc**](RepositoryApi.md#repoAddTopc) | **PUT** /repos/{owner}/{repo}/topics/{topic} | Add a topic to a repository
[**repoAddTopic**](RepositoryApi.md#repoAddTopic) | **PUT** /repos/{owner}/{repo}/topics/{topic} | Add a topic to a repository
[**repoCheckCollaborator**](RepositoryApi.md#repoCheckCollaborator) | **GET** /repos/{owner}/{repo}/collaborators/{collaborator} | Check if a user is a collaborator of a repository
[**repoCheckTeam**](RepositoryApi.md#repoCheckTeam) | **GET** /repos/{owner}/{repo}/teams/{team} | Check if a team is assigned to a repository
[**repoCreateBranch**](RepositoryApi.md#repoCreateBranch) | **POST** /repos/{owner}/{repo}/branches | Create a branch
@ -70,6 +70,7 @@ Method | HTTP request | Description
[**repoGetIssueTemplates**](RepositoryApi.md#repoGetIssueTemplates) | **GET** /repos/{owner}/{repo}/issue_templates | Get available issue templates for a repository
[**repoGetKey**](RepositoryApi.md#repoGetKey) | **GET** /repos/{owner}/{repo}/keys/{id} | Get a repository&#39;s key by id
[**repoGetLanguages**](RepositoryApi.md#repoGetLanguages) | **GET** /repos/{owner}/{repo}/languages | Get languages and number of bytes of code written
[**repoGetNote**](RepositoryApi.md#repoGetNote) | **GET** /repos/{owner}/{repo}/git/notes/{sha} | Get a note corresponding to a single commit from a repository
[**repoGetPullRequest**](RepositoryApi.md#repoGetPullRequest) | **GET** /repos/{owner}/{repo}/pulls/{index} | Get a pull request
[**repoGetPullRequestCommits**](RepositoryApi.md#repoGetPullRequestCommits) | **GET** /repos/{owner}/{repo}/pulls/{index}/commits | Get commits for a pull request
[**repoGetPullReview**](RepositoryApi.md#repoGetPullReview) | **GET** /repos/{owner}/{repo}/pulls/{index}/reviews/{id} | Get a specific review for a pull request
@ -953,9 +954,9 @@ null (empty response body)
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
<a name="repoAddTopc"></a>
# **repoAddTopc**
> repoAddTopc(owner, repo, topic)
<a name="repoAddTopic"></a>
# **repoAddTopic**
> repoAddTopic(owner, repo, topic)
Add a topic to a repository
@ -1016,9 +1017,9 @@ String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
String topic = "topic_example"; // String | name of the topic to add
try {
apiInstance.repoAddTopc(owner, repo, topic);
apiInstance.repoAddTopic(owner, repo, topic);
} catch (ApiException e) {
System.err.println("Exception when calling RepositoryApi#repoAddTopc");
System.err.println("Exception when calling RepositoryApi#repoAddTopic");
e.printStackTrace();
}
```
@ -6207,6 +6208,98 @@ Name | Type | Description | Notes
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
### HTTP request headers
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
<a name="repoGetNote"></a>
# **repoGetNote**
> Note repoGetNote(owner, repo, sha)
Get a note corresponding to a single commit from a repository
### Example
```java
// Import classes:
//import io.gitea.ApiClient;
//import io.gitea.ApiException;
//import io.gitea.Configuration;
//import io.gitea.auth.*;
//import io.gitea.api.RepositoryApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: AccessToken
ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
AccessToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AccessToken.setApiKeyPrefix("Token");
// Configure API key authorization: AuthorizationHeaderToken
ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken");
AuthorizationHeaderToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AuthorizationHeaderToken.setApiKeyPrefix("Token");
// Configure HTTP basic authorization: BasicAuth
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
BasicAuth.setUsername("YOUR USERNAME");
BasicAuth.setPassword("YOUR PASSWORD");
// Configure API key authorization: SudoHeader
ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader");
SudoHeader.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//SudoHeader.setApiKeyPrefix("Token");
// Configure API key authorization: SudoParam
ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam");
SudoParam.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//SudoParam.setApiKeyPrefix("Token");
// Configure API key authorization: TOTPHeader
ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
TOTPHeader.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//TOTPHeader.setApiKeyPrefix("Token");
// Configure API key authorization: Token
ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
Token.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Token.setApiKeyPrefix("Token");
RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
String sha = "sha_example"; // String | a git ref or commit sha
try {
Note result = apiInstance.repoGetNote(owner, repo, sha);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RepositoryApi#repoGetNote");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
**sha** | **String**| a git ref or commit sha |
### Return type
[**Note**](Note.md)
### Authorization
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
### HTTP request headers
- **Content-Type**: application/json, text/plain

View File

@ -24,7 +24,7 @@ Method | HTTP request | Description
[**userCurrentListFollowing**](UserApi.md#userCurrentListFollowing) | **GET** /user/following | List the users that the authenticated user is following
[**userCurrentListGPGKeys**](UserApi.md#userCurrentListGPGKeys) | **GET** /user/gpg_keys | List the authenticated user&#39;s GPG keys
[**userCurrentListKeys**](UserApi.md#userCurrentListKeys) | **GET** /user/keys | List the authenticated user&#39;s public keys
[**userCurrentListRepos**](UserApi.md#userCurrentListRepos) | **GET** /user/repos | List the repos that the authenticated user owns or has access to
[**userCurrentListRepos**](UserApi.md#userCurrentListRepos) | **GET** /user/repos | List the repos that the authenticated user owns
[**userCurrentListStarred**](UserApi.md#userCurrentListStarred) | **GET** /user/starred | The repos that the authenticated user has starred
[**userCurrentListSubscriptions**](UserApi.md#userCurrentListSubscriptions) | **GET** /user/subscriptions | List repositories watched by the authenticated user
[**userCurrentPostGPGKey**](UserApi.md#userCurrentPostGPGKey) | **POST** /user/gpg_keys | Create a GPG key
@ -667,7 +667,7 @@ Name | Type | Description | Notes
<a name="userCreateToken"></a>
# **userCreateToken**
> AccessToken userCreateToken(username, accessTokenName)
> AccessToken userCreateToken(username, userCreateToken)
Create an access token
@ -725,9 +725,9 @@ Token.setApiKey("YOUR API KEY");
UserApi apiInstance = new UserApi();
String username = "username_example"; // String | username of user
AccessTokenName accessTokenName = new AccessTokenName(); // AccessTokenName |
CreateAccessTokenOption userCreateToken = new CreateAccessTokenOption(); // CreateAccessTokenOption |
try {
AccessToken result = apiInstance.userCreateToken(username, accessTokenName);
AccessToken result = apiInstance.userCreateToken(username, userCreateToken);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#userCreateToken");
@ -740,7 +740,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**username** | **String**| username of user |
**accessTokenName** | [**AccessTokenName**](AccessTokenName.md)| | [optional]
**userCreateToken** | [**CreateAccessTokenOption**](CreateAccessTokenOption.md)| | [optional]
### Return type
@ -1823,7 +1823,7 @@ Name | Type | Description | Notes
# **userCurrentListRepos**
> List&lt;Repository&gt; userCurrentListRepos(page, limit)
List the repos that the authenticated user owns or has access to
List the repos that the authenticated user owns
### Example
```java

View File

@ -4,7 +4,7 @@
<artifactId>java-gitea-api</artifactId>
<packaging>jar</packaging>
<name>java-gitea-api</name>
<version>1.15.0-SNAPSHOT</version>
<version>1.16.0-SNAPSHOT</version>
<url>https://github.com/zeripath/java-gitea-api</url>
<description>Swagger Java Client for Gitea</description>
<scm>
@ -54,9 +54,13 @@
<generateModels>true</generateModels>
<generateModelTests>true</generateModelTests>
<generateModelDocumentation>true</generateModelDocumentation>
<generateSupportingFiles>false</generateSupportingFiles>
<generateSupportingFiles>true</generateSupportingFiles>
<supportingFilesToGenerate>README.md</supportingFilesToGenerate>
<configOptions>
<hideGenerationTimestamp>true</hideGenerationTimestamp>
<artifactId>java-gitea-api</artifactId>
<groupId>com.github.zeripath</groupId>
<artifactVersion>${project.version}</artifactVersion>
</configOptions>
</configuration>
</plugin>

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.14.0&#43;dev-803-gf1da46622
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.14.0&#43;dev-803-gf1da46622
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@ -87,7 +87,7 @@ public class ApiClient {
json = new JSON();
// Set default User-Agent.
setUserAgent("Swagger-Codegen/1.0.0/java");
setUserAgent("Swagger-Codegen/1.16.0-SNAPSHOT/java");
// Setup authentications (key: authentication name, value: authentication).
authentications = new HashMap<String, Authentication>();

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.14.0&#43;dev-803-gf1da46622
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@ -16,7 +16,7 @@ package io.gitea;
import java.util.Map;
import java.util.List;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2021-03-09T00:25:51.647+03:00")
public class ApiException extends Exception {
private int code = 0;
private Map<String, List<String>> responseHeaders = null;

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.14.0&#43;dev-803-gf1da46622
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.14.0&#43;dev-803-gf1da46622
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@ -13,7 +13,7 @@
package io.gitea;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2021-03-09T00:25:51.647+03:00")
public class Configuration {
private static ApiClient defaultApiClient = new ApiClient();

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.14.0&#43;dev-803-gf1da46622
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.14.0&#43;dev-803-gf1da46622
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.14.0&#43;dev-803-gf1da46622
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@ -13,7 +13,7 @@
package io.gitea;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2021-03-09T00:25:51.647+03:00")
public class Pair {
private String name = "";
private String value = "";

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.14.0&#43;dev-803-gf1da46622
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.14.0&#43;dev-803-gf1da46622
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.14.0&#43;dev-803-gf1da46622
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@ -13,7 +13,7 @@
package io.gitea;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2021-03-09T00:25:51.647+03:00")
public class StringUtil {
/**
* Check if the given array contains the given value (with case-insensitive comparison).

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@ -6132,6 +6132,8 @@ public class IssueApi {
* @param created filter (issues / pulls) created by you, default is false (optional)
* @param mentioned filter (issues / pulls) mentioning you, default is false (optional)
* @param reviewRequested filter pulls requesting your review, default is false (optional)
* @param owner filter by owner (optional)
* @param team filter by team (requires organization owner parameter to be provided) (optional)
* @param page page number of results to return (1-based) (optional)
* @param limit page size of results (optional)
* @param progressListener Progress listener
@ -6139,7 +6141,7 @@ public class IssueApi {
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call issueSearchIssuesCall(String state, String labels, String milestones, String q, Long priorityRepoId, String type, OffsetDateTime since, OffsetDateTime before, Boolean assigned, Boolean created, Boolean mentioned, Boolean reviewRequested, Integer page, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
public com.squareup.okhttp.Call issueSearchIssuesCall(String state, String labels, String milestones, String q, Long priorityRepoId, String type, OffsetDateTime since, OffsetDateTime before, Boolean assigned, Boolean created, Boolean mentioned, Boolean reviewRequested, String owner, String team, Integer page, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
@ -6171,6 +6173,10 @@ public class IssueApi {
localVarQueryParams.addAll(apiClient.parameterToPair("mentioned", mentioned));
if (reviewRequested != null)
localVarQueryParams.addAll(apiClient.parameterToPair("review_requested", reviewRequested));
if (owner != null)
localVarQueryParams.addAll(apiClient.parameterToPair("owner", owner));
if (team != null)
localVarQueryParams.addAll(apiClient.parameterToPair("team", team));
if (page != null)
localVarQueryParams.addAll(apiClient.parameterToPair("page", page));
if (limit != null)
@ -6209,10 +6215,10 @@ public class IssueApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call issueSearchIssuesValidateBeforeCall(String state, String labels, String milestones, String q, Long priorityRepoId, String type, OffsetDateTime since, OffsetDateTime before, Boolean assigned, Boolean created, Boolean mentioned, Boolean reviewRequested, Integer page, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call issueSearchIssuesValidateBeforeCall(String state, String labels, String milestones, String q, Long priorityRepoId, String type, OffsetDateTime since, OffsetDateTime before, Boolean assigned, Boolean created, Boolean mentioned, Boolean reviewRequested, String owner, String team, Integer page, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
com.squareup.okhttp.Call call = issueSearchIssuesCall(state, labels, milestones, q, priorityRepoId, type, since, before, assigned, created, mentioned, reviewRequested, page, limit, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = issueSearchIssuesCall(state, labels, milestones, q, priorityRepoId, type, since, before, assigned, created, mentioned, reviewRequested, owner, team, page, limit, progressListener, progressRequestListener);
return call;
}
@ -6232,13 +6238,15 @@ public class IssueApi {
* @param created filter (issues / pulls) created by you, default is false (optional)
* @param mentioned filter (issues / pulls) mentioning you, default is false (optional)
* @param reviewRequested filter pulls requesting your review, default is false (optional)
* @param owner filter by owner (optional)
* @param team filter by team (requires organization owner parameter to be provided) (optional)
* @param page page number of results to return (1-based) (optional)
* @param limit page size of results (optional)
* @return List&lt;Issue&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public List<Issue> issueSearchIssues(String state, String labels, String milestones, String q, Long priorityRepoId, String type, OffsetDateTime since, OffsetDateTime before, Boolean assigned, Boolean created, Boolean mentioned, Boolean reviewRequested, Integer page, Integer limit) throws ApiException {
ApiResponse<List<Issue>> resp = issueSearchIssuesWithHttpInfo(state, labels, milestones, q, priorityRepoId, type, since, before, assigned, created, mentioned, reviewRequested, page, limit);
public List<Issue> issueSearchIssues(String state, String labels, String milestones, String q, Long priorityRepoId, String type, OffsetDateTime since, OffsetDateTime before, Boolean assigned, Boolean created, Boolean mentioned, Boolean reviewRequested, String owner, String team, Integer page, Integer limit) throws ApiException {
ApiResponse<List<Issue>> resp = issueSearchIssuesWithHttpInfo(state, labels, milestones, q, priorityRepoId, type, since, before, assigned, created, mentioned, reviewRequested, owner, team, page, limit);
return resp.getData();
}
@ -6257,13 +6265,15 @@ public class IssueApi {
* @param created filter (issues / pulls) created by you, default is false (optional)
* @param mentioned filter (issues / pulls) mentioning you, default is false (optional)
* @param reviewRequested filter pulls requesting your review, default is false (optional)
* @param owner filter by owner (optional)
* @param team filter by team (requires organization owner parameter to be provided) (optional)
* @param page page number of results to return (1-based) (optional)
* @param limit page size of results (optional)
* @return ApiResponse&lt;List&lt;Issue&gt;&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<List<Issue>> issueSearchIssuesWithHttpInfo(String state, String labels, String milestones, String q, Long priorityRepoId, String type, OffsetDateTime since, OffsetDateTime before, Boolean assigned, Boolean created, Boolean mentioned, Boolean reviewRequested, Integer page, Integer limit) throws ApiException {
com.squareup.okhttp.Call call = issueSearchIssuesValidateBeforeCall(state, labels, milestones, q, priorityRepoId, type, since, before, assigned, created, mentioned, reviewRequested, page, limit, null, null);
public ApiResponse<List<Issue>> issueSearchIssuesWithHttpInfo(String state, String labels, String milestones, String q, Long priorityRepoId, String type, OffsetDateTime since, OffsetDateTime before, Boolean assigned, Boolean created, Boolean mentioned, Boolean reviewRequested, String owner, String team, Integer page, Integer limit) throws ApiException {
com.squareup.okhttp.Call call = issueSearchIssuesValidateBeforeCall(state, labels, milestones, q, priorityRepoId, type, since, before, assigned, created, mentioned, reviewRequested, owner, team, page, limit, null, null);
Type localVarReturnType = new TypeToken<List<Issue>>(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
@ -6283,13 +6293,15 @@ public class IssueApi {
* @param created filter (issues / pulls) created by you, default is false (optional)
* @param mentioned filter (issues / pulls) mentioning you, default is false (optional)
* @param reviewRequested filter pulls requesting your review, default is false (optional)
* @param owner filter by owner (optional)
* @param team filter by team (requires organization owner parameter to be provided) (optional)
* @param page page number of results to return (1-based) (optional)
* @param limit page size of results (optional)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call issueSearchIssuesAsync(String state, String labels, String milestones, String q, Long priorityRepoId, String type, OffsetDateTime since, OffsetDateTime before, Boolean assigned, Boolean created, Boolean mentioned, Boolean reviewRequested, Integer page, Integer limit, final ApiCallback<List<Issue>> callback) throws ApiException {
public com.squareup.okhttp.Call issueSearchIssuesAsync(String state, String labels, String milestones, String q, Long priorityRepoId, String type, OffsetDateTime since, OffsetDateTime before, Boolean assigned, Boolean created, Boolean mentioned, Boolean reviewRequested, String owner, String team, Integer page, Integer limit, final ApiCallback<List<Issue>> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@ -6310,7 +6322,7 @@ public class IssueApi {
};
}
com.squareup.okhttp.Call call = issueSearchIssuesValidateBeforeCall(state, labels, milestones, q, priorityRepoId, type, since, before, assigned, created, mentioned, reviewRequested, page, limit, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = issueSearchIssuesValidateBeforeCall(state, labels, milestones, q, priorityRepoId, type, since, before, assigned, created, mentioned, reviewRequested, owner, team, page, limit, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken<List<Issue>>(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@ -70,6 +70,7 @@ import io.gitea.model.Hook;
import io.gitea.model.IssueTemplate;
import io.gitea.model.MergePullRequestOption;
import io.gitea.model.MigrateRepoOptions;
import io.gitea.model.Note;
import org.threeten.bp.OffsetDateTime;
import io.gitea.model.PullRequest;
import io.gitea.model.PullReview;
@ -1382,7 +1383,7 @@ public class RepositoryApi {
return call;
}
/**
* Build call for repoAddTopc
* Build call for repoAddTopic
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param topic name of the topic to add (required)
@ -1391,7 +1392,7 @@ public class RepositoryApi {
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call repoAddTopcCall(String owner, String repo, String topic, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
public com.squareup.okhttp.Call repoAddTopicCall(String owner, String repo, String topic, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
@ -1436,25 +1437,25 @@ public class RepositoryApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call repoAddTopcValidateBeforeCall(String owner, String repo, String topic, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call repoAddTopicValidateBeforeCall(String owner, String repo, String topic, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'owner' is set
if (owner == null) {
throw new ApiException("Missing the required parameter 'owner' when calling repoAddTopc(Async)");
throw new ApiException("Missing the required parameter 'owner' when calling repoAddTopic(Async)");
}
// verify the required parameter 'repo' is set
if (repo == null) {
throw new ApiException("Missing the required parameter 'repo' when calling repoAddTopc(Async)");
throw new ApiException("Missing the required parameter 'repo' when calling repoAddTopic(Async)");
}
// verify the required parameter 'topic' is set
if (topic == null) {
throw new ApiException("Missing the required parameter 'topic' when calling repoAddTopc(Async)");
throw new ApiException("Missing the required parameter 'topic' when calling repoAddTopic(Async)");
}
com.squareup.okhttp.Call call = repoAddTopcCall(owner, repo, topic, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = repoAddTopicCall(owner, repo, topic, progressListener, progressRequestListener);
return call;
}
@ -1467,8 +1468,8 @@ public class RepositoryApi {
* @param topic name of the topic to add (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public void repoAddTopc(String owner, String repo, String topic) throws ApiException {
repoAddTopcWithHttpInfo(owner, repo, topic);
public void repoAddTopic(String owner, String repo, String topic) throws ApiException {
repoAddTopicWithHttpInfo(owner, repo, topic);
}
/**
@ -1480,8 +1481,8 @@ public class RepositoryApi {
* @return ApiResponse&lt;Void&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Void> repoAddTopcWithHttpInfo(String owner, String repo, String topic) throws ApiException {
com.squareup.okhttp.Call call = repoAddTopcValidateBeforeCall(owner, repo, topic, null, null);
public ApiResponse<Void> repoAddTopicWithHttpInfo(String owner, String repo, String topic) throws ApiException {
com.squareup.okhttp.Call call = repoAddTopicValidateBeforeCall(owner, repo, topic, null, null);
return apiClient.execute(call);
}
@ -1495,7 +1496,7 @@ public class RepositoryApi {
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call repoAddTopcAsync(String owner, String repo, String topic, final ApiCallback<Void> callback) throws ApiException {
public com.squareup.okhttp.Call repoAddTopicAsync(String owner, String repo, String topic, final ApiCallback<Void> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@ -1516,7 +1517,7 @@ public class RepositoryApi {
};
}
com.squareup.okhttp.Call call = repoAddTopcValidateBeforeCall(owner, repo, topic, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = repoAddTopicValidateBeforeCall(owner, repo, topic, progressListener, progressRequestListener);
apiClient.executeAsync(call, callback);
return call;
}
@ -9499,6 +9500,149 @@ public class RepositoryApi {
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
/**
* Build call for repoGetNote
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param sha a git ref or commit sha (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call repoGetNoteCall(String owner, String repo, String sha, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/repos/{owner}/{repo}/git/notes/{sha}"
.replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString()))
.replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString()))
.replaceAll("\\{" + "sha" + "\\}", apiClient.escapeString(sha.toString()));
List<Pair> localVarQueryParams = new ArrayList<Pair>();
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
final String[] localVarContentTypes = {
"application/json", "text/plain"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
@Override
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build();
}
});
}
String[] localVarAuthNames = new String[] { "AccessToken", "AuthorizationHeaderToken", "BasicAuth", "SudoHeader", "SudoParam", "TOTPHeader", "Token" };
return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call repoGetNoteValidateBeforeCall(String owner, String repo, String sha, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'owner' is set
if (owner == null) {
throw new ApiException("Missing the required parameter 'owner' when calling repoGetNote(Async)");
}
// verify the required parameter 'repo' is set
if (repo == null) {
throw new ApiException("Missing the required parameter 'repo' when calling repoGetNote(Async)");
}
// verify the required parameter 'sha' is set
if (sha == null) {
throw new ApiException("Missing the required parameter 'sha' when calling repoGetNote(Async)");
}
com.squareup.okhttp.Call call = repoGetNoteCall(owner, repo, sha, progressListener, progressRequestListener);
return call;
}
/**
* Get a note corresponding to a single commit from a repository
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param sha a git ref or commit sha (required)
* @return Note
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public Note repoGetNote(String owner, String repo, String sha) throws ApiException {
ApiResponse<Note> resp = repoGetNoteWithHttpInfo(owner, repo, sha);
return resp.getData();
}
/**
* Get a note corresponding to a single commit from a repository
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param sha a git ref or commit sha (required)
* @return ApiResponse&lt;Note&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Note> repoGetNoteWithHttpInfo(String owner, String repo, String sha) throws ApiException {
com.squareup.okhttp.Call call = repoGetNoteValidateBeforeCall(owner, repo, sha, null, null);
Type localVarReturnType = new TypeToken<Note>(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
/**
* Get a note corresponding to a single commit from a repository (asynchronously)
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param sha a git ref or commit sha (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call repoGetNoteAsync(String owner, String repo, String sha, final ApiCallback<Note> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
if (callback != null) {
progressListener = new ProgressResponseBody.ProgressListener() {
@Override
public void update(long bytesRead, long contentLength, boolean done) {
callback.onDownloadProgress(bytesRead, contentLength, done);
}
};
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
@Override
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
callback.onUploadProgress(bytesWritten, contentLength, done);
}
};
}
com.squareup.okhttp.Call call = repoGetNoteValidateBeforeCall(owner, repo, sha, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken<Note>(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
/**
* Build call for repoGetPullRequest
* @param owner owner of the repo (required)

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@ -28,7 +28,7 @@ import java.io.IOException;
import io.gitea.model.AccessToken;
import io.gitea.model.AccessTokenName;
import io.gitea.model.CreateAccessTokenOption;
import io.gitea.model.CreateEmailOption;
import io.gitea.model.CreateGPGKeyOption;
import io.gitea.model.CreateKeyOption;
@ -906,14 +906,14 @@ public class UserApi {
/**
* Build call for userCreateToken
* @param username username of user (required)
* @param accessTokenName (optional)
* @param userCreateToken (optional)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call userCreateTokenCall(String username, AccessTokenName accessTokenName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = accessTokenName;
public com.squareup.okhttp.Call userCreateTokenCall(String username, CreateAccessTokenOption userCreateToken, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = userCreateToken;
// create path and map variables
String localVarPath = "/users/{username}/tokens"
@ -955,7 +955,7 @@ public class UserApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call userCreateTokenValidateBeforeCall(String username, AccessTokenName accessTokenName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call userCreateTokenValidateBeforeCall(String username, CreateAccessTokenOption userCreateToken, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'username' is set
if (username == null) {
@ -963,7 +963,7 @@ public class UserApi {
}
com.squareup.okhttp.Call call = userCreateTokenCall(username, accessTokenName, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = userCreateTokenCall(username, userCreateToken, progressListener, progressRequestListener);
return call;
}
@ -972,12 +972,12 @@ public class UserApi {
* Create an access token
*
* @param username username of user (required)
* @param accessTokenName (optional)
* @param userCreateToken (optional)
* @return AccessToken
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public AccessToken userCreateToken(String username, AccessTokenName accessTokenName) throws ApiException {
ApiResponse<AccessToken> resp = userCreateTokenWithHttpInfo(username, accessTokenName);
public AccessToken userCreateToken(String username, CreateAccessTokenOption userCreateToken) throws ApiException {
ApiResponse<AccessToken> resp = userCreateTokenWithHttpInfo(username, userCreateToken);
return resp.getData();
}
@ -985,12 +985,12 @@ public class UserApi {
* Create an access token
*
* @param username username of user (required)
* @param accessTokenName (optional)
* @param userCreateToken (optional)
* @return ApiResponse&lt;AccessToken&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<AccessToken> userCreateTokenWithHttpInfo(String username, AccessTokenName accessTokenName) throws ApiException {
com.squareup.okhttp.Call call = userCreateTokenValidateBeforeCall(username, accessTokenName, null, null);
public ApiResponse<AccessToken> userCreateTokenWithHttpInfo(String username, CreateAccessTokenOption userCreateToken) throws ApiException {
com.squareup.okhttp.Call call = userCreateTokenValidateBeforeCall(username, userCreateToken, null, null);
Type localVarReturnType = new TypeToken<AccessToken>(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
@ -999,12 +999,12 @@ public class UserApi {
* Create an access token (asynchronously)
*
* @param username username of user (required)
* @param accessTokenName (optional)
* @param userCreateToken (optional)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call userCreateTokenAsync(String username, AccessTokenName accessTokenName, final ApiCallback<AccessToken> callback) throws ApiException {
public com.squareup.okhttp.Call userCreateTokenAsync(String username, CreateAccessTokenOption userCreateToken, final ApiCallback<AccessToken> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@ -1025,7 +1025,7 @@ public class UserApi {
};
}
com.squareup.okhttp.Call call = userCreateTokenValidateBeforeCall(username, accessTokenName, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = userCreateTokenValidateBeforeCall(username, userCreateToken, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken<AccessToken>(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
@ -2580,7 +2580,7 @@ public class UserApi {
}
/**
* List the repos that the authenticated user owns or has access to
* List the repos that the authenticated user owns
*
* @param page page number of results to return (1-based) (optional)
* @param limit page size of results (optional)
@ -2593,7 +2593,7 @@ public class UserApi {
}
/**
* List the repos that the authenticated user owns or has access to
* List the repos that the authenticated user owns
*
* @param page page number of results to return (1-based) (optional)
* @param limit page size of results (optional)
@ -2607,7 +2607,7 @@ public class UserApi {
}
/**
* List the repos that the authenticated user owns or has access to (asynchronously)
* List the repos that the authenticated user owns (asynchronously)
*
* @param page page number of results to return (1-based) (optional)
* @param limit page size of results (optional)

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.14.0&#43;dev-803-gf1da46622
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@ -18,7 +18,7 @@ import io.gitea.Pair;
import java.util.Map;
import java.util.List;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2021-03-09T00:25:51.647+03:00")
public class ApiKeyAuth implements Authentication {
private final String location;
private final String paramName;

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.14.0&#43;dev-803-gf1da46622
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.14.0&#43;dev-803-gf1da46622
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.14.0&#43;dev-803-gf1da46622
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@ -18,7 +18,7 @@ import io.gitea.Pair;
import java.util.Map;
import java.util.List;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2021-03-09T00:25:51.647+03:00")
public class OAuth implements Authentication {
private String accessToken;

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.14.0&#43;dev-803-gf1da46622
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@ -25,14 +25,15 @@ import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* AccessTokenName
* CreateAccessTokenOption options when create access token
*/
@ApiModel(description = "CreateAccessTokenOption options when create access token")
public class AccessTokenName {
public class CreateAccessTokenOption {
@SerializedName("name")
private String name = null;
public AccessTokenName name(String name) {
public CreateAccessTokenOption name(String name) {
this.name = name;
return this;
}
@ -41,7 +42,7 @@ public class AccessTokenName {
* Get name
* @return name
**/
@ApiModelProperty(required = true, value = "")
@ApiModelProperty(value = "")
public String getName() {
return name;
}
@ -59,8 +60,8 @@ public class AccessTokenName {
if (o == null || getClass() != o.getClass()) {
return false;
}
AccessTokenName accessTokenName = (AccessTokenName) o;
return Objects.equals(this.name, accessTokenName.name);
CreateAccessTokenOption createAccessTokenOption = (CreateAccessTokenOption) o;
return Objects.equals(this.name, createAccessTokenOption.name);
}
@Override
@ -72,7 +73,7 @@ public class AccessTokenName {
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AccessTokenName {\n");
sb.append("class CreateAccessTokenOption {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append("}");

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@ -64,7 +64,9 @@ public class CreateHookOption {
TELEGRAM("telegram"),
FEISHU("feishu");
FEISHU("feishu"),
WECHATWORK("wechatwork");
private String value;

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@ -2,7 +2,7 @@
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.15.0-rc2
* OpenAPI spec version: 1.16.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.

Some files were not shown because too many files have changed in this diff Show More