Synchronizing API and documentation updates

This commit is contained in:
gitnexbot
2023-03-29 00:03:34 +00:00
parent 5ca6fed34f
commit db1932a490
12 changed files with 1390 additions and 0 deletions
+568
View File
@@ -12,7 +12,9 @@ Method | HTTP request | Description
[**issueCreateComment**](IssueApi.md#issueCreateComment) | **POST** repos/{owner}/{repo}/issues/{index}/comments | Add a comment to an issue
[**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.
[**issueCreateIssueAttachment**](IssueApi.md#issueCreateIssueAttachment) | **POST** repos/{owner}/{repo}/issues/{index}/assets | Create an issue attachment
[**issueCreateIssueBlocking**](IssueApi.md#issueCreateIssueBlocking) | **POST** repos/{owner}/{repo}/issues/{index}/blocks | Block the issue given in the body by the issue in path
[**issueCreateIssueCommentAttachment**](IssueApi.md#issueCreateIssueCommentAttachment) | **POST** repos/{owner}/{repo}/issues/comments/{id}/assets | Create a comment attachment
[**issueCreateIssueDependencies**](IssueApi.md#issueCreateIssueDependencies) | **POST** repos/{owner}/{repo}/issues/{index}/dependencies | Make the issue in the url depend on the issue in the form.
[**issueCreateLabel**](IssueApi.md#issueCreateLabel) | **POST** repos/{owner}/{repo}/labels | Create a label
[**issueCreateMilestone**](IssueApi.md#issueCreateMilestone) | **POST** repos/{owner}/{repo}/milestones | Create a milestone
[**issueDelete**](IssueApi.md#issueDelete) | **DELETE** repos/{owner}/{repo}/issues/{index} | Delete an issue
@@ -48,12 +50,16 @@ Method | HTTP request | Description
[**issueGetMilestone**](IssueApi.md#issueGetMilestone) | **GET** repos/{owner}/{repo}/milestones/{id} | Get a milestone
[**issueGetMilestonesList**](IssueApi.md#issueGetMilestonesList) | **GET** repos/{owner}/{repo}/milestones | Get all of a repository's opened milestones
[**issueGetRepoComments**](IssueApi.md#issueGetRepoComments) | **GET** repos/{owner}/{repo}/issues/comments | List all comments in a repository
[**issueListBlocks**](IssueApi.md#issueListBlocks) | **GET** repos/{owner}/{repo}/issues/{index}/blocks | List issues that are blocked by this issue
[**issueListIssueAttachments**](IssueApi.md#issueListIssueAttachments) | **GET** repos/{owner}/{repo}/issues/{index}/assets | List issue's attachments
[**issueListIssueCommentAttachments**](IssueApi.md#issueListIssueCommentAttachments) | **GET** repos/{owner}/{repo}/issues/comments/{id}/assets | List comment's attachments
[**issueListIssueDependencies**](IssueApi.md#issueListIssueDependencies) | **GET** repos/{owner}/{repo}/issues/{index}/dependencies | List an issue's dependencies, i.e all issues that block this issue.
[**issueListIssues**](IssueApi.md#issueListIssues) | **GET** repos/{owner}/{repo}/issues | List a repository's issues
[**issueListLabels**](IssueApi.md#issueListLabels) | **GET** repos/{owner}/{repo}/labels | Get all of a repository's labels
[**issuePostCommentReaction**](IssueApi.md#issuePostCommentReaction) | **POST** repos/{owner}/{repo}/issues/comments/{id}/reactions | Add a reaction to a comment of an issue
[**issuePostIssueReaction**](IssueApi.md#issuePostIssueReaction) | **POST** repos/{owner}/{repo}/issues/{index}/reactions | Add a reaction to an issue
[**issueRemoveIssueBlocking**](IssueApi.md#issueRemoveIssueBlocking) | **DELETE** repos/{owner}/{repo}/issues/{index}/blocks | Unblock the issue given in the body by the issue in path
[**issueRemoveIssueDependencies**](IssueApi.md#issueRemoveIssueDependencies) | **DELETE** repos/{owner}/{repo}/issues/{index}/dependencies | Remove an issue dependency
[**issueRemoveLabel**](IssueApi.md#issueRemoveLabel) | **DELETE** repos/{owner}/{repo}/issues/{index}/labels/{id} | Remove a label from an issue
[**issueReplaceLabels**](IssueApi.md#issueReplaceLabels) | **PUT** repos/{owner}/{repo}/issues/{index}/labels | Replace an issue's labels
[**issueResetTime**](IssueApi.md#issueResetTime) | **DELETE** repos/{owner}/{repo}/issues/{index}/times | Reset a tracked time of an issue
@@ -803,6 +809,99 @@ Name | Type | Description | Notes
- **Content-Type**: multipart/form-data
- **Accept**: application/json
<a name="issueCreateIssueBlocking"></a>
# **issueCreateIssueBlocking**
> Issue issueCreateIssueBlocking(owner, repo, index, body)
Block the issue given in the body by the issue in path
### Example
```java
// Import classes:
//import org.gitnex.tea4j.v2.ApiClient;
//import org.gitnex.tea4j.v2.ApiException;
//import org.gitnex.tea4j.v2.Configuration;
//import org.gitnex.tea4j.v2.auth.*;
//import org.gitnex.tea4j.v2.apis.IssueApi;
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");
IssueApi apiInstance = new IssueApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
String index = "index_example"; // String | index of the issue
IssueMeta body = new IssueMeta(); // IssueMeta |
try {
Issue result = apiInstance.issueCreateIssueBlocking(owner, repo, index, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IssueApi#issueCreateIssueBlocking");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
**index** | **String**| index of the issue |
**body** | [**IssueMeta**](IssueMeta.md)| | [optional]
### Return type
[**Issue**](Issue.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
- **Accept**: application/json
<a name="issueCreateIssueCommentAttachment"></a>
# **issueCreateIssueCommentAttachment**
> Attachment issueCreateIssueCommentAttachment(attachment, owner, repo, id, name)
@@ -898,6 +997,99 @@ Name | Type | Description | Notes
- **Content-Type**: multipart/form-data
- **Accept**: application/json
<a name="issueCreateIssueDependencies"></a>
# **issueCreateIssueDependencies**
> Issue issueCreateIssueDependencies(owner, repo, index, body)
Make the issue in the url depend on the issue in the form.
### Example
```java
// Import classes:
//import org.gitnex.tea4j.v2.ApiClient;
//import org.gitnex.tea4j.v2.ApiException;
//import org.gitnex.tea4j.v2.Configuration;
//import org.gitnex.tea4j.v2.auth.*;
//import org.gitnex.tea4j.v2.apis.IssueApi;
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");
IssueApi apiInstance = new IssueApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
String index = "index_example"; // String | index of the issue
IssueMeta body = new IssueMeta(); // IssueMeta |
try {
Issue result = apiInstance.issueCreateIssueDependencies(owner, repo, index, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IssueApi#issueCreateIssueDependencies");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
**index** | **String**| index of the issue |
**body** | [**IssueMeta**](IssueMeta.md)| | [optional]
### Return type
[**Issue**](Issue.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
- **Accept**: application/json
<a name="issueCreateLabel"></a>
# **issueCreateLabel**
> Label issueCreateLabel(owner, repo, body)
@@ -4146,6 +4338,101 @@ 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**: Not defined
- **Accept**: application/json
<a name="issueListBlocks"></a>
# **issueListBlocks**
> List&lt;Issue&gt; issueListBlocks(owner, repo, index, page, limit)
List issues that are blocked by this issue
### Example
```java
// Import classes:
//import org.gitnex.tea4j.v2.ApiClient;
//import org.gitnex.tea4j.v2.ApiException;
//import org.gitnex.tea4j.v2.Configuration;
//import org.gitnex.tea4j.v2.auth.*;
//import org.gitnex.tea4j.v2.apis.IssueApi;
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");
IssueApi apiInstance = new IssueApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
String index = "index_example"; // String | index of the issue
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.issueListBlocks(owner, repo, index, page, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IssueApi#issueListBlocks");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
**index** | **String**| index of the issue |
**page** | **Integer**| page number of results to return (1-based) | [optional]
**limit** | **Integer**| page size of results | [optional]
### Return type
[**List&lt;Issue&gt;**](Issue.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**: Not defined
@@ -4328,6 +4615,101 @@ 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**: Not defined
- **Accept**: application/json
<a name="issueListIssueDependencies"></a>
# **issueListIssueDependencies**
> List&lt;Issue&gt; issueListIssueDependencies(owner, repo, index, page, limit)
List an issue&#x27;s dependencies, i.e all issues that block this issue.
### Example
```java
// Import classes:
//import org.gitnex.tea4j.v2.ApiClient;
//import org.gitnex.tea4j.v2.ApiException;
//import org.gitnex.tea4j.v2.Configuration;
//import org.gitnex.tea4j.v2.auth.*;
//import org.gitnex.tea4j.v2.apis.IssueApi;
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");
IssueApi apiInstance = new IssueApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
String index = "index_example"; // String | index of the issue
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.issueListIssueDependencies(owner, repo, index, page, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IssueApi#issueListIssueDependencies");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
**index** | **String**| index of the issue |
**page** | **Integer**| page number of results to return (1-based) | [optional]
**limit** | **Integer**| page size of results | [optional]
### Return type
[**List&lt;Issue&gt;**](Issue.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**: Not defined
@@ -4725,6 +5107,192 @@ Name | Type | Description | Notes
- **Content-Type**: application/json
- **Accept**: application/json
<a name="issueRemoveIssueBlocking"></a>
# **issueRemoveIssueBlocking**
> Issue issueRemoveIssueBlocking(owner, repo, index, body)
Unblock the issue given in the body by the issue in path
### Example
```java
// Import classes:
//import org.gitnex.tea4j.v2.ApiClient;
//import org.gitnex.tea4j.v2.ApiException;
//import org.gitnex.tea4j.v2.Configuration;
//import org.gitnex.tea4j.v2.auth.*;
//import org.gitnex.tea4j.v2.apis.IssueApi;
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");
IssueApi apiInstance = new IssueApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
String index = "index_example"; // String | index of the issue
IssueMeta body = new IssueMeta(); // IssueMeta |
try {
Issue result = apiInstance.issueRemoveIssueBlocking(owner, repo, index, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IssueApi#issueRemoveIssueBlocking");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
**index** | **String**| index of the issue |
**body** | [**IssueMeta**](IssueMeta.md)| | [optional]
### Return type
[**Issue**](Issue.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
- **Accept**: application/json
<a name="issueRemoveIssueDependencies"></a>
# **issueRemoveIssueDependencies**
> Issue issueRemoveIssueDependencies(owner, repo, index, body)
Remove an issue dependency
### Example
```java
// Import classes:
//import org.gitnex.tea4j.v2.ApiClient;
//import org.gitnex.tea4j.v2.ApiException;
//import org.gitnex.tea4j.v2.Configuration;
//import org.gitnex.tea4j.v2.auth.*;
//import org.gitnex.tea4j.v2.apis.IssueApi;
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");
IssueApi apiInstance = new IssueApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
String index = "index_example"; // String | index of the issue
IssueMeta body = new IssueMeta(); // IssueMeta |
try {
Issue result = apiInstance.issueRemoveIssueDependencies(owner, repo, index, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IssueApi#issueRemoveIssueDependencies");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
**index** | **String**| index of the issue |
**body** | [**IssueMeta**](IssueMeta.md)| | [optional]
### Return type
[**Issue**](Issue.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
- **Accept**: application/json
<a name="issueRemoveLabel"></a>
# **issueRemoveLabel**
> Void issueRemoveLabel(owner, repo, index, id)
+7
View File
@@ -0,0 +1,7 @@
# IssueConfig
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**blankIssuesEnabled** | **Boolean** | | [optional]
**contactLinks** | [**List&lt;IssueConfigContactLink&gt;**](IssueConfigContactLink.md) | | [optional]
+8
View File
@@ -0,0 +1,8 @@
# IssueConfigContactLink
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**about** | **String** | | [optional]
**name** | **String** | | [optional]
**url** | **String** | | [optional]
+7
View File
@@ -0,0 +1,7 @@
# IssueConfigValidation
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**message** | **String** | | [optional]
**valid** | **Boolean** | | [optional]
+8
View File
@@ -0,0 +1,8 @@
# IssueMeta
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**index** | **Long** | | [optional]
**owner** | **String** | | [optional]
**repo** | **String** | | [optional]
+180
View File
@@ -76,6 +76,7 @@ Method | HTTP request | Description
[**repoGetEditorConfig**](RepositoryApi.md#repoGetEditorConfig) | **GET** repos/{owner}/{repo}/editorconfig/{filepath} | Get the EditorConfig definitions of a file in a repository
[**repoGetGitHook**](RepositoryApi.md#repoGetGitHook) | **GET** repos/{owner}/{repo}/hooks/git/{id} | Get a Git hook
[**repoGetHook**](RepositoryApi.md#repoGetHook) | **GET** repos/{owner}/{repo}/hooks/{id} | Get a hook
[**repoGetIssueConfig**](RepositoryApi.md#repoGetIssueConfig) | **GET** repos/{owner}/{repo}/issue_config | Returns the issue config for a repo
[**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&#x27;s key by id
[**repoGetLanguages**](RepositoryApi.md#repoGetLanguages) | **GET** repos/{owner}/{repo}/languages | Get languages and number of bytes of code written
@@ -134,6 +135,7 @@ Method | HTTP request | Description
[**repoUpdateFile**](RepositoryApi.md#repoUpdateFile) | **PUT** repos/{owner}/{repo}/contents/{filepath} | Update a file in a repository
[**repoUpdatePullRequest**](RepositoryApi.md#repoUpdatePullRequest) | **POST** repos/{owner}/{repo}/pulls/{index}/update | Merge PR&#x27;s baseBranch into headBranch
[**repoUpdateTopics**](RepositoryApi.md#repoUpdateTopics) | **PUT** repos/{owner}/{repo}/topics | Replace list of topics for a repository
[**repoValidateIssueConfig**](RepositoryApi.md#repoValidateIssueConfig) | **GET** repos/{owner}/{repo}/issue_config/validate | Returns the validation information for a issue config
[**topicSearch**](RepositoryApi.md#topicSearch) | **GET** topics/search | search topics via keyword
[**userCurrentCheckSubscription**](RepositoryApi.md#userCurrentCheckSubscription) | **GET** repos/{owner}/{repo}/subscription | Check if the current user is watching a repo
[**userCurrentDeleteSubscription**](RepositoryApi.md#userCurrentDeleteSubscription) | **DELETE** repos/{owner}/{repo}/subscription | Unwatch a repo
@@ -6741,6 +6743,95 @@ 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**: Not defined
- **Accept**: application/json
<a name="repoGetIssueConfig"></a>
# **repoGetIssueConfig**
> IssueConfig repoGetIssueConfig(owner, repo)
Returns the issue config for a repo
### Example
```java
// Import classes:
//import org.gitnex.tea4j.v2.ApiClient;
//import org.gitnex.tea4j.v2.ApiException;
//import org.gitnex.tea4j.v2.Configuration;
//import org.gitnex.tea4j.v2.auth.*;
//import org.gitnex.tea4j.v2.apis.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
try {
IssueConfig result = apiInstance.repoGetIssueConfig(owner, repo);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RepositoryApi#repoGetIssueConfig");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
### Return type
[**IssueConfig**](IssueConfig.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**: Not defined
@@ -12134,6 +12225,95 @@ Name | Type | Description | Notes
- **Content-Type**: application/json, text/plain
- **Accept**: Not defined
<a name="repoValidateIssueConfig"></a>
# **repoValidateIssueConfig**
> IssueConfigValidation repoValidateIssueConfig(owner, repo)
Returns the validation information for a issue config
### Example
```java
// Import classes:
//import org.gitnex.tea4j.v2.ApiClient;
//import org.gitnex.tea4j.v2.ApiException;
//import org.gitnex.tea4j.v2.Configuration;
//import org.gitnex.tea4j.v2.auth.*;
//import org.gitnex.tea4j.v2.apis.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
try {
IssueConfigValidation result = apiInstance.repoValidateIssueConfig(owner, repo);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RepositoryApi#repoValidateIssueConfig");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
### Return type
[**IssueConfigValidation**](IssueConfigValidation.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**: Not defined
- **Accept**: application/json
<a name="topicSearch"></a>
# **topicSearch**
> List&lt;TopicResponse&gt; topicSearch(q, page, limit)
@@ -21,6 +21,7 @@ import org.gitnex.tea4j.v2.models.EditReactionOption;
import org.gitnex.tea4j.v2.models.Issue;
import org.gitnex.tea4j.v2.models.IssueDeadline;
import org.gitnex.tea4j.v2.models.IssueLabelsOption;
import org.gitnex.tea4j.v2.models.IssueMeta;
import org.gitnex.tea4j.v2.models.Label;
import org.gitnex.tea4j.v2.models.Milestone;
import org.gitnex.tea4j.v2.models.Reaction;
@@ -162,6 +163,23 @@ public interface IssueApi {
@retrofit2.http.Path("index") Long index,
@retrofit2.http.Query("name") String name);
/**
* Block the issue given in the body by the issue in path
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param index index of the issue (required)
* @param body (optional)
* @return Call&lt;Issue&gt;
*/
@Headers({"Content-Type:application/json"})
@POST("repos/{owner}/{repo}/issues/{index}/blocks")
Call<Issue> issueCreateIssueBlocking(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("index") String index,
@retrofit2.http.Body IssueMeta body);
/**
* Create a comment attachment
*
@@ -181,6 +199,23 @@ public interface IssueApi {
@retrofit2.http.Path("id") Long id,
@retrofit2.http.Query("name") String name);
/**
* Make the issue in the url depend on the issue in the form.
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param index index of the issue (required)
* @param body (optional)
* @return Call&lt;Issue&gt;
*/
@Headers({"Content-Type:application/json"})
@POST("repos/{owner}/{repo}/issues/{index}/dependencies")
Call<Issue> issueCreateIssueDependencies(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("index") String index,
@retrofit2.http.Body IssueMeta body);
/**
* Create a label
*
@@ -760,6 +795,24 @@ public interface IssueApi {
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit);
/**
* List issues that are blocked by this issue
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param index index of the issue (required)
* @param page page number of results to return (1-based) (optional)
* @param limit page size of results (optional)
* @return Call&lt;List&lt;Issue&gt;&gt;
*/
@GET("repos/{owner}/{repo}/issues/{index}/blocks")
Call<List<Issue>> issueListBlocks(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("index") String index,
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit);
/**
* List issue&#x27;s attachments
*
@@ -788,6 +841,24 @@ public interface IssueApi {
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("id") Long id);
/**
* List an issue&#x27;s dependencies, i.e all issues that block this issue.
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param index index of the issue (required)
* @param page page number of results to return (1-based) (optional)
* @param limit page size of results (optional)
* @return Call&lt;List&lt;Issue&gt;&gt;
*/
@GET("repos/{owner}/{repo}/issues/{index}/dependencies")
Call<List<Issue>> issueListIssueDependencies(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("index") String index,
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit);
/**
* List a repository&#x27;s issues
*
@@ -879,6 +950,40 @@ public interface IssueApi {
@retrofit2.http.Path("index") Long index,
@retrofit2.http.Body EditReactionOption body);
/**
* Unblock the issue given in the body by the issue in path
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param index index of the issue (required)
* @param body (optional)
* @return Call&lt;Issue&gt;
*/
@Headers({"Content-Type:application/json"})
@DELETE("repos/{owner}/{repo}/issues/{index}/blocks")
Call<Issue> issueRemoveIssueBlocking(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("index") String index,
@retrofit2.http.Body IssueMeta body);
/**
* Remove an issue dependency
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param index index of the issue (required)
* @param body (optional)
* @return Call&lt;Issue&gt;
*/
@Headers({"Content-Type:application/json"})
@DELETE("repos/{owner}/{repo}/issues/{index}/dependencies")
Call<Issue> issueRemoveIssueDependencies(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("index") String index,
@retrofit2.http.Body IssueMeta body);
/**
* Remove a label from an issue
*
@@ -46,6 +46,8 @@ import org.gitnex.tea4j.v2.models.GitBlobResponse;
import org.gitnex.tea4j.v2.models.GitHook;
import org.gitnex.tea4j.v2.models.GitTreeResponse;
import org.gitnex.tea4j.v2.models.Hook;
import org.gitnex.tea4j.v2.models.IssueConfig;
import org.gitnex.tea4j.v2.models.IssueConfigValidation;
import org.gitnex.tea4j.v2.models.IssueTemplate;
import org.gitnex.tea4j.v2.models.MergePullRequestOption;
import org.gitnex.tea4j.v2.models.MigrateRepoOptions;
@@ -1173,6 +1175,17 @@ public interface RepositoryApi {
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("id") Long id);
/**
* Returns the issue config for a repo
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @return Call&lt;IssueConfig&gt;
*/
@GET("repos/{owner}/{repo}/issue_config")
Call<IssueConfig> repoGetIssueConfig(
@retrofit2.http.Path("owner") String owner, @retrofit2.http.Path("repo") String repo);
/**
* Get available issue templates for a repository
*
@@ -2105,6 +2118,17 @@ public interface RepositoryApi {
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Body RepoTopicOptions body);
/**
* Returns the validation information for a issue config
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @return Call&lt;IssueConfigValidation&gt;
*/
@GET("repos/{owner}/{repo}/issue_config/validate")
Call<IssueConfigValidation> repoValidateIssueConfig(
@retrofit2.http.Path("owner") String owner, @retrofit2.http.Path("repo") String repo);
/**
* search topics via keyword
*
@@ -0,0 +1,116 @@
/*
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: {{AppVer | JSEscape | Safe}}
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package org.gitnex.tea4j.v2.models;
import com.google.gson.annotations.SerializedName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/** IssueConfig */
public class IssueConfig implements Serializable {
private static final long serialVersionUID = 1L;
@SerializedName("blank_issues_enabled")
private Boolean blankIssuesEnabled = null;
@SerializedName("contact_links")
private List<IssueConfigContactLink> contactLinks = null;
public IssueConfig blankIssuesEnabled(Boolean blankIssuesEnabled) {
this.blankIssuesEnabled = blankIssuesEnabled;
return this;
}
/**
* Get blankIssuesEnabled
*
* @return blankIssuesEnabled
*/
@Schema(description = "")
public Boolean isBlankIssuesEnabled() {
return blankIssuesEnabled;
}
public void setBlankIssuesEnabled(Boolean blankIssuesEnabled) {
this.blankIssuesEnabled = blankIssuesEnabled;
}
public IssueConfig contactLinks(List<IssueConfigContactLink> contactLinks) {
this.contactLinks = contactLinks;
return this;
}
public IssueConfig addContactLinksItem(IssueConfigContactLink contactLinksItem) {
if (this.contactLinks == null) {
this.contactLinks = new ArrayList<>();
}
this.contactLinks.add(contactLinksItem);
return this;
}
/**
* Get contactLinks
*
* @return contactLinks
*/
@Schema(description = "")
public List<IssueConfigContactLink> getContactLinks() {
return contactLinks;
}
public void setContactLinks(List<IssueConfigContactLink> contactLinks) {
this.contactLinks = contactLinks;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
IssueConfig issueConfig = (IssueConfig) o;
return Objects.equals(this.blankIssuesEnabled, issueConfig.blankIssuesEnabled)
&& Objects.equals(this.contactLinks, issueConfig.contactLinks);
}
@Override
public int hashCode() {
return Objects.hash(blankIssuesEnabled, contactLinks);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class IssueConfig {\n");
sb.append(" blankIssuesEnabled: ").append(toIndentedString(blankIssuesEnabled)).append("\n");
sb.append(" contactLinks: ").append(toIndentedString(contactLinks)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
@@ -0,0 +1,130 @@
/*
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: {{AppVer | JSEscape | Safe}}
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package org.gitnex.tea4j.v2.models;
import com.google.gson.annotations.SerializedName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.Objects;
/** IssueConfigContactLink */
public class IssueConfigContactLink implements Serializable {
private static final long serialVersionUID = 1L;
@SerializedName("about")
private String about = null;
@SerializedName("name")
private String name = null;
@SerializedName("url")
private String url = null;
public IssueConfigContactLink about(String about) {
this.about = about;
return this;
}
/**
* Get about
*
* @return about
*/
@Schema(description = "")
public String getAbout() {
return about;
}
public void setAbout(String about) {
this.about = about;
}
public IssueConfigContactLink name(String name) {
this.name = name;
return this;
}
/**
* Get name
*
* @return name
*/
@Schema(description = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public IssueConfigContactLink url(String url) {
this.url = url;
return this;
}
/**
* Get url
*
* @return url
*/
@Schema(description = "")
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
IssueConfigContactLink issueConfigContactLink = (IssueConfigContactLink) o;
return Objects.equals(this.about, issueConfigContactLink.about)
&& Objects.equals(this.name, issueConfigContactLink.name)
&& Objects.equals(this.url, issueConfigContactLink.url);
}
@Override
public int hashCode() {
return Objects.hash(about, name, url);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class IssueConfigContactLink {\n");
sb.append(" about: ").append(toIndentedString(about)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" url: ").append(toIndentedString(url)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
@@ -0,0 +1,106 @@
/*
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: {{AppVer | JSEscape | Safe}}
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package org.gitnex.tea4j.v2.models;
import com.google.gson.annotations.SerializedName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.Objects;
/** IssueConfigValidation */
public class IssueConfigValidation implements Serializable {
private static final long serialVersionUID = 1L;
@SerializedName("message")
private String message = null;
@SerializedName("valid")
private Boolean valid = null;
public IssueConfigValidation message(String message) {
this.message = message;
return this;
}
/**
* Get message
*
* @return message
*/
@Schema(description = "")
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public IssueConfigValidation valid(Boolean valid) {
this.valid = valid;
return this;
}
/**
* Get valid
*
* @return valid
*/
@Schema(description = "")
public Boolean isValid() {
return valid;
}
public void setValid(Boolean valid) {
this.valid = valid;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
IssueConfigValidation issueConfigValidation = (IssueConfigValidation) o;
return Objects.equals(this.message, issueConfigValidation.message)
&& Objects.equals(this.valid, issueConfigValidation.valid);
}
@Override
public int hashCode() {
return Objects.hash(message, valid);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class IssueConfigValidation {\n");
sb.append(" message: ").append(toIndentedString(message)).append("\n");
sb.append(" valid: ").append(toIndentedString(valid)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
@@ -0,0 +1,131 @@
/*
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: {{AppVer | JSEscape | Safe}}
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package org.gitnex.tea4j.v2.models;
import com.google.gson.annotations.SerializedName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.Objects;
/** IssueMeta basic issue information */
@Schema(description = "IssueMeta basic issue information")
public class IssueMeta implements Serializable {
private static final long serialVersionUID = 1L;
@SerializedName("index")
private Long index = null;
@SerializedName("owner")
private String owner = null;
@SerializedName("repo")
private String repo = null;
public IssueMeta index(Long index) {
this.index = index;
return this;
}
/**
* Get index
*
* @return index
*/
@Schema(description = "")
public Long getIndex() {
return index;
}
public void setIndex(Long index) {
this.index = index;
}
public IssueMeta owner(String owner) {
this.owner = owner;
return this;
}
/**
* Get owner
*
* @return owner
*/
@Schema(description = "")
public String getOwner() {
return owner;
}
public void setOwner(String owner) {
this.owner = owner;
}
public IssueMeta repo(String repo) {
this.repo = repo;
return this;
}
/**
* Get repo
*
* @return repo
*/
@Schema(description = "")
public String getRepo() {
return repo;
}
public void setRepo(String repo) {
this.repo = repo;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
IssueMeta issueMeta = (IssueMeta) o;
return Objects.equals(this.index, issueMeta.index)
&& Objects.equals(this.owner, issueMeta.owner)
&& Objects.equals(this.repo, issueMeta.repo);
}
@Override
public int hashCode() {
return Objects.hash(index, owner, repo);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class IssueMeta {\n");
sb.append(" index: ").append(toIndentedString(index)).append("\n");
sb.append(" owner: ").append(toIndentedString(owner)).append("\n");
sb.append(" repo: ").append(toIndentedString(repo)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}