Add the replay functionality for a REST request