samples/client/petstore/ruby/lib/petstore/api/user_api.rb
# Logs out current logged in user session
# 
# @param [Hash] opts the optional parameters
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
Logs out current logged in user session
Logs out current logged in user session
def logout_user_with_http_info(opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: UserApi.logout_user ...'
      end
      local_var_path = '/user/logout'
      query_params = {}
      header_params = {}
      header_params['Accept'] = @api_client.select_header_accept(['application/xml', 'application/json'])
      form_params = {}
      post_body = nil
      auth_names = []
      data, status_code, headers = @api_client.call_api(:GET, local_var_path,
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: UserApi#logout_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def logout_user_with_http_info ( opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: UserApi.logout_user ...' end local_var_path = '/user/logout' query_params = { } header_params = { } header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/xml' , 'application/json' ] ) form_params = { } post_body = nil auth_names = [ ] data , status_code , headers = @api_client . call_api ( :GET , local_var_path , :header_params => header_params , :query_params => query_params , :form_params => form_params , :body => post_body , :auth_names => auth_names ) if @api_client . config . debugging @api_client . config . logger . debug "API called: UserApi#logout_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Logs out current logged in user session
Logs out current logged in user session
# resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # form parameters # http body (model)
nil, response status code and response headers
nil response status code and response headers
Array<(nil, Fixnum, Hash)>
opts
opts the optional parameters
opts the optional parameters