|
|
|
@@ -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<Issue> 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<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**: 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<Issue> issueListIssueDependencies(owner, repo, index, page, limit)
|
|
|
|
|
|
|
|
|
|
List an issue'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<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**: 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)
|
|
|
|
|