Class DefaultApi

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

public class DefaultApi extends Object
  • Constructor Details

    • DefaultApi

      public DefaultApi()
    • DefaultApi

      public DefaultApi(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)
    • rootRetrieveCall

      public okhttp3.Call rootRetrieveCall(ApiCallback _callback) throws ApiException
      Build call for rootRetrieve
      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 InvenTree server information -
    • rootRetrieve

      public InfoApi rootRetrieve() throws ApiException
      Serve current server information.
      Returns:
      InfoApi
      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 InvenTree server information -
    • rootRetrieveWithHttpInfo

      public ApiResponse<InfoApi> rootRetrieveWithHttpInfo() throws ApiException
      Serve current server information.
      Returns:
      ApiResponse<InfoApi>
      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 InvenTree server information -
    • rootRetrieveAsync

      public okhttp3.Call rootRetrieveAsync(ApiCallback<InfoApi> _callback) throws ApiException
      (asynchronously) Serve current server information.
      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 InvenTree server information -