Class AuthenticationCurrentSessionApi

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

public class AuthenticationCurrentSessionApi extends Object
  • Constructor Details

    • AuthenticationCurrentSessionApi

      public AuthenticationCurrentSessionApi()
    • AuthenticationCurrentSessionApi

      public AuthenticationCurrentSessionApi(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)
    • allauthAuthSessionDeleteCall

      public okhttp3.Call allauthAuthSessionDeleteCall(ApiCallback _callback) throws ApiException
      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

      public void allauthAuthSessionDelete() throws ApiException
      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

      public ApiResponse<Void> allauthAuthSessionDeleteWithHttpInfo() throws ApiException
      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

      public okhttp3.Call allauthAuthSessionDeleteAsync(ApiCallback<Void> _callback) throws ApiException
      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

      public okhttp3.Call allauthAuthSessionGetCall(ApiCallback _callback) throws ApiException
      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

      public AllauthAuthenticatedResponse allauthAuthSessionGet() throws ApiException
      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 ApiException
      Get 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. -