Skip to content

Commit 86e509e

Browse files
committed
Update to 1.16.0-SNAPSHOT from v1.16.0-dev-116-g274aeb3a9
Signed-off-by: Andrew Thornton <[email protected]>
1 parent 8e0c6a3 commit 86e509e

File tree

182 files changed

+824
-560
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

182 files changed

+824
-560
lines changed

.project

+21-9
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,33 @@
22
<projectDescription>
33
<name>java-gitea-api</name>
44
<comment></comment>
5-
<projects/>
6-
<natures>
7-
<nature>org.eclipse.jdt.core.javanature</nature>
8-
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
9-
</natures>
5+
<projects>
6+
</projects>
107
<buildSpec>
118
<buildCommand>
129
<name>org.eclipse.jdt.core.javabuilder</name>
13-
<arguments/>
10+
<arguments>
11+
</arguments>
1412
</buildCommand>
1513
<buildCommand>
1614
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
17-
<arguments/>
15+
<arguments>
16+
</arguments>
1817
</buildCommand>
1918
</buildSpec>
20-
<linkedResources/>
21-
<filteredResources/>
19+
<natures>
20+
<nature>org.eclipse.jdt.core.javanature</nature>
21+
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
22+
</natures>
23+
<filteredResources>
24+
<filter>
25+
<id>1629303551481</id>
26+
<name></name>
27+
<type>30</type>
28+
<matcher>
29+
<id>org.eclipse.core.resources.regexFilterMatcher</id>
30+
<arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
31+
</matcher>
32+
</filter>
33+
</filteredResources>
2234
</projectDescription>
+11
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,13 @@
1+
arguments=
2+
auto.sync=false
3+
build.scans.enabled=false
4+
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
15
connection.project.dir=
26
eclipse.preferences.version=1
7+
gradle.user.home=
8+
java.home=
9+
jvm.arguments=
10+
offline.mode=false
11+
override.workspace.settings=false
12+
show.console.view=false
13+
show.executions.view=false

README.md

+27-9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# java-gitea-api
22

33
Gitea API.
4-
- API version: 1.14.0&amp;#43;dev-803-gf1da46622
4+
- API version: 1.16.0-SNAPSHOT
55

66
This documentation describes the Gitea API.
77

@@ -37,9 +37,9 @@ Add this dependency to your project's POM:
3737

3838
```xml
3939
<dependency>
40-
<groupId>io.gitea</groupId>
40+
<groupId>com.github.zeripath</groupId>
4141
<artifactId>java-gitea-api</artifactId>
42-
<version>1.14.0-SNAPSHOT</version>
42+
<version>1.16.0-SNAPSHOT</version>
4343
<scope>compile</scope>
4444
</dependency>
4545
```
@@ -49,7 +49,7 @@ Add this dependency to your project's POM:
4949
Add this dependency to your project's build file:
5050

5151
```groovy
52-
compile "io.swagger:swagger-java-client:1.0.0"
52+
compile "com.github.zeripath:java-gitea-api:1.16.0-SNAPSHOT"
5353
```
5454

5555
### Others
@@ -62,7 +62,7 @@ mvn clean package
6262

6363
Then manually install the following JARs:
6464

65-
* `target/swagger-java-client-1.0.0.jar`
65+
* `target/java-gitea-api-1.16.0-SNAPSHOT.jar`
6666
* `target/lib/*.jar`
6767

