Record an API scenario and replay it