Skip to content

Commit a9f17bc

Browse files
committed
Add 1.17.0-SNAPSHOT swagger
Signed-off-by: Andrew Thornton <[email protected]>
1 parent bbf6ba6 commit a9f17bc

File tree

185 files changed

+4362
-282
lines changed

Some content is hidden

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

185 files changed

+4362
-282
lines changed

docs/Commit.md

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
1212
**htmlUrl** | **String** | | [optional]
1313
**parents** | [**List&lt;CommitMeta&gt;**](CommitMeta.md) | | [optional]
1414
**sha** | **String** | | [optional]
15+
**stats** | [**CommitStats**](CommitStats.md) | | [optional]
1516
**url** | **String** | | [optional]
1617

1718

docs/CommitStats.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
# CommitStats
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**additions** | **Long** | | [optional]
8+
**deletions** | **Long** | | [optional]
9+
**total** | **Long** | | [optional]
10+
11+
12+

docs/CreateHookOption.md

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ SLACK | &quot;slack&quot;
2424
TELEGRAM | &quot;telegram&quot;
2525
FEISHU | &quot;feishu&quot;
2626
WECHATWORK | &quot;wechatwork&quot;
27+
PACKAGIST | &quot;packagist&quot;
2728

2829

2930

docs/EditPullRequestOption.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7+
**allowMaintainerEdit** | **Boolean** | | [optional]
78
**assignee** | **String** | | [optional]
89
**assignees** | **List&lt;String&gt;** | | [optional]
910
**base** | **String** | | [optional]

docs/EditRepoOption.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
88
**allowMergeCommits** | **Boolean** | either &#x60;true&#x60; to allow merging pull requests with a merge commit, or &#x60;false&#x60; to prevent merging pull requests with merge commits. &#x60;has_pull_requests&#x60; must be &#x60;true&#x60;. | [optional]
99
**allowRebase** | **Boolean** | either &#x60;true&#x60; to allow rebase-merging pull requests, or &#x60;false&#x60; to prevent rebase-merging. &#x60;has_pull_requests&#x60; must be &#x60;true&#x60;. | [optional]
1010
**allowRebaseExplicit** | **Boolean** | either &#x60;true&#x60; to allow rebase with explicit merge commits (--no-ff), or &#x60;false&#x60; to prevent rebase with explicit merge commits. &#x60;has_pull_requests&#x60; must be &#x60;true&#x60;. | [optional]
11+
**allowRebaseUpdate** | **Boolean** | either &#x60;true&#x60; to allow updating pull request branch by rebase, or &#x60;false&#x60; to prevent it. &#x60;has_pull_requests&#x60; must be &#x60;true&#x60;. | [optional]
1112
**allowSquashMerge** | **Boolean** | either &#x60;true&#x60; to allow squash-merging pull requests, or &#x60;false&#x60; to prevent squash-merging. &#x60;has_pull_requests&#x60; must be &#x60;true&#x60;. | [optional]
1213
**archived** | **Boolean** | set to &#x60;true&#x60; to archive this repository. | [optional]
1314
**autodetectManualMerge** | **Boolean** | either &#x60;true&#x60; to enable AutodetectManualMerge, or &#x60;false&#x60; to prevent it. &#x60;has_pull_requests&#x60; must be &#x60;true&#x60;, Note: In some special cases, misjudgments can occur. | [optional]

docs/GenerateRepoOption.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**avatar** | **Boolean** | include avatar of the template repo | [optional]
8+
**defaultBranch** | **String** | Default branch of the new repository | [optional]
89
**description** | **String** | Description of the repository to create | [optional]
910
**gitContent** | **Boolean** | include git content of default branch in template repo | [optional]
1011
**gitHooks** | **Boolean** | include git hooks in template repo | [optional]

docs/IssueApi.md

