accept path param in api_path method