# TestResultsApi All URIs are relative to *http://localhost* | Method | HTTP request | Description | |------------- | ------------- | -------------| | [**apiV2TestResultsIdAggregatedGet**](TestResultsApi.md#apiV2TestResultsIdAggregatedGet) | **GET** /api/v2/testResults/{id}/aggregated | Get test result by ID aggregated with previous results | | [**apiV2TestResultsIdAttachmentsAttachmentIdPut**](TestResultsApi.md#apiV2TestResultsIdAttachmentsAttachmentIdPut) | **PUT** /api/v2/testResults/{id}/attachments/{attachmentId} | Attach file to the test result | | [**apiV2TestResultsIdAttachmentsInfoGet**](TestResultsApi.md#apiV2TestResultsIdAttachmentsInfoGet) | **GET** /api/v2/testResults/{id}/attachments/info | Get test result attachments meta-information | | [**apiV2TestResultsIdGet**](TestResultsApi.md#apiV2TestResultsIdGet) | **GET** /api/v2/testResults/{id} | Get test result by ID | | [**apiV2TestResultsIdPut**](TestResultsApi.md#apiV2TestResultsIdPut) | **PUT** /api/v2/testResults/{id} | Edit test result by ID | | [**apiV2TestResultsSearchPost**](TestResultsApi.md#apiV2TestResultsSearchPost) | **POST** /api/v2/testResults/search | Search for test results | | [**apiV2TestResultsStatisticsFilterPost**](TestResultsApi.md#apiV2TestResultsStatisticsFilterPost) | **POST** /api/v2/testResults/statistics/filter | Search for test results and extract statistics | | [**createAttachment**](TestResultsApi.md#createAttachment) | **POST** /api/v2/testResults/{id}/attachments | Upload and link attachment to TestResult | | [**deleteAttachment**](TestResultsApi.md#deleteAttachment) | **DELETE** /api/v2/testResults/{id}/attachments/{attachmentId} | Remove attachment and unlink from TestResult | | [**downloadAttachment**](TestResultsApi.md#downloadAttachment) | **GET** /api/v2/testResults/{id}/attachments/{attachmentId} | Get attachment of TestResult | | [**getAttachment**](TestResultsApi.md#getAttachment) | **GET** /api/v2/testResults/{id}/attachments/{attachmentId}/info | Get Metadata of TestResult's attachment | | [**getAttachments**](TestResultsApi.md#getAttachments) | **GET** /api/v2/testResults/{id}/attachments | Get all attachments of TestResult | # **apiV2TestResultsIdAggregatedGet** > TestResultModel apiV2TestResultsIdAggregatedGet(id) Get test result by ID aggregated with previous results ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **id** | **UUID**| Test result unique ID | [default to null] | ### Return type [**TestResultModel**](../Models/TestResultModel.md) ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json # **apiV2TestResultsIdAttachmentsAttachmentIdPut** > apiV2TestResultsIdAttachmentsAttachmentIdPut(id, attachmentId) Attach file to the test result ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **id** | **UUID**| Test result unique ID | [default to null] | | **attachmentId** | **UUID**| Attachment unique ID | [default to null] | ### Return type null (empty response body) ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json # **apiV2TestResultsIdAttachmentsInfoGet** > List apiV2TestResultsIdAttachmentsInfoGet(id) Get test result attachments meta-information ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **id** | **UUID**| Test result unique ID | [default to null] | ### Return type [**List**](../Models/AttachmentModel.md) ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json # **apiV2TestResultsIdGet** > TestResultModel apiV2TestResultsIdGet(id) Get test result by ID ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **id** | **UUID**| Test result unique ID | [default to null] | ### Return type [**TestResultModel**](../Models/TestResultModel.md) ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json # **apiV2TestResultsIdPut** > apiV2TestResultsIdPut(id, TestResultUpdateModel) Edit test result by ID ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **id** | **UUID**| Test result unique ID | [default to null] | | **TestResultUpdateModel** | [**TestResultUpdateModel**](../Models/TestResultUpdateModel.md)| | [optional] | ### Return type null (empty response body) ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json # **apiV2TestResultsSearchPost** > List apiV2TestResultsSearchPost(Skip, Take, OrderBy, SearchField, SearchValue, TestResultsFilterModel) Search for test results ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **Skip** | **Integer**| Amount of items to be skipped (offset) | [optional] [default to null] | | **Take** | **Integer**| Amount of items to be taken (limit) | [optional] [default to null] | | **OrderBy** | **String**| SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) | [optional] [default to null] | | **SearchField** | **String**| Property name for searching | [optional] [default to null] | | **SearchValue** | **String**| Value for searching | [optional] [default to null] | | **TestResultsFilterModel** | [**TestResultsFilterModel**](../Models/TestResultsFilterModel.md)| | [optional] | ### Return type [**List**](../Models/TestResultShortGetModel.md) ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json # **apiV2TestResultsStatisticsFilterPost** > TestResultsStatisticsGetModel apiV2TestResultsStatisticsFilterPost(TestResultsFilterModel) Search for test results and extract statistics ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **TestResultsFilterModel** | [**TestResultsFilterModel**](../Models/TestResultsFilterModel.md)| | [optional] | ### Return type [**TestResultsStatisticsGetModel**](../Models/TestResultsStatisticsGetModel.md) ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json # **createAttachment** > UUID createAttachment(id, file) Upload and link attachment to TestResult <br>Use case <br>User sets testResultId <br>User attaches a file <br>System creates attachment and links it to the test result <br>System returns attachment identifier ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **id** | **UUID**| Test result internal identifier (guid format) | [default to null] | | **file** | **File**| Select file | [optional] [default to null] | ### Return type **UUID** ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: multipart/form-data - **Accept**: application/json # **deleteAttachment** > deleteAttachment(id, attachmentId) Remove attachment and unlink from TestResult <br>Use case <br>User sets testResultId and attachmentId <br>User attaches a file <br>User runs method execution <br>System deletes attachment and unlinks it from the test result <br>System returns attachment identifier ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **id** | **UUID**| Test result internal identifier (guid format) | [default to null] | | **attachmentId** | **UUID**| Attachment internal identifier (guid format) | [default to null] | ### Return type null (empty response body) ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json # **downloadAttachment** > downloadAttachment(attachmentId, id, width, height, resizeType, backgroundColor, preview) Get attachment of TestResult <br>Use case <br>User sets attachmentId and testResultId <br>[Optional] User sets resize configuration <br>User runs method execution <br>System search attachments by the attachmentId and the testResultId <br> [Optional] If resize configuration is set, System resizes the attachment according to the resize configuration <br>[Optional] Otherwise, System does not resize the attachment <br>System returns attachment as a file ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **attachmentId** | **UUID**| Attachment internal identifier (guid format) | [default to null] | | **id** | **UUID**| Test result internal identifier (guid format) | [default to null] | | **width** | **Integer**| Width of the result image | [optional] [default to null] | | **height** | **Integer**| Height of the result image | [optional] [default to null] | | **resizeType** | [**ImageResizeType**](../Models/.md)| Type of resizing to apply to the result image | [optional] [default to null] [enum: Crop, AddBackgroundStripes] | | **backgroundColor** | **String**| Color of the background if the `resizeType` is `AddBackgroundStripes` | [optional] [default to null] | | **preview** | **Boolean**| If image must be converted to a preview (lower quality, no animation) | [optional] [default to null] | ### Return type null (empty response body) ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json # **getAttachment** > AttachmentModel getAttachment(id, attachmentId) Get Metadata of TestResult's attachment <br>Use case <br>User sets attachmentId and testResultId <br>User runs method execution <br>System search attachment by the attachmentId and the testResultId <br>System returns attachment data ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **id** | **UUID**| Test result internal identifier (guid format) | [default to null] | | **attachmentId** | **UUID**| Attachment internal identifier (guid format) | [default to null] | ### Return type [**AttachmentModel**](../Models/AttachmentModel.md) ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json # **getAttachments** > List getAttachments(id) Get all attachments of TestResult <br>Use case <br>User sets testResultId <br>User runs method execution <br>System search all attachments of the test result <br>System returns attachments enumeration ### Parameters |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **id** | **UUID**| Test result internal identifier (guid format) | [default to null] | ### Return type [**List**](../Models/AttachmentModel.md) ### Authorization [Bearer or PrivateToken](../README.md#Bearer or PrivateToken) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json