Skip to content

Latest commit

 

History

History
77 lines (56 loc) · 2.31 KB

RestartApplicationApi.md

File metadata and controls

77 lines (56 loc) · 2.31 KB

RestartApplicationApi

All URIs are relative to http://localhost

Method HTTP request Description
restartApplicationRestart GET /api/v{version}/RestartApplication/restart

restartApplicationRestart

restartApplicationRestart(version)

Example

// Import classes:
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.auth.*;
import org.openapitools.client.models.*;
import org.openapitools.client.api.RestartApplicationApi;

public class Example {
  public static void main(String[] args) {
    ApiClient defaultClient = Configuration.getDefaultApiClient();
    defaultClient.setBasePath("http://localhost");
    
    // Configure OAuth2 access token for authorization: oauth2
    OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
    oauth2.setAccessToken("YOUR ACCESS TOKEN");

    // Configure OAuth2 access token for authorization: oauth2
    OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
    oauth2.setAccessToken("YOUR ACCESS TOKEN");

    RestartApplicationApi apiInstance = new RestartApplicationApi(defaultClient);
    String version = "version_example"; // String | 
    try {
      apiInstance.restartApplicationRestart(version);
    } catch (ApiException e) {
      System.err.println("Exception when calling RestartApplicationApi#restartApplicationRestart");
      System.err.println("Status code: " + e.getCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }
  }
}

Parameters

Name Type Description Notes
version String

Return type

null (empty response body)

Authorization

oauth2, oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
200 Success -