Member-only story
Using Mitmproxy and Httpie to Improve API Development and Testing
Two tools that have helped me increase productivity when testing and developing my APIs
As you develop your APIs, it’s extremely important to deeply check each endpoint (or query). This is for various reasons including security, efficiency, user experience, and so on.
I have lately been developing an API for a personal project and found myself having to decide whether to use Postman or Burp Suite. These are both great tools to test your endpoints and tamper with the data they receive so you can assure great performance and security also on edge-cases.
However, even if I already had experience with both tools, I decided to go out looking for alternatives that may be more easily customizable and better fit my requirements, which mainly are:
- easily crafting requests
- modify and interact with the outgoing requests
- evaluating and filtering responses for lightweight testing
I also didn’t want to spend time writing easy-to-use proxies on my own, which is something I only do when I’m aiming for extremely specific use-cases, like always automatically modifying outgoing requests to the domain test.testing.com
.