Package com.w3asel.inventree.api
Class AuthenticationCurrentSessionApi
java.lang.Object
com.w3asel.inventree.api.AuthenticationCurrentSessionApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidLogout Logs out the user from the current session.okhttp3.CallallauthAuthSessionDeleteAsync(ApiCallback<Void> _callback) Logout (asynchronously) Logs out the user from the current session.okhttp3.CallallauthAuthSessionDeleteCall(ApiCallback _callback) Build call for allauthAuthSessionDeleteLogout Logs out the user from the current session.Get authentication status Retrieve information about the authentication status for the current session.okhttp3.CallGet authentication status (asynchronously) Retrieve information about the authentication status for the current session.okhttp3.CallallauthAuthSessionGetCall(ApiCallback _callback) Build call for allauthAuthSessionGetGet authentication status Retrieve information about the authentication status for the current session.intvoidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex)
-
Constructor Details
-
AuthenticationCurrentSessionApi
public AuthenticationCurrentSessionApi() -
AuthenticationCurrentSessionApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
allauthAuthSessionDeleteCall
Build call for allauthAuthSessionDelete- 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 401 There is no authenticated session. -
-
allauthAuthSessionDelete
Logout Logs out the user from the current session.- 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 401 There is no authenticated session. -
-
allauthAuthSessionDeleteWithHttpInfo
Logout Logs out the user from the current session.- Returns:
- ApiResponse<Void>
- 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 401 There is no authenticated session. -
-
allauthAuthSessionDeleteAsync
Logout (asynchronously) Logs out the user from the current session.- 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 401 There is no authenticated session. -
-
allauthAuthSessionGetCall
Build call for allauthAuthSessionGet- 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 The user is authenticated. - 401 Not authenticated. - 410 The response indicates session is invalid or no longer exists. -
-
allauthAuthSessionGet
Get authentication status Retrieve information about the authentication status for the current session.- Returns:
- AllauthAuthenticatedResponse
- 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 The user is authenticated. - 401 Not authenticated. - 410 The response indicates session is invalid or no longer exists. -
-
allauthAuthSessionGetWithHttpInfo
public ApiResponse<AllauthAuthenticatedResponse> allauthAuthSessionGetWithHttpInfo() throws ApiExceptionGet authentication status Retrieve information about the authentication status for the current session.- Returns:
- ApiResponse<AllauthAuthenticatedResponse>
- 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 The user is authenticated. - 401 Not authenticated. - 410 The response indicates session is invalid or no longer exists. -
-
allauthAuthSessionGetAsync
public okhttp3.Call allauthAuthSessionGetAsync(ApiCallback<AllauthAuthenticatedResponse> _callback) throws ApiException Get authentication status (asynchronously) Retrieve information about the authentication status for the current session.- 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 The user is authenticated. - 401 Not authenticated. - 410 The response indicates session is invalid or no longer exists. -
-