get_api_path can accept nil extension now