|
|
|
|
|
by whateveracct
1409 days ago
|
|
I like to use Haskell and servant. I encode the API as a servant type. Implement a server with in-memory data structures. I run the server and just change the endpoint the production client library hits. This is a language-agnostic mock. But if there isn't a production client library yet, I get a Haskell client for free! And with a lot of work, could probably generate any language's HTTP client from the servant type for free. |
|
what does your api look like for configuring your in-memory server mock? I assume your test cases would interface with this?