Package com.w3asel.inventree.api
Class VersionTextApi
java.lang.Object
com.w3asel.inventree.api.VersionTextApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex) versionTextList(Integer startVersion, Integer versions) Simple JSON endpoint for InvenTree version text.okhttp3.CallversionTextListAsync(Integer startVersion, Integer versions, ApiCallback<List<VersionInformation>> _callback) (asynchronously) Simple JSON endpoint for InvenTree version text.okhttp3.CallversionTextListCall(Integer startVersion, Integer versions, ApiCallback _callback) Build call for versionTextListversionTextListWithHttpInfo(Integer startVersion, Integer versions) Simple JSON endpoint for InvenTree version text.
-
Constructor Details
-
VersionTextApi
public VersionTextApi() -
VersionTextApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
versionTextListCall
public okhttp3.Call versionTextListCall(@Nullable Integer startVersion, @Nullable Integer versions, ApiCallback _callback) throws ApiException Build call for versionTextList- Parameters:
startVersion- First version to report. Defaults to return the latest {versions} versions. (optional)versions- Number of versions to return. (optional, default to 10)_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 -
-
versionTextList
public List<VersionInformation> versionTextList(@Nullable Integer startVersion, @Nullable Integer versions) throws ApiException Simple JSON endpoint for InvenTree version text.- Parameters:
startVersion- First version to report. Defaults to return the latest {versions} versions. (optional)versions- Number of versions to return. (optional, default to 10)- Returns:
- List<VersionInformation>
- 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 -
-
versionTextListWithHttpInfo
public ApiResponse<List<VersionInformation>> versionTextListWithHttpInfo(@Nullable Integer startVersion, @Nullable Integer versions) throws ApiException Simple JSON endpoint for InvenTree version text.- Parameters:
startVersion- First version to report. Defaults to return the latest {versions} versions. (optional)versions- Number of versions to return. (optional, default to 10)- Returns:
- ApiResponse<List<VersionInformation>>
- 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 -
-
versionTextListAsync
public okhttp3.Call versionTextListAsync(@Nullable Integer startVersion, @Nullable Integer versions, ApiCallback<List<VersionInformation>> _callback) throws ApiException (asynchronously) Simple JSON endpoint for InvenTree version text.- Parameters:
startVersion- First version to report. Defaults to return the latest {versions} versions. (optional)versions- Number of versions to return. (optional, default to 10)_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 -
-