News for hackers. Stuff that matters.
Re:Ask HN: Best Way to Mock APIs in 2020? by triztian on Sunday June 14, 2020 @05:10AM (#23516163)
I've found mitmproxy (https://mitmproxy.org) in reverse mode really useful. I'm a mobile dev and when the backend work is still pending I usually mock the backend requirements by selectively patching or adding endpoint support, it can be used like so:

    mitmproxy --mode reverse:https://my.privateapi.com -s ./path/to/mockscript.py

This allows me to implement most of the UI and server interactions w/o being blocked by server work.
Re:Ask HN: Best Way to Mock APIs in 2020? by e12e on Sunday June 14, 2020 @07:32AM (#23516899)
Oh, this looks interesting. Thank you for the pointer.

I think we can use both: https://docs.mitmproxy.org/stable/addons-scripting/

For mocking, and dump/replay for debugging for some of our projects.

https://docs.mitmproxy.org/stable/tute-clientreplay/