News for hackers. Stuff that matters.
Re:Ask HN: Best Way to Mock APIs in 2020? by berkes on Sunday June 14, 2020 @11:59AM (#23518703)
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.

There are no comments on this comment yet.