All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
apiV2ProjectsProjectIdSettingsAutotestsPost | POST /api/v2/projects/{projectId}/settings/autotests | Set autotest project settings. |
getAutotestProjectSettings | GET /api/v2/projects/{projectId}/settings/autotests | Get autotest project settings. |
apiV2ProjectsProjectIdSettingsAutotestsPost(projectId, apiV2ProjectsProjectIdSettingsAutotestsPostRequest)
Set autotest project settings.
// Import classes:
import ru.testit.client.invoker.ApiClient;
import ru.testit.client.invoker.ApiException;
import ru.testit.client.invoker.Configuration;
import ru.testit.client.invoker.auth.*;
import ru.testit.client.invoker.models.*;
import ru.testit.client.api.ProjectSettingsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure API key authorization: Bearer or PrivateToken
ApiKeyAuth Bearer or PrivateToken = (ApiKeyAuth) defaultClient.getAuthentication("Bearer or PrivateToken");
Bearer or PrivateToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer or PrivateToken.setApiKeyPrefix("Token");
ProjectSettingsApi apiInstance = new ProjectSettingsApi(defaultClient);
String projectId = "projectId_example"; // String |
ApiV2ProjectsProjectIdSettingsAutotestsPostRequest apiV2ProjectsProjectIdSettingsAutotestsPostRequest = new ApiV2ProjectsProjectIdSettingsAutotestsPostRequest(); // ApiV2ProjectsProjectIdSettingsAutotestsPostRequest |
try {
apiInstance.apiV2ProjectsProjectIdSettingsAutotestsPost(projectId, apiV2ProjectsProjectIdSettingsAutotestsPostRequest);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectSettingsApi#apiV2ProjectsProjectIdSettingsAutotestsPost");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | String | ||
apiV2ProjectsProjectIdSettingsAutotestsPostRequest | ApiV2ProjectsProjectIdSettingsAutotestsPostRequest | [optional] |
null (empty response body)
[Bearer or PrivateToken](../README.md#Bearer or PrivateToken)
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
400 | Bad Request | - |
401 | Unauthorized | - |
403 | Forbidden | - |
404 | Not Found | - |
409 | Conflict | - |
422 | Unprocessable Entity | - |
AutoTestProjectSettingsGetModel getAutotestProjectSettings(projectId)
Get autotest project settings.
// Import classes:
import ru.testit.client.invoker.ApiClient;
import ru.testit.client.invoker.ApiException;
import ru.testit.client.invoker.Configuration;
import ru.testit.client.invoker.auth.*;
import ru.testit.client.invoker.models.*;
import ru.testit.client.api.ProjectSettingsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure API key authorization: Bearer or PrivateToken
ApiKeyAuth Bearer or PrivateToken = (ApiKeyAuth) defaultClient.getAuthentication("Bearer or PrivateToken");
Bearer or PrivateToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer or PrivateToken.setApiKeyPrefix("Token");
ProjectSettingsApi apiInstance = new ProjectSettingsApi(defaultClient);
String projectId = "projectId_example"; // String |
try {
AutoTestProjectSettingsGetModel result = apiInstance.getAutotestProjectSettings(projectId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectSettingsApi#getAutotestProjectSettings");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | String |
AutoTestProjectSettingsGetModel
[Bearer or PrivateToken](../README.md#Bearer or PrivateToken)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Unauthorized | - |
403 | Forbidden | - |
404 | Not Found | - |
409 | Conflict | - |
422 | Unprocessable Entity | - |