Class UserApi


  • public class UserApi
    extends Object
    • Constructor Detail

      • UserApi

        public UserApi()
      • UserApi

        public UserApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • createUserUsingPOST

        public Link createUserUsingPOST​(CreateUserRequestDTO body)
                                 throws ApiException
        Create a user This operation will create a user
        Parameters:
        body - createUserRequestDTO (required)
        Returns:
        Link
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • createUserUsingPOSTWithHttpInfo

        public ApiResponse<Link> createUserUsingPOSTWithHttpInfo​(CreateUserRequestDTO body)
                                                          throws ApiException
        Create a user This operation will create a user
        Parameters:
        body - createUserRequestDTO (required)
        Returns:
        ApiResponse<Link>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • createUserUsingPOSTAsync

        public com.squareup.okhttp.Call createUserUsingPOSTAsync​(CreateUserRequestDTO body,
                                                                 ApiCallback<Link> callback)
                                                          throws ApiException
        Create a user (asynchronously) This operation will create a user
        Parameters:
        body - createUserRequestDTO (required)
        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
      • getUserUsingGET

        public UserResponseDTO getUserUsingGET​(Long userId)
                                        throws ApiException
        Get user details. This operation will retrieve details about a given user.
        Parameters:
        userId - The unique Id of the user you'd like to look up. (required)
        Returns:
        UserResponseDTO
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getUserUsingGETWithHttpInfo

        public ApiResponse<UserResponseDTO> getUserUsingGETWithHttpInfo​(Long userId)
                                                                 throws ApiException
        Get user details. This operation will retrieve details about a given user.
        Parameters:
        userId - The unique Id of the user you'd like to look up. (required)
        Returns:
        ApiResponse<UserResponseDTO>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getUserUsingGETAsync

        public com.squareup.okhttp.Call getUserUsingGETAsync​(Long userId,
                                                             ApiCallback<UserResponseDTO> callback)
                                                      throws ApiException
        Get user details. (asynchronously) This operation will retrieve details about a given user.
        Parameters:
        userId - The unique Id of the user you'd like to look up. (required)
        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
      • getUsersUsingGET

        public List<Object> getUsersUsingGET()
                                      throws ApiException
        Get all users. This operation will retrieve all users.
        Returns:
        List<Object>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getUsersUsingGETWithHttpInfo

        public ApiResponse<List<Object>> getUsersUsingGETWithHttpInfo()
                                                               throws ApiException
        Get all users. This operation will retrieve all users.
        Returns:
        ApiResponse<List<Object>>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getUsersUsingGETAsync

        public com.squareup.okhttp.Call getUsersUsingGETAsync​(ApiCallback<List<Object>> callback)
                                                       throws ApiException
        Get all users. (asynchronously) This operation will retrieve all users.
        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