+92
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Method | HTTP request | Description
1313
[**issueCreateIssue**](IssueApi.md#issueCreateIssue) | **POST** /repos/{owner}/{repo}/issues | Create an issue. If using deadline only the date will be taken into account, and time of day ignored.
1414
[**issueCreateLabel**](IssueApi.md#issueCreateLabel) | **POST** /repos/{owner}/{repo}/labels | Create a label
1515
[**issueCreateMilestone**](IssueApi.md#issueCreateMilestone) | **POST** /repos/{owner}/{repo}/milestones | Create a milestone
16+
[**issueDelete**](IssueApi.md#issueDelete) | **DELETE** /repos/{owner}/{repo}/issues/{index} | Delete an issue
1617
[**issueDeleteComment**](IssueApi.md#issueDeleteComment) | **DELETE** /repos/{owner}/{repo}/issues/comments/{id} | Delete a comment
1718
[**issueDeleteCommentDeprecated**](IssueApi.md#issueDeleteCommentDeprecated) | **DELETE** /repos/{owner}/{repo}/issues/{index}/comments/{id} | Delete a comment
1819
[**issueDeleteCommentReaction**](IssueApi.md#issueDeleteCommentReaction) | **DELETE** /repos/{owner}/{repo}/issues/comments/{id}/reactions | Remove a reaction from a comment of an issue
@@ -887,6 +888,97 @@ Name | Type | Description | Notes
887888
- **Content-Type**: application/json
888889
- **Accept**: application/json
889890

891+
<a name="issueDelete"></a>
892+
# **issueDelete**
893+
> issueDelete(owner, repo, index)
894+
895+
Delete an issue
896+
897+
### Example
898+
```java
899+
// Import classes:
900+
//import io.gitea.ApiClient;
901+
//import io.gitea.ApiException;
902+
//import io.gitea.Configuration;
903+
//import io.gitea.auth.*;
904+
//import io.gitea.api.IssueApi;
905+
906+
ApiClient defaultClient = Configuration.getDefaultApiClient();
907+
908+
// Configure API key authorization: AccessToken
909+
ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
910+
AccessToken.setApiKey("YOUR API KEY");
911+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
912+
//AccessToken.setApiKeyPrefix("Token");
913+
914+
// Configure API key authorization: AuthorizationHeaderToken
915+
ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken");
916+
AuthorizationHeaderToken.setApiKey("YOUR API KEY");
917+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
918+
//AuthorizationHeaderToken.setApiKeyPrefix("Token");
919+
920+
// Configure HTTP basic authorization: BasicAuth
921+
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
922+
BasicAuth.setUsername("YOUR USERNAME");
923+
BasicAuth.setPassword("YOUR PASSWORD");
924+
925+
// Configure API key authorization: SudoHeader
926+
ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader");
927+
SudoHeader.setApiKey("YOUR API KEY");
928+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
929+
//SudoHeader.setApiKeyPrefix("Token");
930+
931+
// Configure API key authorization: SudoParam
932+
ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam");
933+
SudoParam.setApiKey("YOUR API KEY");
934+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
935+
//SudoParam.setApiKeyPrefix("Token");
936+
937+
// Configure API key authorization: TOTPHeader
938+
ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
939+
TOTPHeader.setApiKey("YOUR API KEY");
940+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
941+
//TOTPHeader.setApiKeyPrefix("Token");
942+
943+
// Configure API key authorization: Token
944+
ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
945+
Token.setApiKey("YOUR API KEY");
946+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
947+
//Token.setApiKeyPrefix("Token");
948+
949+
IssueApi apiInstance = new IssueApi();
950+
String owner = "owner_example"; // String | owner of the repo
951+
String repo = "repo_example"; // String | name of the repo
952+
Long index = 789L; // Long | index of issue to delete
953+
try {
954+
apiInstance.issueDelete(owner, repo, index);
955+
} catch (ApiException e) {
956+
System.err.println("Exception when calling IssueApi#issueDelete");
957+
e.printStackTrace();
958+
}
959+
```
960+
961+
### Parameters
962+
963+
Name | Type | Description | Notes
964+
------------- | ------------- | ------------- | -------------
965+
**owner** | **String**| owner of the repo |
966+
**repo** | **String**| name of the repo |
967+
**index** | **Long**| index of issue to delete |
968+
969+
### Return type
970+
971+
null (empty response body)
972+
973+
### Authorization
974+
975+
[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)
976+
977+
### HTTP request headers
978+
979+
- **Content-Type**: application/json, text/plain
980+
- **Accept**: application/json, text/html
981+
890982
<a name="issueDeleteComment"></a>
891983
# **issueDeleteComment**
892984
> issueDeleteComment(owner, repo, id)

docs/MergePullRequestOption.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
1111
**deleteBranchAfterMerge** | **Boolean** | | [optional]
1212
**forceMerge** | **Boolean** | | [optional]
1313
**headCommitId** | **String** | | [optional]
14+
**mergeWhenChecksSucceed** | **Boolean** | | [optional]
1415

1516

1617
<a name="DoEnum"></a>

docs/ModelPackage.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
# ModelPackage
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
8+
**creator** | [**User**](User.md) | | [optional]
9+
**id** | **Long** | | [optional]
10+
**name** | **String** | | [optional]
11+
**owner** | [**User**](User.md) | | [optional]
12+
**repository** | [**Repository**](Repository.md) | | [optional]
13+
**type** | **String** | | [optional]
14+
**version** | **String** | | [optional]
15+
16+
17+

docs/OrganizationApi.md

+93
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Method | HTTP request | Description
3838
[**orgListRepos**](OrganizationApi.md#orgListRepos) | **GET** /orgs/{org}/repos | List an organization&#39;s repos
3939
[**orgListTeamMember**](OrganizationApi.md#orgListTeamMember) | **GET** /teams/{id}/members/{username} | List a particular member of team
4040
[**orgListTeamMembers**](OrganizationApi.md#orgListTeamMembers) | **GET** /teams/{id}/members | List a team&#39;s members
41+
[**orgListTeamRepo**](OrganizationApi.md#orgListTeamRepo) | **GET** /teams/{id}/repos/{org}/{repo} | List a particular repo of team
4142
[**orgListTeamRepos**](OrganizationApi.md#orgListTeamRepos) | **GET** /teams/{id}/repos | List a team&#39;s repos
4243
[**orgListTeams**](OrganizationApi.md#orgListTeams) | **GET** /orgs/{org}/teams | List an organization&#39;s teams
4344
[**orgListUserOrgs**](OrganizationApi.md#orgListUserOrgs) | **GET** /users/{username}/orgs | List a user&#39;s organizations
@@ -3100,6 +3101,98 @@ Name | Type | Description | Notes
31003101

31013102
[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)
31023103

3104+
### HTTP request headers
3105+
3106+
- **Content-Type**: application/json, text/plain
3107+
- **Accept**: application/json
3108+
3109+
<a name="orgListTeamRepo"></a>
3110+
# **orgListTeamRepo**
3111+
> Repository orgListTeamRepo(id, org, repo)
3112+
3113+
List a particular repo of team
3114+
3115+
### Example
3116+
```java
3117+
// Import classes:
3118+
//import io.gitea.ApiClient;
3119+
//import io.gitea.ApiException;
3120+
//import io.gitea.Configuration;
3121+
//import io.gitea.auth.*;
3122+
//import io.gitea.api.OrganizationApi;
3123+
3124+
ApiClient defaultClient = Configuration.getDefaultApiClient();
3125+
3126+
// Configure API key authorization: AccessToken
3127+
ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
3128+
AccessToken.setApiKey("YOUR API KEY");
3129+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
3130+
//AccessToken.setApiKeyPrefix("Token");
3131+
3132+
// Configure API key authorization: AuthorizationHeaderToken
3133+
ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken");
3134+
AuthorizationHeaderToken.setApiKey("YOUR API KEY");
3135+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
3136+
//AuthorizationHeaderToken.setApiKeyPrefix("Token");
3137+
3138+
// Configure HTTP basic authorization: BasicAuth
3139+
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
3140+
BasicAuth.setUsername("YOUR USERNAME");
3141+
BasicAuth.setPassword("YOUR PASSWORD");
3142+
3143+
// Configure API key authorization: SudoHeader
3144+
ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader");
3145+
SudoHeader.setApiKey("YOUR API KEY");
3146+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
3147+
//SudoHeader.setApiKeyPrefix("Token");
3148+
3149+
// Configure API key authorization: SudoParam
3150+
ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam");
3151+
SudoParam.setApiKey("YOUR API KEY");
3152+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
3153+
//SudoParam.setApiKeyPrefix("Token");
3154+
3155+
// Configure API key authorization: TOTPHeader
3156+
ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
3157+
TOTPHeader.setApiKey("YOUR API KEY");
3158+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
3159+
//TOTPHeader.setApiKeyPrefix("Token");
3160+
3161+
// Configure API key authorization: Token
3162+
ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
3163+
Token.setApiKey("YOUR API KEY");
3164+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
3165+
//Token.setApiKeyPrefix("Token");
3166+
3167+
OrganizationApi apiInstance = new OrganizationApi();
3168+
Long id = 789L; // Long | id of the team
3169+
String org = "org_example"; // String | organization that owns the repo to list
3170+
String repo = "repo_example"; // String | name of the repo to list
3171+
try {
3172+
Repository result = apiInstance.orgListTeamRepo(id, org, repo);
3173+
System.out.println(result);
3174+
} catch (ApiException e) {
3175+
System.err.println("Exception when calling OrganizationApi#orgListTeamRepo");
3176+
e.printStackTrace();
3177+
}
3178+
```
3179+
3180+
### Parameters
3181+
3182+
Name | Type | Description | Notes
3183+
------------- | ------------- | ------------- | -------------
3184+
**id** | **Long**| id of the team |
3185+
**org** | **String**| organization that owns the repo to list |
3186+
**repo** | **String**| name of the repo to list |
3187+
3188+
### Return type
3189+
3190+
[**Repository**](Repository.md)
3191+
3192+
### Authorization
3193+
3194+
[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)
3195+
31033196
### HTTP request headers
31043197

31053198
- **Content-Type**: application/json, text/plain

0 commit comments

Comments
 (0)