Implement api path for listing tasks.