This is an attempt at creating a mock server based on observing real world application usage.
See this post for motivation: https://blacksheepcode.com/posts/the_tool_i_want_to_exist
The end-to-end tooling is not currently working.
Best thing to be doing is running the tests.
Populate the .env file at application/.env
(You need an OpenAPI key)
cd application
bun install
bun test
- Start mitmproxy running
mitmproxy
- Start the sample-api
bun run start:sample-api
- Start the proxy running
bun run start:proxy-server
-
Make your requests against
http://localhost:3001
-
In mitm proxy, run the command
har.save @all proxyRecords/har.json
6 You can preserve your recording with
bun run copy-har "scenario-name"