3 ms·
Have a look at VCR. It was developed for Ruby, and does exactly that: mock out the actual HTTP part of your HTTPClient. It does this by first making the actual
by berkes 6y ago
Have a look at VCR. It was developed for Ruby, and does exactly that: mock out the actual HTTP part of your HTTPClient.
It does this by first making the actual request and then storing that record in a plain YAML file (which you can alternatively generate yourself, by hand or from an openapi spec)
Have a look at "Ports in Other Languages" in their README to find the VCR port for your language, framework or stack.