Allows for cloning a restful api for unit testing purposes.