bin: generate mock `.json` from actual server requests

Won't work for multiple '/', need to use a regexp with g flag