# File lib/apipie_bindings/api.rb, line 143 def call(resource_name, action_name, params={}, headers={}, options={}) check_cache if @aggressive_cache_checking resource = resource(resource_name) action = resource.action(action_name) route = action.find_route(params) #action.validate(params) options[:fake_response] = find_match(fake_responses, resource_name, action_name, params) || action.examples.first if dry_run? return http_call( route.method, route.path(params), params.reject { |par, _| route.params_in_path.include? par.to_s }, headers, options) end