def api_version
      version = params[:api_version]
      return current_api_version if version == 'current'
      api_versions.include?(version) ? version : current_api_version
    end
def api_version
      version = params[:api_version]
      return current_api_version if version == 'current'
      api_versions.include?(version) ? version : current_api_version
    end
The api version of the current request