6868
## Getting Started
@@ -83,7 +83,8 @@ public class AdminApiExample {
8383

8484
public static void main(String[] args) {
8585
ApiClient defaultClient = Configuration.getDefaultApiClient();
86-
86+
defaultClient.setBasePath("https://your-gitea-url/");
87+
8788
// Configure API key authorization: AccessToken
8889
ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
8990
AccessToken.setApiKey("YOUR API KEY");
@@ -258,13 +259,14 @@ Class | Method | HTTP request | Description
258259
*OrganizationApi* | [**teamSearch**](docs/OrganizationApi.md#teamSearch) | **GET** /orgs/{org}/teams/search | Search for teams within an organization
259260
*RepositoryApi* | [**createCurrentUserRepo**](docs/RepositoryApi.md#createCurrentUserRepo) | **POST** /user/repos | Create a repository
260261
*RepositoryApi* | [**createFork**](docs/RepositoryApi.md#createFork) | **POST** /repos/{owner}/{repo}/forks | Fork a repository
262+
*RepositoryApi* | [**generateRepo**](docs/RepositoryApi.md#generateRepo) | **POST** /repos/{template_owner}/{template_repo}/generate | Create a repository using a template
263+
*RepositoryApi* | [**getAnnotatedTag**](docs/RepositoryApi.md#getAnnotatedTag) | **GET** /repos/{owner}/{repo}/git/tags/{sha} | Gets the tag object of an annotated tag (not lightweight tags)
261264
*RepositoryApi* | [**getBlob**](docs/RepositoryApi.md#getBlob) | **GET** /repos/{owner}/{repo}/git/blobs/{sha} | Gets the blob of a repository.
262-
*RepositoryApi* | [**getTag**](docs/RepositoryApi.md#getTag) | **GET** /repos/{owner}/{repo}/git/tags/{sha} | Gets the tag object of an annotated tag (not lightweight tags)
263265
*RepositoryApi* | [**getTree**](docs/RepositoryApi.md#getTree) | **GET** /repos/{owner}/{repo}/git/trees/{sha} | Gets the tree of a repository.
264266
*RepositoryApi* | [**listForks**](docs/RepositoryApi.md#listForks) | **GET** /repos/{owner}/{repo}/forks | List a repository&#39;s forks
265267
*RepositoryApi* | [**repoAddCollaborator**](docs/RepositoryApi.md#repoAddCollaborator) | **PUT** /repos/{owner}/{repo}/collaborators/{collaborator} | Add a collaborator to a repository
266268
*RepositoryApi* | [**repoAddTeam**](docs/RepositoryApi.md#repoAddTeam) | **PUT** /repos/{owner}/{repo}/teams/{team} | Add a team to a repository
267-
*RepositoryApi* | [**repoAddTopc**](docs/RepositoryApi.md#repoAddTopc) | **PUT** /repos/{owner}/{repo}/topics/{topic} | Add a topic to a repository
269+
*RepositoryApi* | [**repoAddTopic**](docs/RepositoryApi.md#repoAddTopic) | **PUT** /repos/{owner}/{repo}/topics/{topic} | Add a topic to a repository
268270
*RepositoryApi* | [**repoCheckCollaborator**](docs/RepositoryApi.md#repoCheckCollaborator) | **GET** /repos/{owner}/{repo}/collaborators/{collaborator} | Check if a user is a collaborator of a repository
269271
*RepositoryApi* | [**repoCheckTeam**](docs/RepositoryApi.md#repoCheckTeam) | **GET** /repos/{owner}/{repo}/teams/{team} | Check if a team is assigned to a repository
270272
*RepositoryApi* | [**repoCreateBranch**](docs/RepositoryApi.md#repoCreateBranch) | **POST** /repos/{owner}/{repo}/branches | Create a branch
@@ -278,6 +280,7 @@ Class | Method | HTTP request | Description
278280
*RepositoryApi* | [**repoCreateRelease**](docs/RepositoryApi.md#repoCreateRelease) | **POST** /repos/{owner}/{repo}/releases | Create a release
279281
*RepositoryApi* | [**repoCreateReleaseAttachment**](docs/RepositoryApi.md#repoCreateReleaseAttachment) | **POST** /repos/{owner}/{repo}/releases/{id}/assets | Create a release attachment
280282
*RepositoryApi* | [**repoCreateStatus**](docs/RepositoryApi.md#repoCreateStatus) | **POST** /repos/{owner}/{repo}/statuses/{sha} | Create a commit status
283+
*RepositoryApi* | [**repoCreateTag**](docs/RepositoryApi.md#repoCreateTag) | **POST** /repos/{owner}/{repo}/tags | Create a new git tag in a repository
281284
*RepositoryApi* | [**repoDelete**](docs/RepositoryApi.md#repoDelete) | **DELETE** /repos/{owner}/{repo} | Delete a repository
282285
*RepositoryApi* | [**repoDeleteBranch**](docs/RepositoryApi.md#repoDeleteBranch) | **DELETE** /repos/{owner}/{repo}/branches/{branch} | Delete a specific branch from a repository
283286
*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
307310
*RepositoryApi* | [**repoGet**](docs/RepositoryApi.md#repoGet) | **GET** /repos/{owner}/{repo} | Get a repository
308311
*RepositoryApi* | [**repoGetAllCommits**](docs/RepositoryApi.md#repoGetAllCommits) | **GET** /repos/{owner}/{repo}/commits | Get a list of all commits from a repository
309312
*RepositoryApi* | [**repoGetArchive**](docs/RepositoryApi.md#repoGetArchive) | **GET** /repos/{owner}/{repo}/archive/{archive} | Get an archive of a repository
313+
*RepositoryApi* | [**repoGetAssignees**](docs/RepositoryApi.md#repoGetAssignees) | **GET** /repos/{owner}/{repo}/assignees | Return all users that have write access and can be assigned to issues
310314
*RepositoryApi* | [**repoGetBranch**](docs/RepositoryApi.md#repoGetBranch) | **GET** /repos/{owner}/{repo}/branches/{branch} | Retrieve a specific branch from a repository, including its effective branch protection
311315
*RepositoryApi* | [**repoGetBranchProtection**](docs/RepositoryApi.md#repoGetBranchProtection) | **GET** /repos/{owner}/{repo}/branch_protections/{name} | Get a specific branch protection for the repository
312316
*RepositoryApi* | [**repoGetByID**](docs/RepositoryApi.md#repoGetByID) | **GET** /repositories/{id} | Get a repository by id
@@ -319,14 +323,18 @@ Class | Method | HTTP request | Description
319323
*RepositoryApi* | [**repoGetIssueTemplates**](docs/RepositoryApi.md#repoGetIssueTemplates) | **GET** /repos/{owner}/{repo}/issue_templates | Get available issue templates for a repository
320324
*RepositoryApi* | [**repoGetKey**](docs/RepositoryApi.md#repoGetKey) | **GET** /repos/{owner}/{repo}/keys/{id} | Get a repository&#39;s key by id
321325
*RepositoryApi* | [**repoGetLanguages**](docs/RepositoryApi.md#repoGetLanguages) | **GET** /repos/{owner}/{repo}/languages | Get languages and number of bytes of code written
326+
*RepositoryApi* | [**repoGetNote**](docs/RepositoryApi.md#repoGetNote) | **GET** /repos/{owner}/{repo}/git/notes/{sha} | Get a note corresponding to a single commit from a repository
322327
*RepositoryApi* | [**repoGetPullRequest**](docs/RepositoryApi.md#repoGetPullRequest) | **GET** /repos/{owner}/{repo}/pulls/{index} | Get a pull request
328+
*RepositoryApi* | [**repoGetPullRequestCommits**](docs/RepositoryApi.md#repoGetPullRequestCommits) | **GET** /repos/{owner}/{repo}/pulls/{index}/commits | Get commits for a pull request
323329
*RepositoryApi* | [**repoGetPullReview**](docs/RepositoryApi.md#repoGetPullReview) | **GET** /repos/{owner}/{repo}/pulls/{index}/reviews/{id} | Get a specific review for a pull request
324330
*RepositoryApi* | [**repoGetPullReviewComments**](docs/RepositoryApi.md#repoGetPullReviewComments) | **GET** /repos/{owner}/{repo}/pulls/{index}/reviews/{id}/comments | Get a specific review for a pull request
325331
*RepositoryApi* | [**repoGetRawFile**](docs/RepositoryApi.md#repoGetRawFile) | **GET** /repos/{owner}/{repo}/raw/{filepath} | Get a file from a repository
326332
*RepositoryApi* | [**repoGetRelease**](docs/RepositoryApi.md#repoGetRelease) | **GET** /repos/{owner}/{repo}/releases/{id} | Get a release
327333
*RepositoryApi* | [**repoGetReleaseAttachment**](docs/RepositoryApi.md#repoGetReleaseAttachment) | **GET** /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id} | Get a release attachment
328334
*RepositoryApi* | [**repoGetReleaseByTag**](docs/RepositoryApi.md#repoGetReleaseByTag) | **GET** /repos/{owner}/{repo}/releases/tags/{tag} | Get a release by tag name
335+
*RepositoryApi* | [**repoGetReviewers**](docs/RepositoryApi.md#repoGetReviewers) | **GET** /repos/{owner}/{repo}/reviewers | Return all users that can be requested to review in this repo
329336
*RepositoryApi* | [**repoGetSingleCommit**](docs/RepositoryApi.md#repoGetSingleCommit) | **GET** /repos/{owner}/{repo}/git/commits/{sha} | Get a single commit from a repository
337+
*RepositoryApi* | [**repoGetTag**](docs/RepositoryApi.md#repoGetTag) | **GET** /repos/{owner}/{repo}/tags/{tag} | Get the tag of a repository by tag name
330338
*RepositoryApi* | [**repoListAllGitRefs**](docs/RepositoryApi.md#repoListAllGitRefs) | **GET** /repos/{owner}/{repo}/git/refs | Get specified ref or filtered repository&#39;s refs
331339
*RepositoryApi* | [**repoListBranchProtection**](docs/RepositoryApi.md#repoListBranchProtection) | **GET** /repos/{owner}/{repo}/branch_protections | List branch protections for a repository
332340
*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
370378
*SettingsApi* | [**getGeneralRepositorySettings**](docs/SettingsApi.md#getGeneralRepositorySettings) | **GET** /settings/repository | Get instance&#39;s global settings for repositories
371379
*SettingsApi* | [**getGeneralUISettings**](docs/SettingsApi.md#getGeneralUISettings) | **GET** /settings/ui | Get instance&#39;s global settings for ui
372380
*UserApi* | [**createCurrentUserRepo**](docs/UserApi.md#createCurrentUserRepo) | **POST** /user/repos | Create a repository
381+
*UserApi* | [**getUserSettings**](docs/UserApi.md#getUserSettings) | **GET** /user/settings | Get user settings
382+
*UserApi* | [**getVerificationToken**](docs/UserApi.md#getVerificationToken) | **GET** /user/gpg_key_token | Get a Token to verify
383+
*UserApi* | [**updateUserSettings**](docs/UserApi.md#updateUserSettings) | **PATCH** /user/settings | Update user settings
373384
*UserApi* | [**userAddEmail**](docs/UserApi.md#userAddEmail) | **POST** /user/emails | Add email addresses
374385
*UserApi* | [**userCheckFollowing**](docs/UserApi.md#userCheckFollowing) | **GET** /users/{follower}/following/{followee} | Check if one user is following another user
375386
*UserApi* | [**userCreateOAuth2Application**](docs/UserApi.md#userCreateOAuth2Application) | **POST** /user/applications/oauth2 | creates a new OAuth2 application
@@ -386,7 +397,7 @@ Class | Method | HTTP request | Description
386397
*UserApi* | [**userCurrentListFollowing**](docs/UserApi.md#userCurrentListFollowing) | **GET** /user/following | List the users that the authenticated user is following
387398
*UserApi* | [**userCurrentListGPGKeys**](docs/UserApi.md#userCurrentListGPGKeys) | **GET** /user/gpg_keys | List the authenticated user&#39;s GPG keys
388399
*UserApi* | [**userCurrentListKeys**](docs/UserApi.md#userCurrentListKeys) | **GET** /user/keys | List the authenticated user&#39;s public keys
389-
*UserApi* | [**userCurrentListRepos**](docs/UserApi.md#userCurrentListRepos) | **GET** /user/repos | List the repos that the authenticated user owns or has access to
400+
*UserApi* | [**userCurrentListRepos**](docs/UserApi.md#userCurrentListRepos) | **GET** /user/repos | List the repos that the authenticated user owns
390401
*UserApi* | [**userCurrentListStarred**](docs/UserApi.md#userCurrentListStarred) | **GET** /user/starred | The repos that the authenticated user has starred
391402
*UserApi* | [**userCurrentListSubscriptions**](docs/UserApi.md#userCurrentListSubscriptions) | **GET** /user/subscriptions | List repositories watched by the authenticated user
392403
*UserApi* | [**userCurrentPostGPGKey**](docs/UserApi.md#userCurrentPostGPGKey) | **POST** /user/gpg_keys | Create a GPG key
@@ -415,6 +426,7 @@ Class | Method | HTTP request | Description
415426
*UserApi* | [**userListTeams**](docs/UserApi.md#userListTeams) | **GET** /user/teams | List all the teams a user belongs to
416427
*UserApi* | [**userSearch**](docs/UserApi.md#userSearch) | **GET** /users/search | Search for users
417428
*UserApi* | [**userUpdateOAuth2Application**](docs/UserApi.md#userUpdateOAuth2Application) | **PATCH** /user/applications/oauth2/{id} | update an OAuth2 Application, this includes regenerating the client secret
429+
*UserApi* | [**userVerifyGPGKey**](docs/UserApi.md#userVerifyGPGKey) | **POST** /user/gpg_key_verify | Verify a GPG key
418430

419431

420432
## Documentation for Models
@@ -437,6 +449,7 @@ Class | Method | HTTP request | Description
437449
- [CommitStatus](docs/CommitStatus.md)
438450
- [CommitUser](docs/CommitUser.md)
439451
- [ContentsResponse](docs/ContentsResponse.md)
452+
- [CreateAccessTokenOption](docs/CreateAccessTokenOption.md)
440453
- [CreateBranchProtectionOption](docs/CreateBranchProtectionOption.md)
441454
- [CreateBranchRepoOption](docs/CreateBranchRepoOption.md)
442455
- [CreateEmailOption](docs/CreateEmailOption.md)
@@ -458,6 +471,7 @@ Class | Method | HTTP request | Description
458471
- [CreateReleaseOption](docs/CreateReleaseOption.md)
459472
- [CreateRepoOption](docs/CreateRepoOption.md)
460473
- [CreateStatusOption](docs/CreateStatusOption.md)
474+
- [CreateTagOption](docs/CreateTagOption.md)
461475
- [CreateTeamOption](docs/CreateTeamOption.md)
462476
- [CreateUserOption](docs/CreateUserOption.md)
463477
- [Cron](docs/Cron.md)
@@ -494,6 +508,7 @@ Class | Method | HTTP request | Description
494508
- [GeneralAttachmentSettings](docs/GeneralAttachmentSettings.md)
495509
- [GeneralRepoSettings](docs/GeneralRepoSettings.md)
496510
- [GeneralUISettings](docs/GeneralUISettings.md)
511+
- [GenerateRepoOption](docs/GenerateRepoOption.md)
497512
- [GitBlobResponse](docs/GitBlobResponse.md)
498513
- [GitEntry](docs/GitEntry.md)
499514
- [GitHook](docs/GitHook.md)
@@ -514,6 +529,7 @@ Class | Method | HTTP request | Description
514529
- [MigrateRepoForm](docs/MigrateRepoForm.md)
515530
- [MigrateRepoOptions](docs/MigrateRepoOptions.md)
516531
- [Milestone](docs/Milestone.md)
532+
- [Note](docs/Note.md)
517533
- [NotificationCount](docs/NotificationCount.md)
518534
- [NotificationSubject](docs/NotificationSubject.md)
519535
- [NotificationThread](docs/NotificationThread.md)
@@ -550,6 +566,8 @@ Class | Method | HTTP request | Description
550566
- [UpdateFileOptions](docs/UpdateFileOptions.md)
551567
- [User](docs/User.md)
552568
- [UserHeatmapData](docs/UserHeatmapData.md)
569+
- [UserSettings](docs/UserSettings.md)
570+
- [UserSettingsOptions](docs/UserSettingsOptions.md)
553571
- [WatchInfo](docs/WatchInfo.md)
554572

555573

docs/CreateAccessTokenOption.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
# CreateAccessTokenOption
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**name** | **String** | | [optional]
8+
9+
10+

docs/CreateHookOption.md

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ MSTEAMS | &quot;msteams&quot;
2323
SLACK | &quot;slack&quot;
2424
TELEGRAM | &quot;telegram&quot;
2525
FEISHU | &quot;feishu&quot;
26+
WECHATWORK | &quot;wechatwork&quot;
2627

2728

2829

docs/IssueApi.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -3897,7 +3897,7 @@ null (empty response body)
38973897

38983898
<a name="issueSearchIssues"></a>
38993899
# **issueSearchIssues**
3900-
> List&lt;Issue&gt; issueSearchIssues(state, labels, milestones, q, priorityRepoId, type, since, before, assigned, created, mentioned, reviewRequested, page, limit)
3900+
> List&lt;Issue&gt; issueSearchIssues(state, labels, milestones, q, priorityRepoId, type, since, before, assigned, created, mentioned, reviewRequested, owner, team, page, limit)
39013901
39023902
Search for issues across the repositories that the user has access to
39033903

@@ -3966,10 +3966,12 @@ Boolean assigned = true; // Boolean | filter (issues / pulls) assigned to you, d
39663966
Boolean created = true; // Boolean | filter (issues / pulls) created by you, default is false
39673967
Boolean mentioned = true; // Boolean | filter (issues / pulls) mentioning you, default is false
39683968
Boolean reviewRequested = true; // Boolean | filter pulls requesting your review, default is false
3969+
String owner = "owner_example"; // String | filter by owner
3970+
String team = "team_example"; // String | filter by team (requires organization owner parameter to be provided)
39693971
Integer page = 56; // Integer | page number of results to return (1-based)
39703972
Integer limit = 56; // Integer | page size of results
39713973
try {
3972-
List<Issue> result = apiInstance.issueSearchIssues(state, labels, milestones, q, priorityRepoId, type, since, before, assigned, created, mentioned, reviewRequested, page, limit);
3974+
List<Issue> result = apiInstance.issueSearchIssues(state, labels, milestones, q, priorityRepoId, type, since, before, assigned, created, mentioned, reviewRequested, owner, team, page, limit);
39733975
System.out.println(result);
39743976
} catch (ApiException e) {
39753977
System.err.println("Exception when calling IssueApi#issueSearchIssues");
@@ -3993,6 +3995,8 @@ Name | Type | Description | Notes
39933995
**created** | **Boolean**| filter (issues / pulls) created by you, default is false | [optional]
39943996
**mentioned** | **Boolean**| filter (issues / pulls) mentioning you, default is false | [optional]
39953997
**reviewRequested** | **Boolean**| filter pulls requesting your review, default is false | [optional]
3998+
**owner** | **String**| filter by owner | [optional]
3999+
**team** | **String**| filter by team (requires organization owner parameter to be provided) | [optional]
39964000
**page** | **Integer**| page number of results to return (1-based) | [optional]
39974001
**limit** | **Integer**| page size of results | [optional]
39984002

docs/Note.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
# Note
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**commit** | [**Commit**](Commit.md) | | [optional]
8+
**message** | **String** | | [optional]
9+
10+
11+

0 commit comments

Comments
 (0)