+ */
+ public List adaptersAttachmentsBulkPost(List files) throws ApiException {
+ return adaptersAttachmentsBulkPostWithHttpInfo(files).getData();
+ }
+
+ /**
+ *
+ *
+ * @param files (optional)
+ * @return ApiResponse<List<AttachmentModel>>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse> adaptersAttachmentsBulkPostWithHttpInfo(List files) throws ApiException {
+ // Form parameters
+ Map localVarFormParams = new LinkedHashMap<>();
+ if (files != null) {
+ localVarFormParams.put("files", files);
+ }
+
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType("multipart/form-data");
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ GenericType> localVarReturnType = new GenericType>() {};
+ return apiClient.invokeAPI("AttachmentsApi.adaptersAttachmentsBulkPost", "/adapters/attachments/bulk", "POST", new ArrayList<>(), null,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, localVarContentType,
+ localVarAuthNames, localVarReturnType, false);
+ }
+ /**
+ * Download attachment file
+ *
+ * @param id (required)
+ * @param width Width of the result image (optional)
+ * @param height Height of the result image (optional)
+ * @param resizeType Type of resizing to apply to the result image (optional)
+ * @param backgroundColor Color of the background if the `resizeType` is `AddBackgroundStripes` (optional)
+ * @param preview If image must be converted to a preview (lower quality, no animation) (optional)
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public void adaptersAttachmentsIdGet(UUID id, Integer width, Integer height, ImageResizeType resizeType, String backgroundColor, Boolean preview) throws ApiException {
+ adaptersAttachmentsIdGetWithHttpInfo(id, width, height, resizeType, backgroundColor, preview);
+ }
+
+ /**
+ * Download attachment file
+ *
+ * @param id (required)
+ * @param width Width of the result image (optional)
+ * @param height Height of the result image (optional)
+ * @param resizeType Type of resizing to apply to the result image (optional)
+ * @param backgroundColor Color of the background if the `resizeType` is `AddBackgroundStripes` (optional)
+ * @param preview If image must be converted to a preview (lower quality, no animation) (optional)
+ * @return ApiResponse<Void>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse adaptersAttachmentsIdGetWithHttpInfo(UUID id, Integer width, Integer height, ImageResizeType resizeType, String backgroundColor, Boolean preview) throws ApiException {
+ // Check required parameters
+ if (id == null) {
+ throw new ApiException(400, "Missing the required parameter 'id' when calling adaptersAttachmentsIdGet");
+ }
+
+ // Path parameters
+ String localVarPath = "/adapters/attachments/{id}"
+ .replaceAll("\\{id}", apiClient.escapeString(id.toString()));
+
+ // Query parameters
+ List localVarQueryParams = new ArrayList<>(
+ apiClient.parameterToPairs("", "width", width)
+ );
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "height", height));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "resizeType", resizeType));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "backgroundColor", backgroundColor));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "preview", preview));
+
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType();
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ return apiClient.invokeAPI("AttachmentsApi.adaptersAttachmentsIdGet", localVarPath, "GET", localVarQueryParams, null,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, null, false);
+ }
+ /**
+ * Upload new attachment file
+ * File size is restricted to 1 GB (1 073 741 824 bytes)
+ * @param _file (optional)
+ * @return AttachmentModel
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
201
Created
-
+
400
- Invalid file contents - Invalid HTTP headers
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public AttachmentModel adaptersAttachmentsPost(File _file) throws ApiException {
+ return adaptersAttachmentsPostWithHttpInfo(_file).getData();
+ }
+
+ /**
+ * Upload new attachment file
+ * File size is restricted to 1 GB (1 073 741 824 bytes)
+ * @param _file (optional)
+ * @return ApiResponse<AttachmentModel>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
201
Created
-
+
400
- Invalid file contents - Invalid HTTP headers
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse adaptersAttachmentsPostWithHttpInfo(File _file) throws ApiException {
+ // Form parameters
+ Map localVarFormParams = new LinkedHashMap<>();
+ if (_file != null) {
+ localVarFormParams.put("file", _file);
+ }
+
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType("multipart/form-data");
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI("AttachmentsApi.adaptersAttachmentsPost", "/adapters/attachments", "POST", new ArrayList<>(), null,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, localVarContentType,
+ localVarAuthNames, localVarReturnType, false);
+ }
+}
diff --git a/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/AutoTestsApi.java b/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/AutoTestsApi.java
new file mode 100644
index 0000000..29802ae
--- /dev/null
+++ b/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/AutoTestsApi.java
@@ -0,0 +1,779 @@
+package ru.testit.adaptersapi.api;
+
+import ru.testit.adaptersapi.invoker.ApiException;
+import ru.testit.adaptersapi.invoker.ApiClient;
+import ru.testit.adaptersapi.invoker.ApiResponse;
+import ru.testit.adaptersapi.invoker.Configuration;
+import ru.testit.adaptersapi.invoker.Pair;
+
+import jakarta.ws.rs.core.GenericType;
+
+import ru.testit.adaptersapi.model.AutoTestApiResult;
+import ru.testit.adaptersapi.model.AutoTestCreateApiModel;
+import ru.testit.adaptersapi.model.AutoTestModel;
+import ru.testit.adaptersapi.model.AutoTestSearchApiModel;
+import ru.testit.adaptersapi.model.AutoTestUpdateApiModel;
+import ru.testit.adaptersapi.model.AutoTestWorkItemIdentifierApiResult;
+import ru.testit.adaptersapi.model.Operation;
+import ru.testit.adaptersapi.model.ProblemDetails;
+import java.util.UUID;
+import ru.testit.adaptersapi.model.ValidationProblemDetails;
+import ru.testit.adaptersapi.model.WorkItemIdApiModel;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.Map;
+
+@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.11.0")
+public class AutoTestsApi {
+ private ApiClient apiClient;
+
+ public AutoTestsApi() {
+ this(Configuration.getDefaultApiClient());
+ }
+
+ public AutoTestsApi(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ /**
+ * Get the API client
+ *
+ * @return API client
+ */
+ public ApiClient getApiClient() {
+ return apiClient;
+ }
+
+ /**
+ * Set the API client
+ *
+ * @param apiClient an instance of API client
+ */
+ public void setApiClient(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ /**
+ * Create multiple autotests
+ *
+ * @param autoTestCreateApiModel (optional)
+ * @return List<AutoTestApiResult>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
201
Created
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public List adaptersAutoTestsBulkPost(List autoTestCreateApiModel) throws ApiException {
+ return adaptersAutoTestsBulkPostWithHttpInfo(autoTestCreateApiModel).getData();
+ }
+
+ /**
+ * Create multiple autotests
+ *
+ * @param autoTestCreateApiModel (optional)
+ * @return ApiResponse<List<AutoTestApiResult>>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
201
Created
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse> adaptersAutoTestsBulkPostWithHttpInfo(List autoTestCreateApiModel) throws ApiException {
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType("application/json");
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ GenericType> localVarReturnType = new GenericType>() {};
+ return apiClient.invokeAPI("AutoTestsApi.adaptersAutoTestsBulkPost", "/adapters/autoTests/bulk", "POST", new ArrayList<>(), autoTestCreateApiModel,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, localVarReturnType, false);
+ }
+ /**
+ * Update multiple autotests
+ *
+ * @param autoTestUpdateApiModel (optional)
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
204
No Content
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public void adaptersAutoTestsBulkPut(List autoTestUpdateApiModel) throws ApiException {
+ adaptersAutoTestsBulkPutWithHttpInfo(autoTestUpdateApiModel);
+ }
+
+ /**
+ * Update multiple autotests
+ *
+ * @param autoTestUpdateApiModel (optional)
+ * @return ApiResponse<Void>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
204
No Content
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse adaptersAutoTestsBulkPutWithHttpInfo(List autoTestUpdateApiModel) throws ApiException {
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType("application/json");
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ return apiClient.invokeAPI("AutoTestsApi.adaptersAutoTestsBulkPut", "/adapters/autoTests/bulk", "PUT", new ArrayList<>(), autoTestUpdateApiModel,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, null, false);
+ }
+ /**
+ *
+ *
+ * @param projectId Project internal ID (optional)
+ * @param externalId Autotest external ID (optional)
+ * @param globalId Autotest global ID (optional)
+ * @param namespace Namespace in which autotest is located (optional)
+ * @param isNamespaceNull OBSOLETE: Use `includeEmptyNamespaces` instead (optional)
+ * @param includeEmptyNamespaces If result must contain autotests without namespace (optional)
+ * @param className Name of class in which autotest is located (optional)
+ * @param isClassnameNull OBSOLETE: Use `includeEmptyClassNames` instead (optional)
+ * @param includeEmptyClassNames If result must contain autotests without class (optional)
+ * @param isDeleted OBSOLETE: Use `deleted` instead (optional)
+ * @param deleted Is autotest deleted (optional)
+ * @param labels Include only autotests with provided labels (optional)
+ * @param stabilityMinimal OBSOLETE: Use `minStability` instead (optional)
+ * @param minStability Minimum stability value of autotest (optional)
+ * @param stabilityMaximal OBSOLETE: Use `maxStability` instead (optional)
+ * @param maxStability Maximum stability value of autotest (optional)
+ * @param isFlaky OBSOLETE: Use `flaky` instead (optional)
+ * @param flaky Is autotest marked as \"Flaky\" (optional)
+ * @param includeSteps If result must also include autotest steps (optional)
+ * @param includeLabels If result must also include autotest labels (optional)
+ * @param externalKey External key of autotest (optional)
+ * @param skip Amount of items to be skipped (offset) (optional)
+ * @param take Amount of items to be taken (limit) (optional)
+ * @param orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional)
+ * @param searchField Property name for searching (optional)
+ * @param searchValue Value for searching (optional)
+ * @return List<AutoTestModel>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
* Pagination-Skip - Skipped amount of items * Pagination-Take - Taken items * Pagination-Pages - Expected number of pages * Pagination-Total-Items - Total count of items
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ * @deprecated
+ */
+ @Deprecated
+ public List adaptersAutoTestsGet(UUID projectId, String externalId, Long globalId, String namespace, Boolean isNamespaceNull, Boolean includeEmptyNamespaces, String className, Boolean isClassnameNull, Boolean includeEmptyClassNames, Boolean isDeleted, Boolean deleted, List labels, Integer stabilityMinimal, Integer minStability, Integer stabilityMaximal, Integer maxStability, Boolean isFlaky, Boolean flaky, Boolean includeSteps, Boolean includeLabels, String externalKey, Integer skip, Integer take, String orderBy, String searchField, String searchValue) throws ApiException {
+ return adaptersAutoTestsGetWithHttpInfo(projectId, externalId, globalId, namespace, isNamespaceNull, includeEmptyNamespaces, className, isClassnameNull, includeEmptyClassNames, isDeleted, deleted, labels, stabilityMinimal, minStability, stabilityMaximal, maxStability, isFlaky, flaky, includeSteps, includeLabels, externalKey, skip, take, orderBy, searchField, searchValue).getData();
+ }
+
+ /**
+ *
+ *
+ * @param projectId Project internal ID (optional)
+ * @param externalId Autotest external ID (optional)
+ * @param globalId Autotest global ID (optional)
+ * @param namespace Namespace in which autotest is located (optional)
+ * @param isNamespaceNull OBSOLETE: Use `includeEmptyNamespaces` instead (optional)
+ * @param includeEmptyNamespaces If result must contain autotests without namespace (optional)
+ * @param className Name of class in which autotest is located (optional)
+ * @param isClassnameNull OBSOLETE: Use `includeEmptyClassNames` instead (optional)
+ * @param includeEmptyClassNames If result must contain autotests without class (optional)
+ * @param isDeleted OBSOLETE: Use `deleted` instead (optional)
+ * @param deleted Is autotest deleted (optional)
+ * @param labels Include only autotests with provided labels (optional)
+ * @param stabilityMinimal OBSOLETE: Use `minStability` instead (optional)
+ * @param minStability Minimum stability value of autotest (optional)
+ * @param stabilityMaximal OBSOLETE: Use `maxStability` instead (optional)
+ * @param maxStability Maximum stability value of autotest (optional)
+ * @param isFlaky OBSOLETE: Use `flaky` instead (optional)
+ * @param flaky Is autotest marked as \"Flaky\" (optional)
+ * @param includeSteps If result must also include autotest steps (optional)
+ * @param includeLabels If result must also include autotest labels (optional)
+ * @param externalKey External key of autotest (optional)
+ * @param skip Amount of items to be skipped (offset) (optional)
+ * @param take Amount of items to be taken (limit) (optional)
+ * @param orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional)
+ * @param searchField Property name for searching (optional)
+ * @param searchValue Value for searching (optional)
+ * @return ApiResponse<List<AutoTestModel>>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
* Pagination-Skip - Skipped amount of items * Pagination-Take - Taken items * Pagination-Pages - Expected number of pages * Pagination-Total-Items - Total count of items
+ */
+ public AutoTestApiResult adaptersAutoTestsIdGet(String id) throws ApiException {
+ return adaptersAutoTestsIdGetWithHttpInfo(id).getData();
+ }
+
+ /**
+ * Get autotest by internal or global ID
+ *
+ * @param id Internal (UUID) or global (integer) identifier (required)
+ * @return ApiResponse<AutoTestApiResult>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse adaptersAutoTestsIdGetWithHttpInfo(String id) throws ApiException {
+ // Check required parameters
+ if (id == null) {
+ throw new ApiException(400, "Missing the required parameter 'id' when calling adaptersAutoTestsIdGet");
+ }
+
+ // Path parameters
+ String localVarPath = "/adapters/autoTests/{id}"
+ .replaceAll("\\{id}", apiClient.escapeString(id.toString()));
+
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType();
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI("AutoTestsApi.adaptersAutoTestsIdGet", localVarPath, "GET", new ArrayList<>(), null,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, localVarReturnType, false);
+ }
+ /**
+ * Patch auto test
+ * See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details
+ * @param id (required)
+ * @param operation (optional)
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
204
No Content
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public void adaptersAutoTestsIdPatch(UUID id, List operation) throws ApiException {
+ adaptersAutoTestsIdPatchWithHttpInfo(id, operation);
+ }
+
+ /**
+ * Patch auto test
+ * See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details
+ * @param id (required)
+ * @param operation (optional)
+ * @return ApiResponse<Void>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
204
No Content
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse adaptersAutoTestsIdPatchWithHttpInfo(UUID id, List operation) throws ApiException {
+ // Check required parameters
+ if (id == null) {
+ throw new ApiException(400, "Missing the required parameter 'id' when calling adaptersAutoTestsIdPatch");
+ }
+
+ // Path parameters
+ String localVarPath = "/adapters/autoTests/{id}"
+ .replaceAll("\\{id}", apiClient.escapeString(id.toString()));
+
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType("application/json");
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ return apiClient.invokeAPI("AutoTestsApi.adaptersAutoTestsIdPatch", localVarPath, "PATCH", new ArrayList<>(), operation,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, null, false);
+ }
+ /**
+ * Unlink autotest from work item
+ *
+ * @param id Internal (UUID) or global (integer) identifier (required)
+ * @param workItemId Internal (UUID) or global (integer) identifier (optional)
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
204
No Content
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public void adaptersAutoTestsIdWorkItemsDelete(String id, String workItemId) throws ApiException {
+ adaptersAutoTestsIdWorkItemsDeleteWithHttpInfo(id, workItemId);
+ }
+
+ /**
+ * Unlink autotest from work item
+ *
+ * @param id Internal (UUID) or global (integer) identifier (required)
+ * @param workItemId Internal (UUID) or global (integer) identifier (optional)
+ * @return ApiResponse<Void>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
204
No Content
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse adaptersAutoTestsIdWorkItemsDeleteWithHttpInfo(String id, String workItemId) throws ApiException {
+ // Check required parameters
+ if (id == null) {
+ throw new ApiException(400, "Missing the required parameter 'id' when calling adaptersAutoTestsIdWorkItemsDelete");
+ }
+
+ // Path parameters
+ String localVarPath = "/adapters/autoTests/{id}/work-items"
+ .replaceAll("\\{id}", apiClient.escapeString(id.toString()));
+
+ // Query parameters
+ List localVarQueryParams = new ArrayList<>(
+ apiClient.parameterToPairs("", "workItemId", workItemId)
+ );
+
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType();
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ return apiClient.invokeAPI("AutoTestsApi.adaptersAutoTestsIdWorkItemsDelete", localVarPath, "DELETE", localVarQueryParams, null,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, null, false);
+ }
+ /**
+ * Get work items linked to autotest
+ *
+ * @param id Internal (UUID) or global (integer) identifier (required)
+ * @param isDeleted (optional)
+ * @param isWorkItemDeleted (optional, default to false)
+ * @return List<AutoTestWorkItemIdentifierApiResult>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public List adaptersAutoTestsIdWorkItemsGet(String id, Boolean isDeleted, Boolean isWorkItemDeleted) throws ApiException {
+ return adaptersAutoTestsIdWorkItemsGetWithHttpInfo(id, isDeleted, isWorkItemDeleted).getData();
+ }
+
+ /**
+ * Get work items linked to autotest
+ *
+ * @param id Internal (UUID) or global (integer) identifier (required)
+ * @param isDeleted (optional)
+ * @param isWorkItemDeleted (optional, default to false)
+ * @return ApiResponse<List<AutoTestWorkItemIdentifierApiResult>>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse> adaptersAutoTestsIdWorkItemsGetWithHttpInfo(String id, Boolean isDeleted, Boolean isWorkItemDeleted) throws ApiException {
+ // Check required parameters
+ if (id == null) {
+ throw new ApiException(400, "Missing the required parameter 'id' when calling adaptersAutoTestsIdWorkItemsGet");
+ }
+
+ // Path parameters
+ String localVarPath = "/adapters/autoTests/{id}/work-items"
+ .replaceAll("\\{id}", apiClient.escapeString(id.toString()));
+
+ // Query parameters
+ List localVarQueryParams = new ArrayList<>(
+ apiClient.parameterToPairs("", "isDeleted", isDeleted)
+ );
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "isWorkItemDeleted", isWorkItemDeleted));
+
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType();
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ GenericType> localVarReturnType = new GenericType>() {};
+ return apiClient.invokeAPI("AutoTestsApi.adaptersAutoTestsIdWorkItemsGet", localVarPath, "GET", localVarQueryParams, null,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, localVarReturnType, false);
+ }
+ /**
+ * Link autotest with work items
+ *
+ * @param id Internal (UUID) or global (integer) identifier (required)
+ * @param workItemIdApiModel (optional)
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
204
No Content
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public void adaptersAutoTestsIdWorkItemsPost(String id, WorkItemIdApiModel workItemIdApiModel) throws ApiException {
+ adaptersAutoTestsIdWorkItemsPostWithHttpInfo(id, workItemIdApiModel);
+ }
+
+ /**
+ * Link autotest with work items
+ *
+ * @param id Internal (UUID) or global (integer) identifier (required)
+ * @param workItemIdApiModel (optional)
+ * @return ApiResponse<Void>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
204
No Content
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse adaptersAutoTestsIdWorkItemsPostWithHttpInfo(String id, WorkItemIdApiModel workItemIdApiModel) throws ApiException {
+ // Check required parameters
+ if (id == null) {
+ throw new ApiException(400, "Missing the required parameter 'id' when calling adaptersAutoTestsIdWorkItemsPost");
+ }
+
+ // Path parameters
+ String localVarPath = "/adapters/autoTests/{id}/work-items"
+ .replaceAll("\\{id}", apiClient.escapeString(id.toString()));
+
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType("application/json");
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ return apiClient.invokeAPI("AutoTestsApi.adaptersAutoTestsIdWorkItemsPost", localVarPath, "POST", new ArrayList<>(), workItemIdApiModel,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, null, false);
+ }
+ /**
+ * Create autotest
+ *
+ * @param autoTestCreateApiModel (optional)
+ * @return AutoTestApiResult
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
201
Created
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public AutoTestApiResult adaptersAutoTestsPost(AutoTestCreateApiModel autoTestCreateApiModel) throws ApiException {
+ return adaptersAutoTestsPostWithHttpInfo(autoTestCreateApiModel).getData();
+ }
+
+ /**
+ * Create autotest
+ *
+ * @param autoTestCreateApiModel (optional)
+ * @return ApiResponse<AutoTestApiResult>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
201
Created
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse adaptersAutoTestsPostWithHttpInfo(AutoTestCreateApiModel autoTestCreateApiModel) throws ApiException {
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType("application/json");
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI("AutoTestsApi.adaptersAutoTestsPost", "/adapters/autoTests", "POST", new ArrayList<>(), autoTestCreateApiModel,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, localVarReturnType, false);
+ }
+ /**
+ * Update autotest
+ *
+ * @param autoTestUpdateApiModel (optional)
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public void adaptersAutoTestsPut(AutoTestUpdateApiModel autoTestUpdateApiModel) throws ApiException {
+ adaptersAutoTestsPutWithHttpInfo(autoTestUpdateApiModel);
+ }
+
+ /**
+ * Update autotest
+ *
+ * @param autoTestUpdateApiModel (optional)
+ * @return ApiResponse<Void>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse adaptersAutoTestsPutWithHttpInfo(AutoTestUpdateApiModel autoTestUpdateApiModel) throws ApiException {
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType("application/json");
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ return apiClient.invokeAPI("AutoTestsApi.adaptersAutoTestsPut", "/adapters/autoTests", "PUT", new ArrayList<>(), autoTestUpdateApiModel,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, null, false);
+ }
+ /**
+ * Search for autotests
+ *
+ * @param skip Amount of items to be skipped (offset) (optional)
+ * @param take Amount of items to be taken (limit) (optional)
+ * @param orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional)
+ * @param searchField Property name for searching (optional)
+ * @param searchValue Value for searching (optional)
+ * @param autoTestSearchApiModel (optional)
+ * @return List<AutoTestApiResult>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
* Pagination-Skip - Skipped amount of items * Pagination-Take - Taken items * Pagination-Pages - Expected number of pages * Pagination-Total-Items - Total count of items
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Read permission for autotests library is required
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public List adaptersAutoTestsSearchPost(Integer skip, Integer take, String orderBy, String searchField, String searchValue, AutoTestSearchApiModel autoTestSearchApiModel) throws ApiException {
+ return adaptersAutoTestsSearchPostWithHttpInfo(skip, take, orderBy, searchField, searchValue, autoTestSearchApiModel).getData();
+ }
+
+ /**
+ * Search for autotests
+ *
+ * @param skip Amount of items to be skipped (offset) (optional)
+ * @param take Amount of items to be taken (limit) (optional)
+ * @param orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional)
+ * @param searchField Property name for searching (optional)
+ * @param searchValue Value for searching (optional)
+ * @param autoTestSearchApiModel (optional)
+ * @return ApiResponse<List<AutoTestApiResult>>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
* Pagination-Skip - Skipped amount of items * Pagination-Take - Taken items * Pagination-Pages - Expected number of pages * Pagination-Total-Items - Total count of items
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Read permission for autotests library is required
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse> adaptersAutoTestsSearchPostWithHttpInfo(Integer skip, Integer take, String orderBy, String searchField, String searchValue, AutoTestSearchApiModel autoTestSearchApiModel) throws ApiException {
+ // Query parameters
+ List localVarQueryParams = new ArrayList<>(
+ apiClient.parameterToPairs("", "Skip", skip)
+ );
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "Take", take));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "OrderBy", orderBy));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "SearchField", searchField));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "SearchValue", searchValue));
+
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType("application/json");
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ GenericType> localVarReturnType = new GenericType>() {};
+ return apiClient.invokeAPI("AutoTestsApi.adaptersAutoTestsSearchPost", "/adapters/autoTests/search", "POST", localVarQueryParams, autoTestSearchApiModel,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, localVarReturnType, false);
+ }
+}
diff --git a/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/ConfigurationsApi.java b/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/ConfigurationsApi.java
new file mode 100644
index 0000000..14862b5
--- /dev/null
+++ b/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/ConfigurationsApi.java
@@ -0,0 +1,122 @@
+package ru.testit.adaptersapi.api;
+
+import ru.testit.adaptersapi.invoker.ApiException;
+import ru.testit.adaptersapi.invoker.ApiClient;
+import ru.testit.adaptersapi.invoker.ApiResponse;
+import ru.testit.adaptersapi.invoker.Configuration;
+import ru.testit.adaptersapi.invoker.Pair;
+
+import jakarta.ws.rs.core.GenericType;
+
+import ru.testit.adaptersapi.model.ConfigurationFilterModel;
+import ru.testit.adaptersapi.model.ConfigurationModel;
+import ru.testit.adaptersapi.model.ProblemDetails;
+import ru.testit.adaptersapi.model.ValidationProblemDetails;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.Map;
+
+@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.11.0")
+public class ConfigurationsApi {
+ private ApiClient apiClient;
+
+ public ConfigurationsApi() {
+ this(Configuration.getDefaultApiClient());
+ }
+
+ public ConfigurationsApi(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ /**
+ * Get the API client
+ *
+ * @return API client
+ */
+ public ApiClient getApiClient() {
+ return apiClient;
+ }
+
+ /**
+ * Set the API client
+ *
+ * @param apiClient an instance of API client
+ */
+ public void setApiClient(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ /**
+ * Search for configurations
+ *
+ * @param skip Amount of items to be skipped (offset) (optional)
+ * @param take Amount of items to be taken (limit) (optional)
+ * @param orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional)
+ * @param searchField Property name for searching (optional)
+ * @param searchValue Value for searching (optional)
+ * @param configurationFilterModel (optional)
+ * @return List<ConfigurationModel>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
* Pagination-Skip - Skipped amount of items * Pagination-Take - Taken items * Pagination-Pages - Expected number of pages * Pagination-Total-Items - Total count of items
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public List adaptersConfigurationsSearchPost(Integer skip, Integer take, String orderBy, String searchField, String searchValue, ConfigurationFilterModel configurationFilterModel) throws ApiException {
+ return adaptersConfigurationsSearchPostWithHttpInfo(skip, take, orderBy, searchField, searchValue, configurationFilterModel).getData();
+ }
+
+ /**
+ * Search for configurations
+ *
+ * @param skip Amount of items to be skipped (offset) (optional)
+ * @param take Amount of items to be taken (limit) (optional)
+ * @param orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional)
+ * @param searchField Property name for searching (optional)
+ * @param searchValue Value for searching (optional)
+ * @param configurationFilterModel (optional)
+ * @return ApiResponse<List<ConfigurationModel>>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
* Pagination-Skip - Skipped amount of items * Pagination-Take - Taken items * Pagination-Pages - Expected number of pages * Pagination-Total-Items - Total count of items
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse> adaptersConfigurationsSearchPostWithHttpInfo(Integer skip, Integer take, String orderBy, String searchField, String searchValue, ConfigurationFilterModel configurationFilterModel) throws ApiException {
+ // Query parameters
+ List localVarQueryParams = new ArrayList<>(
+ apiClient.parameterToPairs("", "Skip", skip)
+ );
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "Take", take));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "OrderBy", orderBy));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "SearchField", searchField));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "SearchValue", searchValue));
+
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType("application/json");
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ GenericType> localVarReturnType = new GenericType>() {};
+ return apiClient.invokeAPI("ConfigurationsApi.adaptersConfigurationsSearchPost", "/adapters/configurations/search", "POST", localVarQueryParams, configurationFilterModel,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, localVarReturnType, false);
+ }
+}
diff --git a/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/ParametersApi.java b/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/ParametersApi.java
new file mode 100644
index 0000000..ae06223
--- /dev/null
+++ b/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/ParametersApi.java
@@ -0,0 +1,235 @@
+package ru.testit.adaptersapi.api;
+
+import ru.testit.adaptersapi.invoker.ApiException;
+import ru.testit.adaptersapi.invoker.ApiClient;
+import ru.testit.adaptersapi.invoker.ApiResponse;
+import ru.testit.adaptersapi.invoker.Configuration;
+import ru.testit.adaptersapi.invoker.Pair;
+
+import jakarta.ws.rs.core.GenericType;
+
+import ru.testit.adaptersapi.model.CreateParameterApiModel;
+import ru.testit.adaptersapi.model.ParameterApiResult;
+import ru.testit.adaptersapi.model.ParametersFilterApiModel;
+import ru.testit.adaptersapi.model.ProblemDetails;
+import java.util.UUID;
+import ru.testit.adaptersapi.model.ValidationProblemDetails;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.Map;
+
+@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.11.0")
+public class ParametersApi {
+ private ApiClient apiClient;
+
+ public ParametersApi() {
+ this(Configuration.getDefaultApiClient());
+ }
+
+ public ParametersApi(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ /**
+ * Get the API client
+ *
+ * @return API client
+ */
+ public ApiClient getApiClient() {
+ return apiClient;
+ }
+
+ /**
+ * Set the API client
+ *
+ * @param apiClient an instance of API client
+ */
+ public void setApiClient(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ /**
+ * Get parameter by ID
+ *
+ * @param id (required)
+ * @return ParameterApiResult
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ParameterApiResult adaptersParametersIdGet(UUID id) throws ApiException {
+ return adaptersParametersIdGetWithHttpInfo(id).getData();
+ }
+
+ /**
+ * Get parameter by ID
+ *
+ * @param id (required)
+ * @return ApiResponse<ParameterApiResult>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse adaptersParametersIdGetWithHttpInfo(UUID id) throws ApiException {
+ // Check required parameters
+ if (id == null) {
+ throw new ApiException(400, "Missing the required parameter 'id' when calling adaptersParametersIdGet");
+ }
+
+ // Path parameters
+ String localVarPath = "/adapters/parameters/{id}"
+ .replaceAll("\\{id}", apiClient.escapeString(id.toString()));
+
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType();
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI("ParametersApi.adaptersParametersIdGet", localVarPath, "GET", new ArrayList<>(), null,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, localVarReturnType, false);
+ }
+ /**
+ * Create parameter
+ *
+ * @param createParameterApiModel (optional)
+ * @return ParameterApiResult
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
201
Created
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ParameterApiResult adaptersParametersPost(CreateParameterApiModel createParameterApiModel) throws ApiException {
+ return adaptersParametersPostWithHttpInfo(createParameterApiModel).getData();
+ }
+
+ /**
+ * Create parameter
+ *
+ * @param createParameterApiModel (optional)
+ * @return ApiResponse<ParameterApiResult>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
201
Created
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse adaptersParametersPostWithHttpInfo(CreateParameterApiModel createParameterApiModel) throws ApiException {
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType("application/json");
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI("ParametersApi.adaptersParametersPost", "/adapters/parameters", "POST", new ArrayList<>(), createParameterApiModel,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, localVarReturnType, false);
+ }
+ /**
+ * Search for parameters
+ *
+ * @param skip Amount of items to be skipped (offset) (optional)
+ * @param take Amount of items to be taken (limit) (optional)
+ * @param orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional)
+ * @param searchField Property name for searching (optional)
+ * @param searchValue Value for searching (optional)
+ * @param parametersFilterApiModel (optional)
+ * @return List<ParameterApiResult>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
* Pagination-Skip - Skipped amount of items * Pagination-Take - Taken items * Pagination-Pages - Expected number of pages * Pagination-Total-Items - Total count of items
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public List adaptersParametersSearchPost(Integer skip, Integer take, String orderBy, String searchField, String searchValue, ParametersFilterApiModel parametersFilterApiModel) throws ApiException {
+ return adaptersParametersSearchPostWithHttpInfo(skip, take, orderBy, searchField, searchValue, parametersFilterApiModel).getData();
+ }
+
+ /**
+ * Search for parameters
+ *
+ * @param skip Amount of items to be skipped (offset) (optional)
+ * @param take Amount of items to be taken (limit) (optional)
+ * @param orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional)
+ * @param searchField Property name for searching (optional)
+ * @param searchValue Value for searching (optional)
+ * @param parametersFilterApiModel (optional)
+ * @return ApiResponse<List<ParameterApiResult>>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
* Pagination-Skip - Skipped amount of items * Pagination-Take - Taken items * Pagination-Pages - Expected number of pages * Pagination-Total-Items - Total count of items
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse> adaptersParametersSearchPostWithHttpInfo(Integer skip, Integer take, String orderBy, String searchField, String searchValue, ParametersFilterApiModel parametersFilterApiModel) throws ApiException {
+ // Query parameters
+ List localVarQueryParams = new ArrayList<>(
+ apiClient.parameterToPairs("", "Skip", skip)
+ );
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "Take", take));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "OrderBy", orderBy));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "SearchField", searchField));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "SearchValue", searchValue));
+
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType("application/json");
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ GenericType> localVarReturnType = new GenericType>() {};
+ return apiClient.invokeAPI("ParametersApi.adaptersParametersSearchPost", "/adapters/parameters/search", "POST", localVarQueryParams, parametersFilterApiModel,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, localVarReturnType, false);
+ }
+}
diff --git a/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/ProjectAttributesApi.java b/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/ProjectAttributesApi.java
new file mode 100644
index 0000000..9ce9409
--- /dev/null
+++ b/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/ProjectAttributesApi.java
@@ -0,0 +1,195 @@
+package ru.testit.adaptersapi.api;
+
+import ru.testit.adaptersapi.invoker.ApiException;
+import ru.testit.adaptersapi.invoker.ApiClient;
+import ru.testit.adaptersapi.invoker.ApiResponse;
+import ru.testit.adaptersapi.invoker.Configuration;
+import ru.testit.adaptersapi.invoker.Pair;
+
+import jakarta.ws.rs.core.GenericType;
+
+import ru.testit.adaptersapi.model.CustomAttributeGetModel;
+import ru.testit.adaptersapi.model.CustomAttributePutModel;
+import ru.testit.adaptersapi.model.ProblemDetails;
+import ru.testit.adaptersapi.model.ProjectAttributesFilterModel;
+import java.util.UUID;
+import ru.testit.adaptersapi.model.ValidationProblemDetails;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.Map;
+
+@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.11.0")
+public class ProjectAttributesApi {
+ private ApiClient apiClient;
+
+ public ProjectAttributesApi() {
+ this(Configuration.getDefaultApiClient());
+ }
+
+ public ProjectAttributesApi(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ /**
+ * Get the API client
+ *
+ * @return API client
+ */
+ public ApiClient getApiClient() {
+ return apiClient;
+ }
+
+ /**
+ * Set the API client
+ *
+ * @param apiClient an instance of API client
+ */
+ public void setApiClient(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ /**
+ * Edit attribute of the project
+ *
+ * @param projectId (required)
+ * @param customAttributePutModel (optional)
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
204
No Content
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public void adaptersProjectsProjectIdAttributesPut(UUID projectId, CustomAttributePutModel customAttributePutModel) throws ApiException {
+ adaptersProjectsProjectIdAttributesPutWithHttpInfo(projectId, customAttributePutModel);
+ }
+
+ /**
+ * Edit attribute of the project
+ *
+ * @param projectId (required)
+ * @param customAttributePutModel (optional)
+ * @return ApiResponse<Void>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
204
No Content
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse adaptersProjectsProjectIdAttributesPutWithHttpInfo(UUID projectId, CustomAttributePutModel customAttributePutModel) throws ApiException {
+ // Check required parameters
+ if (projectId == null) {
+ throw new ApiException(400, "Missing the required parameter 'projectId' when calling adaptersProjectsProjectIdAttributesPut");
+ }
+
+ // Path parameters
+ String localVarPath = "/adapters/projects/{projectId}/attributes"
+ .replaceAll("\\{projectId}", apiClient.escapeString(projectId.toString()));
+
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType("application/json");
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ return apiClient.invokeAPI("ProjectAttributesApi.adaptersProjectsProjectIdAttributesPut", localVarPath, "PUT", new ArrayList<>(), customAttributePutModel,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, null, false);
+ }
+ /**
+ * Search for attributes used in the project
+ *
+ * @param projectId (required)
+ * @param skip Amount of items to be skipped (offset) (optional)
+ * @param take Amount of items to be taken (limit) (optional)
+ * @param orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional)
+ * @param searchField Property name for searching (optional)
+ * @param searchValue Value for searching (optional)
+ * @param projectAttributesFilterModel (optional)
+ * @return List<CustomAttributeGetModel>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
* Pagination-Skip - Skipped amount of items * Pagination-Take - Taken items * Pagination-Pages - Expected number of pages * Pagination-Total-Items - Total count of items
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public List adaptersProjectsProjectIdAttributesSearchPost(UUID projectId, Integer skip, Integer take, String orderBy, String searchField, String searchValue, ProjectAttributesFilterModel projectAttributesFilterModel) throws ApiException {
+ return adaptersProjectsProjectIdAttributesSearchPostWithHttpInfo(projectId, skip, take, orderBy, searchField, searchValue, projectAttributesFilterModel).getData();
+ }
+
+ /**
+ * Search for attributes used in the project
+ *
+ * @param projectId (required)
+ * @param skip Amount of items to be skipped (offset) (optional)
+ * @param take Amount of items to be taken (limit) (optional)
+ * @param orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional)
+ * @param searchField Property name for searching (optional)
+ * @param searchValue Value for searching (optional)
+ * @param projectAttributesFilterModel (optional)
+ * @return ApiResponse<List<CustomAttributeGetModel>>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
* Pagination-Skip - Skipped amount of items * Pagination-Take - Taken items * Pagination-Pages - Expected number of pages * Pagination-Total-Items - Total count of items
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse> adaptersProjectsProjectIdAttributesSearchPostWithHttpInfo(UUID projectId, Integer skip, Integer take, String orderBy, String searchField, String searchValue, ProjectAttributesFilterModel projectAttributesFilterModel) throws ApiException {
+ // Check required parameters
+ if (projectId == null) {
+ throw new ApiException(400, "Missing the required parameter 'projectId' when calling adaptersProjectsProjectIdAttributesSearchPost");
+ }
+
+ // Path parameters
+ String localVarPath = "/adapters/projects/{projectId}/attributes/search"
+ .replaceAll("\\{projectId}", apiClient.escapeString(projectId.toString()));
+
+ // Query parameters
+ List localVarQueryParams = new ArrayList<>(
+ apiClient.parameterToPairs("", "Skip", skip)
+ );
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "Take", take));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "OrderBy", orderBy));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "SearchField", searchField));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "SearchValue", searchValue));
+
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType("application/json");
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ GenericType> localVarReturnType = new GenericType>() {};
+ return apiClient.invokeAPI("ProjectAttributesApi.adaptersProjectsProjectIdAttributesSearchPost", localVarPath, "POST", localVarQueryParams, projectAttributesFilterModel,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, localVarReturnType, false);
+ }
+}
diff --git a/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/ProjectSectionsApi.java b/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/ProjectSectionsApi.java
new file mode 100644
index 0000000..f379a2e
--- /dev/null
+++ b/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/ProjectSectionsApi.java
@@ -0,0 +1,131 @@
+package ru.testit.adaptersapi.api;
+
+import ru.testit.adaptersapi.invoker.ApiException;
+import ru.testit.adaptersapi.invoker.ApiClient;
+import ru.testit.adaptersapi.invoker.ApiResponse;
+import ru.testit.adaptersapi.invoker.Configuration;
+import ru.testit.adaptersapi.invoker.Pair;
+
+import jakarta.ws.rs.core.GenericType;
+
+import ru.testit.adaptersapi.model.ProblemDetails;
+import ru.testit.adaptersapi.model.SectionModel;
+import java.util.UUID;
+import ru.testit.adaptersapi.model.ValidationProblemDetails;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.Map;
+
+@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.11.0")
+public class ProjectSectionsApi {
+ private ApiClient apiClient;
+
+ public ProjectSectionsApi() {
+ this(Configuration.getDefaultApiClient());
+ }
+
+ public ProjectSectionsApi(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ /**
+ * Get the API client
+ *
+ * @return API client
+ */
+ public ApiClient getApiClient() {
+ return apiClient;
+ }
+
+ /**
+ * Set the API client
+ *
+ * @param apiClient an instance of API client
+ */
+ public void setApiClient(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ /**
+ * Get project sections
+ *
+ * @param projectId (required)
+ * @param skip Amount of items to be skipped (offset) (optional)
+ * @param take Amount of items to be taken (limit) (optional)
+ * @param orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional)
+ * @param searchField Property name for searching (optional)
+ * @param searchValue Value for searching (optional)
+ * @return List<SectionModel>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
* Pagination-Skip - Skipped amount of items * Pagination-Take - Taken items * Pagination-Pages - Expected number of pages * Pagination-Total-Items - Total count of items
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public List adaptersProjectsProjectIdSectionsGet(UUID projectId, Integer skip, Integer take, String orderBy, String searchField, String searchValue) throws ApiException {
+ return adaptersProjectsProjectIdSectionsGetWithHttpInfo(projectId, skip, take, orderBy, searchField, searchValue).getData();
+ }
+
+ /**
+ * Get project sections
+ *
+ * @param projectId (required)
+ * @param skip Amount of items to be skipped (offset) (optional)
+ * @param take Amount of items to be taken (limit) (optional)
+ * @param orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional)
+ * @param searchField Property name for searching (optional)
+ * @param searchValue Value for searching (optional)
+ * @return ApiResponse<List<SectionModel>>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
* Pagination-Skip - Skipped amount of items * Pagination-Take - Taken items * Pagination-Pages - Expected number of pages * Pagination-Total-Items - Total count of items
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse> adaptersProjectsProjectIdSectionsGetWithHttpInfo(UUID projectId, Integer skip, Integer take, String orderBy, String searchField, String searchValue) throws ApiException {
+ // Check required parameters
+ if (projectId == null) {
+ throw new ApiException(400, "Missing the required parameter 'projectId' when calling adaptersProjectsProjectIdSectionsGet");
+ }
+
+ // Path parameters
+ String localVarPath = "/adapters/projects/{projectId}/sections"
+ .replaceAll("\\{projectId}", apiClient.escapeString(projectId.toString()));
+
+ // Query parameters
+ List localVarQueryParams = new ArrayList<>(
+ apiClient.parameterToPairs("", "Skip", skip)
+ );
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "Take", take));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "OrderBy", orderBy));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "SearchField", searchField));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "SearchValue", searchValue));
+
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType();
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ GenericType> localVarReturnType = new GenericType>() {};
+ return apiClient.invokeAPI("ProjectSectionsApi.adaptersProjectsProjectIdSectionsGet", localVarPath, "GET", localVarQueryParams, null,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, localVarReturnType, false);
+ }
+}
diff --git a/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/ProjectWorkItemsApi.java b/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/ProjectWorkItemsApi.java
new file mode 100644
index 0000000..c24fef9
--- /dev/null
+++ b/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/ProjectWorkItemsApi.java
@@ -0,0 +1,133 @@
+package ru.testit.adaptersapi.api;
+
+import ru.testit.adaptersapi.invoker.ApiException;
+import ru.testit.adaptersapi.invoker.ApiClient;
+import ru.testit.adaptersapi.invoker.ApiResponse;
+import ru.testit.adaptersapi.invoker.Configuration;
+import ru.testit.adaptersapi.invoker.Pair;
+
+import jakarta.ws.rs.core.GenericType;
+
+import ru.testit.adaptersapi.model.ProblemDetails;
+import ru.testit.adaptersapi.model.ValidationProblemDetails;
+import ru.testit.adaptersapi.model.WorkItemSelectApiModel;
+import ru.testit.adaptersapi.model.WorkItemShortApiResult;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.Map;
+
+@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.11.0")
+public class ProjectWorkItemsApi {
+ private ApiClient apiClient;
+
+ public ProjectWorkItemsApi() {
+ this(Configuration.getDefaultApiClient());
+ }
+
+ public ProjectWorkItemsApi(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ /**
+ * Get the API client
+ *
+ * @return API client
+ */
+ public ApiClient getApiClient() {
+ return apiClient;
+ }
+
+ /**
+ * Set the API client
+ *
+ * @param apiClient an instance of API client
+ */
+ public void setApiClient(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ /**
+ * Search for work items
+ *
+ * @param projectId Internal (UUID) or global (integer) identifier (required)
+ * @param skip Amount of items to be skipped (offset) (optional)
+ * @param take Amount of items to be taken (limit) (optional)
+ * @param orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional)
+ * @param searchField Property name for searching (optional)
+ * @param searchValue Value for searching (optional)
+ * @param workItemSelectApiModel (optional)
+ * @return List<WorkItemShortApiResult>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
* Pagination-Skip - Skipped amount of items * Pagination-Take - Taken items * Pagination-Pages - Expected number of pages * Pagination-Total-Items - Total count of items
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public List adaptersProjectsProjectIdWorkItemsSearchPost(String projectId, Integer skip, Integer take, String orderBy, String searchField, String searchValue, WorkItemSelectApiModel workItemSelectApiModel) throws ApiException {
+ return adaptersProjectsProjectIdWorkItemsSearchPostWithHttpInfo(projectId, skip, take, orderBy, searchField, searchValue, workItemSelectApiModel).getData();
+ }
+
+ /**
+ * Search for work items
+ *
+ * @param projectId Internal (UUID) or global (integer) identifier (required)
+ * @param skip Amount of items to be skipped (offset) (optional)
+ * @param take Amount of items to be taken (limit) (optional)
+ * @param orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional)
+ * @param searchField Property name for searching (optional)
+ * @param searchValue Value for searching (optional)
+ * @param workItemSelectApiModel (optional)
+ * @return ApiResponse<List<WorkItemShortApiResult>>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
* Pagination-Skip - Skipped amount of items * Pagination-Take - Taken items * Pagination-Pages - Expected number of pages * Pagination-Total-Items - Total count of items
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse> adaptersProjectsProjectIdWorkItemsSearchPostWithHttpInfo(String projectId, Integer skip, Integer take, String orderBy, String searchField, String searchValue, WorkItemSelectApiModel workItemSelectApiModel) throws ApiException {
+ // Check required parameters
+ if (projectId == null) {
+ throw new ApiException(400, "Missing the required parameter 'projectId' when calling adaptersProjectsProjectIdWorkItemsSearchPost");
+ }
+
+ // Path parameters
+ String localVarPath = "/adapters/projects/{projectId}/work-items/search"
+ .replaceAll("\\{projectId}", apiClient.escapeString(projectId.toString()));
+
+ // Query parameters
+ List localVarQueryParams = new ArrayList<>(
+ apiClient.parameterToPairs("", "Skip", skip)
+ );
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "Take", take));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "OrderBy", orderBy));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "SearchField", searchField));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "SearchValue", searchValue));
+
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType("application/json");
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ GenericType> localVarReturnType = new GenericType>() {};
+ return apiClient.invokeAPI("ProjectWorkItemsApi.adaptersProjectsProjectIdWorkItemsSearchPost", localVarPath, "POST", localVarQueryParams, workItemSelectApiModel,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, localVarReturnType, false);
+ }
+}
diff --git a/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/ProjectsApi.java b/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/ProjectsApi.java
new file mode 100644
index 0000000..3166224
--- /dev/null
+++ b/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/ProjectsApi.java
@@ -0,0 +1,297 @@
+package ru.testit.adaptersapi.api;
+
+import ru.testit.adaptersapi.invoker.ApiException;
+import ru.testit.adaptersapi.invoker.ApiClient;
+import ru.testit.adaptersapi.invoker.ApiResponse;
+import ru.testit.adaptersapi.invoker.Configuration;
+import ru.testit.adaptersapi.invoker.Pair;
+
+import jakarta.ws.rs.core.GenericType;
+
+import ru.testit.adaptersapi.model.CreateProjectApiModel;
+import ru.testit.adaptersapi.model.DetailedProjectApiResult;
+import ru.testit.adaptersapi.model.ProblemDetails;
+import ru.testit.adaptersapi.model.ProjectApiResult;
+import ru.testit.adaptersapi.model.ProjectsFilterModel;
+import java.util.Set;
+import java.util.UUID;
+import ru.testit.adaptersapi.model.ValidationProblemDetails;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.Map;
+
+@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.11.0")
+public class ProjectsApi {
+ private ApiClient apiClient;
+
+ public ProjectsApi() {
+ this(Configuration.getDefaultApiClient());
+ }
+
+ public ProjectsApi(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ /**
+ * Get the API client
+ *
+ * @return API client
+ */
+ public ApiClient getApiClient() {
+ return apiClient;
+ }
+
+ /**
+ * Set the API client
+ *
+ * @param apiClient an instance of API client
+ */
+ public void setApiClient(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ /**
+ * Add global attributes to project
+ *
+ * @param id (required)
+ * @param UUID (optional)
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public void adaptersProjectsIdAttributesGlobalPost(UUID id, Set UUID) throws ApiException {
+ adaptersProjectsIdAttributesGlobalPostWithHttpInfo(id, UUID);
+ }
+
+ /**
+ * Add global attributes to project
+ *
+ * @param id (required)
+ * @param UUID (optional)
+ * @return ApiResponse<Void>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse adaptersProjectsIdAttributesGlobalPostWithHttpInfo(UUID id, Set UUID) throws ApiException {
+ // Check required parameters
+ if (id == null) {
+ throw new ApiException(400, "Missing the required parameter 'id' when calling adaptersProjectsIdAttributesGlobalPost");
+ }
+
+ // Path parameters
+ String localVarPath = "/adapters/projects/{id}/attributes/global"
+ .replaceAll("\\{id}", apiClient.escapeString(id.toString()));
+
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType("application/json");
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ return apiClient.invokeAPI("ProjectsApi.adaptersProjectsIdAttributesGlobalPost", localVarPath, "POST", new ArrayList<>(), UUID,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, null, false);
+ }
+ /**
+ * Get project by ID
+ *
+ * @param id (required)
+ * @return DetailedProjectApiResult
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public DetailedProjectApiResult adaptersProjectsIdGet(UUID id) throws ApiException {
+ return adaptersProjectsIdGetWithHttpInfo(id).getData();
+ }
+
+ /**
+ * Get project by ID
+ *
+ * @param id (required)
+ * @return ApiResponse<DetailedProjectApiResult>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse adaptersProjectsIdGetWithHttpInfo(UUID id) throws ApiException {
+ // Check required parameters
+ if (id == null) {
+ throw new ApiException(400, "Missing the required parameter 'id' when calling adaptersProjectsIdGet");
+ }
+
+ // Path parameters
+ String localVarPath = "/adapters/projects/{id}"
+ .replaceAll("\\{id}", apiClient.escapeString(id.toString()));
+
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType();
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI("ProjectsApi.adaptersProjectsIdGet", localVarPath, "GET", new ArrayList<>(), null,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, localVarReturnType, false);
+ }
+ /**
+ * Create project
+ *
+ * @param createProjectApiModel (optional)
+ * @return ProjectApiResult
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
201
Created
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ProjectApiResult adaptersProjectsPost(CreateProjectApiModel createProjectApiModel) throws ApiException {
+ return adaptersProjectsPostWithHttpInfo(createProjectApiModel).getData();
+ }
+
+ /**
+ * Create project
+ *
+ * @param createProjectApiModel (optional)
+ * @return ApiResponse<ProjectApiResult>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
201
Created
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse adaptersProjectsPostWithHttpInfo(CreateProjectApiModel createProjectApiModel) throws ApiException {
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType("application/json");
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI("ProjectsApi.adaptersProjectsPost", "/adapters/projects", "POST", new ArrayList<>(), createProjectApiModel,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, localVarReturnType, false);
+ }
+ /**
+ * Search for projects
+ *
+ * @param skip Amount of items to be skipped (offset) (optional)
+ * @param take Amount of items to be taken (limit) (optional)
+ * @param orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional)
+ * @param searchField Property name for searching (optional)
+ * @param searchValue Value for searching (optional)
+ * @param projectsFilterModel (optional)
+ * @return List<ProjectApiResult>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
* Pagination-Skip - Skipped amount of items * Pagination-Take - Taken items * Pagination-Pages - Expected number of pages * Pagination-Total-Items - Total count of items
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public List adaptersProjectsSearchPost(Integer skip, Integer take, String orderBy, String searchField, String searchValue, ProjectsFilterModel projectsFilterModel) throws ApiException {
+ return adaptersProjectsSearchPostWithHttpInfo(skip, take, orderBy, searchField, searchValue, projectsFilterModel).getData();
+ }
+
+ /**
+ * Search for projects
+ *
+ * @param skip Amount of items to be skipped (offset) (optional)
+ * @param take Amount of items to be taken (limit) (optional)
+ * @param orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional)
+ * @param searchField Property name for searching (optional)
+ * @param searchValue Value for searching (optional)
+ * @param projectsFilterModel (optional)
+ * @return ApiResponse<List<ProjectApiResult>>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
* Pagination-Skip - Skipped amount of items * Pagination-Take - Taken items * Pagination-Pages - Expected number of pages * Pagination-Total-Items - Total count of items
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse> adaptersProjectsSearchPostWithHttpInfo(Integer skip, Integer take, String orderBy, String searchField, String searchValue, ProjectsFilterModel projectsFilterModel) throws ApiException {
+ // Query parameters
+ List localVarQueryParams = new ArrayList<>(
+ apiClient.parameterToPairs("", "Skip", skip)
+ );
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "Take", take));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "OrderBy", orderBy));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "SearchField", searchField));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "SearchValue", searchValue));
+
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType("application/json");
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ GenericType> localVarReturnType = new GenericType>() {};
+ return apiClient.invokeAPI("ProjectsApi.adaptersProjectsSearchPost", "/adapters/projects/search", "POST", localVarQueryParams, projectsFilterModel,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, localVarReturnType, false);
+ }
+}
diff --git a/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/SectionsApi.java b/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/SectionsApi.java
new file mode 100644
index 0000000..29189ac
--- /dev/null
+++ b/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/SectionsApi.java
@@ -0,0 +1,172 @@
+package ru.testit.adaptersapi.api;
+
+import ru.testit.adaptersapi.invoker.ApiException;
+import ru.testit.adaptersapi.invoker.ApiClient;
+import ru.testit.adaptersapi.invoker.ApiResponse;
+import ru.testit.adaptersapi.invoker.Configuration;
+import ru.testit.adaptersapi.invoker.Pair;
+
+import jakarta.ws.rs.core.GenericType;
+
+import ru.testit.adaptersapi.model.DeletionState;
+import ru.testit.adaptersapi.model.ProblemDetails;
+import ru.testit.adaptersapi.model.SectionPostModel;
+import ru.testit.adaptersapi.model.SectionWithStepsModel;
+import java.util.UUID;
+import ru.testit.adaptersapi.model.ValidationProblemDetails;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.Map;
+
+@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.11.0")
+public class SectionsApi {
+ private ApiClient apiClient;
+
+ public SectionsApi() {
+ this(Configuration.getDefaultApiClient());
+ }
+
+ public SectionsApi(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ /**
+ * Get the API client
+ *
+ * @return API client
+ */
+ public ApiClient getApiClient() {
+ return apiClient;
+ }
+
+ /**
+ * Set the API client
+ *
+ * @param apiClient an instance of API client
+ */
+ public void setApiClient(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ /**
+ * Get section
+ *
+ * @param id (required)
+ * @param isDeleted (optional)
+ * @return SectionWithStepsModel
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public SectionWithStepsModel adaptersSectionsIdGet(UUID id, DeletionState isDeleted) throws ApiException {
+ return adaptersSectionsIdGetWithHttpInfo(id, isDeleted).getData();
+ }
+
+ /**
+ * Get section
+ *
+ * @param id (required)
+ * @param isDeleted (optional)
+ * @return ApiResponse<SectionWithStepsModel>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse adaptersSectionsIdGetWithHttpInfo(UUID id, DeletionState isDeleted) throws ApiException {
+ // Check required parameters
+ if (id == null) {
+ throw new ApiException(400, "Missing the required parameter 'id' when calling adaptersSectionsIdGet");
+ }
+
+ // Path parameters
+ String localVarPath = "/adapters/sections/{id}"
+ .replaceAll("\\{id}", apiClient.escapeString(id.toString()));
+
+ // Query parameters
+ List localVarQueryParams = new ArrayList<>(
+ apiClient.parameterToPairs("", "isDeleted", isDeleted)
+ );
+
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType();
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI("SectionsApi.adaptersSectionsIdGet", localVarPath, "GET", localVarQueryParams, null,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, localVarReturnType, false);
+ }
+ /**
+ * Create section
+ *
+ * @param sectionPostModel (optional)
+ * @return SectionWithStepsModel
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
201
Created
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public SectionWithStepsModel adaptersSectionsPost(SectionPostModel sectionPostModel) throws ApiException {
+ return adaptersSectionsPostWithHttpInfo(sectionPostModel).getData();
+ }
+
+ /**
+ * Create section
+ *
+ * @param sectionPostModel (optional)
+ * @return ApiResponse<SectionWithStepsModel>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
201
Created
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse adaptersSectionsPostWithHttpInfo(SectionPostModel sectionPostModel) throws ApiException {
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType("application/json");
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI("SectionsApi.adaptersSectionsPost", "/adapters/sections", "POST", new ArrayList<>(), sectionPostModel,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, localVarReturnType, false);
+ }
+}
diff --git a/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/TestResultsApi.java b/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/TestResultsApi.java
new file mode 100644
index 0000000..2d0c88b
--- /dev/null
+++ b/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/TestResultsApi.java
@@ -0,0 +1,245 @@
+package ru.testit.adaptersapi.api;
+
+import ru.testit.adaptersapi.invoker.ApiException;
+import ru.testit.adaptersapi.invoker.ApiClient;
+import ru.testit.adaptersapi.invoker.ApiResponse;
+import ru.testit.adaptersapi.invoker.Configuration;
+import ru.testit.adaptersapi.invoker.Pair;
+
+import jakarta.ws.rs.core.GenericType;
+
+import ru.testit.adaptersapi.model.ProblemDetails;
+import ru.testit.adaptersapi.model.TestResultResponse;
+import ru.testit.adaptersapi.model.TestResultShortResponse;
+import ru.testit.adaptersapi.model.TestResultUpdateRequest;
+import ru.testit.adaptersapi.model.TestResultsFilterApiModel;
+import java.util.UUID;
+import ru.testit.adaptersapi.model.ValidationProblemDetails;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.Map;
+
+@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.11.0")
+public class TestResultsApi {
+ private ApiClient apiClient;
+
+ public TestResultsApi() {
+ this(Configuration.getDefaultApiClient());
+ }
+
+ public TestResultsApi(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ /**
+ * Get the API client
+ *
+ * @return API client
+ */
+ public ApiClient getApiClient() {
+ return apiClient;
+ }
+
+ /**
+ * Set the API client
+ *
+ * @param apiClient an instance of API client
+ */
+ public void setApiClient(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ /**
+ * Get test result by ID
+ *
+ * @param id (required)
+ * @return TestResultResponse
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public TestResultResponse adaptersTestResultsIdGet(UUID id) throws ApiException {
+ return adaptersTestResultsIdGetWithHttpInfo(id).getData();
+ }
+
+ /**
+ * Get test result by ID
+ *
+ * @param id (required)
+ * @return ApiResponse<TestResultResponse>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse adaptersTestResultsIdGetWithHttpInfo(UUID id) throws ApiException {
+ // Check required parameters
+ if (id == null) {
+ throw new ApiException(400, "Missing the required parameter 'id' when calling adaptersTestResultsIdGet");
+ }
+
+ // Path parameters
+ String localVarPath = "/adapters/testResults/{id}"
+ .replaceAll("\\{id}", apiClient.escapeString(id.toString()));
+
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType();
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI("TestResultsApi.adaptersTestResultsIdGet", localVarPath, "GET", new ArrayList<>(), null,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, localVarReturnType, false);
+ }
+ /**
+ * Edit test result by ID
+ *
+ * @param id (required)
+ * @param testResultUpdateRequest (optional)
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public void adaptersTestResultsIdPut(UUID id, TestResultUpdateRequest testResultUpdateRequest) throws ApiException {
+ adaptersTestResultsIdPutWithHttpInfo(id, testResultUpdateRequest);
+ }
+
+ /**
+ * Edit test result by ID
+ *
+ * @param id (required)
+ * @param testResultUpdateRequest (optional)
+ * @return ApiResponse<Void>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse adaptersTestResultsIdPutWithHttpInfo(UUID id, TestResultUpdateRequest testResultUpdateRequest) throws ApiException {
+ // Check required parameters
+ if (id == null) {
+ throw new ApiException(400, "Missing the required parameter 'id' when calling adaptersTestResultsIdPut");
+ }
+
+ // Path parameters
+ String localVarPath = "/adapters/testResults/{id}"
+ .replaceAll("\\{id}", apiClient.escapeString(id.toString()));
+
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType("application/json");
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ return apiClient.invokeAPI("TestResultsApi.adaptersTestResultsIdPut", localVarPath, "PUT", new ArrayList<>(), testResultUpdateRequest,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, null, false);
+ }
+ /**
+ * Search for test results
+ *
+ * @param skip Amount of items to be skipped (offset) (optional)
+ * @param take Amount of items to be taken (limit) (optional)
+ * @param orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional)
+ * @param searchField Property name for searching (optional)
+ * @param searchValue Value for searching (optional)
+ * @param testResultsFilterApiModel (optional)
+ * @return List<TestResultShortResponse>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
* Pagination-Skip - Skipped amount of items * Pagination-Take - Taken items * Pagination-Pages - Expected number of pages * Pagination-Total-Items - Total count of items
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public List adaptersTestResultsSearchPost(Integer skip, Integer take, String orderBy, String searchField, String searchValue, TestResultsFilterApiModel testResultsFilterApiModel) throws ApiException {
+ return adaptersTestResultsSearchPostWithHttpInfo(skip, take, orderBy, searchField, searchValue, testResultsFilterApiModel).getData();
+ }
+
+ /**
+ * Search for test results
+ *
+ * @param skip Amount of items to be skipped (offset) (optional)
+ * @param take Amount of items to be taken (limit) (optional)
+ * @param orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional)
+ * @param searchField Property name for searching (optional)
+ * @param searchValue Value for searching (optional)
+ * @param testResultsFilterApiModel (optional)
+ * @return ApiResponse<List<TestResultShortResponse>>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
* Pagination-Skip - Skipped amount of items * Pagination-Take - Taken items * Pagination-Pages - Expected number of pages * Pagination-Total-Items - Total count of items
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse> adaptersTestResultsSearchPostWithHttpInfo(Integer skip, Integer take, String orderBy, String searchField, String searchValue, TestResultsFilterApiModel testResultsFilterApiModel) throws ApiException {
+ // Query parameters
+ List localVarQueryParams = new ArrayList<>(
+ apiClient.parameterToPairs("", "Skip", skip)
+ );
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "Take", take));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "OrderBy", orderBy));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "SearchField", searchField));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "SearchValue", searchValue));
+
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType("application/json");
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ GenericType> localVarReturnType = new GenericType>() {};
+ return apiClient.invokeAPI("TestResultsApi.adaptersTestResultsSearchPost", "/adapters/testResults/search", "POST", localVarQueryParams, testResultsFilterApiModel,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, localVarReturnType, false);
+ }
+}
diff --git a/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/TestRunsApi.java b/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/TestRunsApi.java
new file mode 100644
index 0000000..5bf27b7
--- /dev/null
+++ b/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/TestRunsApi.java
@@ -0,0 +1,515 @@
+package ru.testit.adaptersapi.api;
+
+import ru.testit.adaptersapi.invoker.ApiException;
+import ru.testit.adaptersapi.invoker.ApiClient;
+import ru.testit.adaptersapi.invoker.ApiResponse;
+import ru.testit.adaptersapi.invoker.Configuration;
+import ru.testit.adaptersapi.invoker.Pair;
+
+import jakarta.ws.rs.core.GenericType;
+
+import ru.testit.adaptersapi.model.AutoTestResultsForTestRunModel;
+import ru.testit.adaptersapi.model.CreateEmptyTestRunApiModel;
+import ru.testit.adaptersapi.model.ManualRerunApiResult;
+import ru.testit.adaptersapi.model.ManualRerunSelectTestResultsApiModel;
+import ru.testit.adaptersapi.model.ProblemDetails;
+import ru.testit.adaptersapi.model.TestRunApiResult;
+import java.util.UUID;
+import ru.testit.adaptersapi.model.UpdateEmptyTestRunApiModel;
+import ru.testit.adaptersapi.model.ValidationProblemDetails;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.Map;
+
+@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.11.0")
+public class TestRunsApi {
+ private ApiClient apiClient;
+
+ public TestRunsApi() {
+ this(Configuration.getDefaultApiClient());
+ }
+
+ public TestRunsApi(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ /**
+ * Get the API client
+ *
+ * @return API client
+ */
+ public ApiClient getApiClient() {
+ return apiClient;
+ }
+
+ /**
+ * Set the API client
+ *
+ * @param apiClient an instance of API client
+ */
+ public void setApiClient(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ /**
+ * Complete TestRun
+ *
+ * @param id (required)
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
204
No Content
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public void adaptersTestRunsIdCompletePost(UUID id) throws ApiException {
+ adaptersTestRunsIdCompletePostWithHttpInfo(id);
+ }
+
+ /**
+ * Complete TestRun
+ *
+ * @param id (required)
+ * @return ApiResponse<Void>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
204
No Content
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse adaptersTestRunsIdCompletePostWithHttpInfo(UUID id) throws ApiException {
+ // Check required parameters
+ if (id == null) {
+ throw new ApiException(400, "Missing the required parameter 'id' when calling adaptersTestRunsIdCompletePost");
+ }
+
+ // Path parameters
+ String localVarPath = "/adapters/testRuns/{id}/complete"
+ .replaceAll("\\{id}", apiClient.escapeString(id.toString()));
+
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType();
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ return apiClient.invokeAPI("TestRunsApi.adaptersTestRunsIdCompletePost", localVarPath, "POST", new ArrayList<>(), null,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, null, false);
+ }
+ /**
+ * Get TestRun by Id
+ *
+ * @param id (required)
+ * @return TestRunApiResult
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public TestRunApiResult adaptersTestRunsIdGet(UUID id) throws ApiException {
+ return adaptersTestRunsIdGetWithHttpInfo(id).getData();
+ }
+
+ /**
+ * Get TestRun by Id
+ *
+ * @param id (required)
+ * @return ApiResponse<TestRunApiResult>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse adaptersTestRunsIdGetWithHttpInfo(UUID id) throws ApiException {
+ // Check required parameters
+ if (id == null) {
+ throw new ApiException(400, "Missing the required parameter 'id' when calling adaptersTestRunsIdGet");
+ }
+
+ // Path parameters
+ String localVarPath = "/adapters/testRuns/{id}"
+ .replaceAll("\\{id}", apiClient.escapeString(id.toString()));
+
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType();
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI("TestRunsApi.adaptersTestRunsIdGet", localVarPath, "GET", new ArrayList<>(), null,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, localVarReturnType, false);
+ }
+ /**
+ * Manual autotests rerun in test run
+ *
+ * @param id (required)
+ * @param manualRerunSelectTestResultsApiModel (optional)
+ * @return ManualRerunApiResult
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ManualRerunApiResult adaptersTestRunsIdRerunsPost(UUID id, ManualRerunSelectTestResultsApiModel manualRerunSelectTestResultsApiModel) throws ApiException {
+ return adaptersTestRunsIdRerunsPostWithHttpInfo(id, manualRerunSelectTestResultsApiModel).getData();
+ }
+
+ /**
+ * Manual autotests rerun in test run
+ *
+ * @param id (required)
+ * @param manualRerunSelectTestResultsApiModel (optional)
+ * @return ApiResponse<ManualRerunApiResult>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse adaptersTestRunsIdRerunsPostWithHttpInfo(UUID id, ManualRerunSelectTestResultsApiModel manualRerunSelectTestResultsApiModel) throws ApiException {
+ // Check required parameters
+ if (id == null) {
+ throw new ApiException(400, "Missing the required parameter 'id' when calling adaptersTestRunsIdRerunsPost");
+ }
+
+ // Path parameters
+ String localVarPath = "/adapters/testRuns/{id}/reruns"
+ .replaceAll("\\{id}", apiClient.escapeString(id.toString()));
+
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType("application/json");
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI("TestRunsApi.adaptersTestRunsIdRerunsPost", localVarPath, "POST", new ArrayList<>(), manualRerunSelectTestResultsApiModel,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, localVarReturnType, false);
+ }
+ /**
+ * Start TestRun
+ *
+ * @param id (required)
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
204
No Content
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public void adaptersTestRunsIdStartPost(UUID id) throws ApiException {
+ adaptersTestRunsIdStartPostWithHttpInfo(id);
+ }
+
+ /**
+ * Start TestRun
+ *
+ * @param id (required)
+ * @return ApiResponse<Void>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
204
No Content
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse adaptersTestRunsIdStartPostWithHttpInfo(UUID id) throws ApiException {
+ // Check required parameters
+ if (id == null) {
+ throw new ApiException(400, "Missing the required parameter 'id' when calling adaptersTestRunsIdStartPost");
+ }
+
+ // Path parameters
+ String localVarPath = "/adapters/testRuns/{id}/start"
+ .replaceAll("\\{id}", apiClient.escapeString(id.toString()));
+
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType();
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ return apiClient.invokeAPI("TestRunsApi.adaptersTestRunsIdStartPost", localVarPath, "POST", new ArrayList<>(), null,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, null, false);
+ }
+ /**
+ * Stop TestRun
+ *
+ * @param id (required)
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
204
No Content
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public void adaptersTestRunsIdStopPost(UUID id) throws ApiException {
+ adaptersTestRunsIdStopPostWithHttpInfo(id);
+ }
+
+ /**
+ * Stop TestRun
+ *
+ * @param id (required)
+ * @return ApiResponse<Void>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
204
No Content
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse adaptersTestRunsIdStopPostWithHttpInfo(UUID id) throws ApiException {
+ // Check required parameters
+ if (id == null) {
+ throw new ApiException(400, "Missing the required parameter 'id' when calling adaptersTestRunsIdStopPost");
+ }
+
+ // Path parameters
+ String localVarPath = "/adapters/testRuns/{id}/stop"
+ .replaceAll("\\{id}", apiClient.escapeString(id.toString()));
+
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType();
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ return apiClient.invokeAPI("TestRunsApi.adaptersTestRunsIdStopPost", localVarPath, "POST", new ArrayList<>(), null,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, null, false);
+ }
+ /**
+ * Send test results to the test runs in the system
+ *
+ * @param id (required)
+ * @param autoTestResultsForTestRunModel (optional)
+ * @return List<UUID>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public List adaptersTestRunsIdTestResultsPost(UUID id, List autoTestResultsForTestRunModel) throws ApiException {
+ return adaptersTestRunsIdTestResultsPostWithHttpInfo(id, autoTestResultsForTestRunModel).getData();
+ }
+
+ /**
+ * Send test results to the test runs in the system
+ *
+ * @param id (required)
+ * @param autoTestResultsForTestRunModel (optional)
+ * @return ApiResponse<List<UUID>>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse> adaptersTestRunsIdTestResultsPostWithHttpInfo(UUID id, List autoTestResultsForTestRunModel) throws ApiException {
+ // Check required parameters
+ if (id == null) {
+ throw new ApiException(400, "Missing the required parameter 'id' when calling adaptersTestRunsIdTestResultsPost");
+ }
+
+ // Path parameters
+ String localVarPath = "/adapters/testRuns/{id}/test-results"
+ .replaceAll("\\{id}", apiClient.escapeString(id.toString()));
+
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType("application/json");
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ GenericType> localVarReturnType = new GenericType>() {};
+ return apiClient.invokeAPI("TestRunsApi.adaptersTestRunsIdTestResultsPost", localVarPath, "POST", new ArrayList<>(), autoTestResultsForTestRunModel,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, localVarReturnType, false);
+ }
+ /**
+ * Create empty TestRun
+ *
+ * @param createEmptyTestRunApiModel (optional)
+ * @return TestRunApiResult
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
201
Created
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public TestRunApiResult adaptersTestRunsPost(CreateEmptyTestRunApiModel createEmptyTestRunApiModel) throws ApiException {
+ return adaptersTestRunsPostWithHttpInfo(createEmptyTestRunApiModel).getData();
+ }
+
+ /**
+ * Create empty TestRun
+ *
+ * @param createEmptyTestRunApiModel (optional)
+ * @return ApiResponse<TestRunApiResult>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
201
Created
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse adaptersTestRunsPostWithHttpInfo(CreateEmptyTestRunApiModel createEmptyTestRunApiModel) throws ApiException {
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType("application/json");
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI("TestRunsApi.adaptersTestRunsPost", "/adapters/testRuns", "POST", new ArrayList<>(), createEmptyTestRunApiModel,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, localVarReturnType, false);
+ }
+ /**
+ * Update empty TestRun
+ *
+ * @param updateEmptyTestRunApiModel (optional)
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
204
No Content
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public void adaptersTestRunsPut(UpdateEmptyTestRunApiModel updateEmptyTestRunApiModel) throws ApiException {
+ adaptersTestRunsPutWithHttpInfo(updateEmptyTestRunApiModel);
+ }
+
+ /**
+ * Update empty TestRun
+ *
+ * @param updateEmptyTestRunApiModel (optional)
+ * @return ApiResponse<Void>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
204
No Content
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse adaptersTestRunsPutWithHttpInfo(UpdateEmptyTestRunApiModel updateEmptyTestRunApiModel) throws ApiException {
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType("application/json");
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ return apiClient.invokeAPI("TestRunsApi.adaptersTestRunsPut", "/adapters/testRuns", "PUT", new ArrayList<>(), updateEmptyTestRunApiModel,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, null, false);
+ }
+}
diff --git a/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/WorkItemsApi.java b/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/WorkItemsApi.java
new file mode 100644
index 0000000..7d6b4a6
--- /dev/null
+++ b/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/WorkItemsApi.java
@@ -0,0 +1,246 @@
+package ru.testit.adaptersapi.api;
+
+import ru.testit.adaptersapi.invoker.ApiException;
+import ru.testit.adaptersapi.invoker.ApiClient;
+import ru.testit.adaptersapi.invoker.ApiResponse;
+import ru.testit.adaptersapi.invoker.Configuration;
+import ru.testit.adaptersapi.invoker.Pair;
+
+import jakarta.ws.rs.core.GenericType;
+
+import ru.testit.adaptersapi.model.CreateWorkItemApiModel;
+import ru.testit.adaptersapi.model.ProblemDetails;
+import java.util.UUID;
+import ru.testit.adaptersapi.model.ValidationProblemDetails;
+import ru.testit.adaptersapi.model.WorkItemApiResult;
+import ru.testit.adaptersapi.model.WorkItemSelectApiModel;
+import ru.testit.adaptersapi.model.WorkItemShortApiResult;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.Map;
+
+@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.11.0")
+public class WorkItemsApi {
+ private ApiClient apiClient;
+
+ public WorkItemsApi() {
+ this(Configuration.getDefaultApiClient());
+ }
+
+ public WorkItemsApi(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ /**
+ * Get the API client
+ *
+ * @return API client
+ */
+ public ApiClient getApiClient() {
+ return apiClient;
+ }
+
+ /**
+ * Set the API client
+ *
+ * @param apiClient an instance of API client
+ */
+ public void setApiClient(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ /**
+ * Get Test Case, Checklist or Shared Step by Id or GlobalId
+ *
+ * @param id Internal (UUID) or global (integer) identifier (required)
+ * @param versionId (optional)
+ * @param versionNumber (optional)
+ * @return WorkItemApiResult
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public WorkItemApiResult adaptersWorkItemsIdGet(String id, UUID versionId, Integer versionNumber) throws ApiException {
+ return adaptersWorkItemsIdGetWithHttpInfo(id, versionId, versionNumber).getData();
+ }
+
+ /**
+ * Get Test Case, Checklist or Shared Step by Id or GlobalId
+ *
+ * @param id Internal (UUID) or global (integer) identifier (required)
+ * @param versionId (optional)
+ * @param versionNumber (optional)
+ * @return ApiResponse<WorkItemApiResult>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse adaptersWorkItemsIdGetWithHttpInfo(String id, UUID versionId, Integer versionNumber) throws ApiException {
+ // Check required parameters
+ if (id == null) {
+ throw new ApiException(400, "Missing the required parameter 'id' when calling adaptersWorkItemsIdGet");
+ }
+
+ // Path parameters
+ String localVarPath = "/adapters/workItems/{id}"
+ .replaceAll("\\{id}", apiClient.escapeString(id.toString()));
+
+ // Query parameters
+ List localVarQueryParams = new ArrayList<>(
+ apiClient.parameterToPairs("", "versionId", versionId)
+ );
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "versionNumber", versionNumber));
+
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType();
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI("WorkItemsApi.adaptersWorkItemsIdGet", localVarPath, "GET", localVarQueryParams, null,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, localVarReturnType, false);
+ }
+ /**
+ * Creates work item
+ *
+ * @param createWorkItemApiModel (optional)
+ * @return WorkItemApiResult
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
201
Created
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public WorkItemApiResult adaptersWorkItemsPost(CreateWorkItemApiModel createWorkItemApiModel) throws ApiException {
+ return adaptersWorkItemsPostWithHttpInfo(createWorkItemApiModel).getData();
+ }
+
+ /**
+ * Creates work item
+ *
+ * @param createWorkItemApiModel (optional)
+ * @return ApiResponse<WorkItemApiResult>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
201
Created
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse adaptersWorkItemsPostWithHttpInfo(CreateWorkItemApiModel createWorkItemApiModel) throws ApiException {
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType("application/json");
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI("WorkItemsApi.adaptersWorkItemsPost", "/adapters/workItems", "POST", new ArrayList<>(), createWorkItemApiModel,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, localVarReturnType, false);
+ }
+ /**
+ * Search for work items
+ *
+ * @param skip Amount of items to be skipped (offset) (optional)
+ * @param take Amount of items to be taken (limit) (optional)
+ * @param orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional)
+ * @param searchField Property name for searching (optional)
+ * @param searchValue Value for searching (optional)
+ * @param workItemSelectApiModel (optional)
+ * @return List<WorkItemShortApiResult>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
* Pagination-Skip - Skipped amount of items * Pagination-Take - Taken items * Pagination-Pages - Expected number of pages * Pagination-Total-Items - Total count of items
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public List adaptersWorkItemsSearchPost(Integer skip, Integer take, String orderBy, String searchField, String searchValue, WorkItemSelectApiModel workItemSelectApiModel) throws ApiException {
+ return adaptersWorkItemsSearchPostWithHttpInfo(skip, take, orderBy, searchField, searchValue, workItemSelectApiModel).getData();
+ }
+
+ /**
+ * Search for work items
+ *
+ * @param skip Amount of items to be skipped (offset) (optional)
+ * @param take Amount of items to be taken (limit) (optional)
+ * @param orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional)
+ * @param searchField Property name for searching (optional)
+ * @param searchValue Value for searching (optional)
+ * @param workItemSelectApiModel (optional)
+ * @return ApiResponse<List<WorkItemShortApiResult>>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
* Pagination-Skip - Skipped amount of items * Pagination-Take - Taken items * Pagination-Pages - Expected number of pages * Pagination-Total-Items - Total count of items
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public ApiResponse> adaptersWorkItemsSearchPostWithHttpInfo(Integer skip, Integer take, String orderBy, String searchField, String searchValue, WorkItemSelectApiModel workItemSelectApiModel) throws ApiException {
+ // Query parameters
+ List localVarQueryParams = new ArrayList<>(
+ apiClient.parameterToPairs("", "Skip", skip)
+ );
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "Take", take));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "OrderBy", orderBy));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "SearchField", searchField));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "SearchValue", searchValue));
+
+ String localVarAccept = apiClient.selectHeaderAccept("application/json");
+ String localVarContentType = apiClient.selectHeaderContentType("application/json");
+ String[] localVarAuthNames = new String[] {"PrivateToken", "Cookies"};
+ GenericType> localVarReturnType = new GenericType>() {};
+ return apiClient.invokeAPI("WorkItemsApi.adaptersWorkItemsSearchPost", "/adapters/workItems/search", "POST", localVarQueryParams, workItemSelectApiModel,
+ new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
+ localVarAuthNames, localVarReturnType, false);
+ }
+}
diff --git a/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/WorkflowsApi.java b/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/WorkflowsApi.java
new file mode 100644
index 0000000..f4a3f16
--- /dev/null
+++ b/testit-java-commons/src/main/java/ru/testit/adaptersapi/api/WorkflowsApi.java
@@ -0,0 +1,112 @@
+package ru.testit.adaptersapi.api;
+
+import ru.testit.adaptersapi.invoker.ApiException;
+import ru.testit.adaptersapi.invoker.ApiClient;
+import ru.testit.adaptersapi.invoker.ApiResponse;
+import ru.testit.adaptersapi.invoker.Configuration;
+import ru.testit.adaptersapi.invoker.Pair;
+
+import jakarta.ws.rs.core.GenericType;
+
+import ru.testit.adaptersapi.model.ProblemDetails;
+import java.util.UUID;
+import ru.testit.adaptersapi.model.ValidationProblemDetails;
+import ru.testit.adaptersapi.model.WorkflowApiResult;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.Map;
+
+@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.11.0")
+public class WorkflowsApi {
+ private ApiClient apiClient;
+
+ public WorkflowsApi() {
+ this(Configuration.getDefaultApiClient());
+ }
+
+ public WorkflowsApi(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ /**
+ * Get the API client
+ *
+ * @return API client
+ */
+ public ApiClient getApiClient() {
+ return apiClient;
+ }
+
+ /**
+ * Set the API client
+ *
+ * @param apiClient an instance of API client
+ */
+ public void setApiClient(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ /**
+ *
+ *
+ * @param id (required)
+ * @return WorkflowApiResult
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+
Response Details
+
Status Code
Description
Response Headers
+
200
OK
-
+
400
Bad Request
-
+
401
Unauthorized
-
+
403
Forbidden
-
+
404
Not Found
-
+
409
Conflict
-
+
422
Unprocessable Entity
-
+
+ */
+ public WorkflowApiResult adaptersWorkflowsIdGet(UUID id) throws ApiException {
+ return adaptersWorkflowsIdGetWithHttpInfo(id).getData();
+ }
+
+ /**
+ *
+ *
+ * @param id (required)
+ * @return ApiResponse<WorkflowApiResult>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+
+ *
+ * @param httpClient a {@link jakarta.ws.rs.client.Client} object.
+ * @return a {@link ApiClient} object.
+ */
+ public ApiClient setHttpClient(Client httpClient) {
+ this.httpClient = httpClient;
+ return this;
+ }
+
+ /**
+ * Returns the base URL to the location where the OpenAPI document is being served.
+ *
+ * @return The base URL to the target host.
+ */
+ public String getBasePath() {
+ return basePath;
+ }
+
+ /**
+ * Sets the base URL to the location where the OpenAPI document is being served.
+ *
+ * @param basePath The base URL to the target host.
+ * @return a {@link ApiClient} object.
+ */
+ public ApiClient setBasePath(String basePath) {
+ this.basePath = basePath;
+ return this;
+ }
+
+ /**
+ *
Getter for the field servers.
+ *
+ * @return a {@link java.util.List} of servers.
+ */
+ public List getServers() {
+ return servers;
+ }
+
+ /**
+ *