Class VersionApi

java.lang.Object
com.w3asel.inventree.api.VersionApi

public class VersionApi extends Object
  • Constructor Details

    • VersionApi

      public VersionApi()
    • VersionApi

      public VersionApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • getHostIndex

      public int getHostIndex()
    • setHostIndex

      public void setHostIndex(int hostIndex)
    • getCustomBaseUrl

      public String getCustomBaseUrl()
    • setCustomBaseUrl

      public void setCustomBaseUrl(String customBaseUrl)
    • versionRetrieveCall

      public okhttp3.Call versionRetrieveCall(ApiCallback _callback) throws ApiException
      Build call for versionRetrieve
      Parameters:
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 -
    • versionRetrieve

      public VersionView versionRetrieve() throws ApiException
      Return information about the InvenTree server.
      Returns:
      VersionView
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 -
    • versionRetrieveWithHttpInfo

      public ApiResponse<VersionView> versionRetrieveWithHttpInfo() throws ApiException
      Return information about the InvenTree server.
      Returns:
      ApiResponse<VersionView>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 -
    • versionRetrieveAsync

      public okhttp3.Call versionRetrieveAsync(ApiCallback<VersionView> _callback) throws ApiException
      (asynchronously) Return information about the InvenTree server.
      Parameters:
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 -