Member-only story
How to Build a Postman-Like API Tester with React — Part 2
Bestte
6 min readJust now
Add PUT, PATCH, DELETE, request history, and response headers to our React API testing tool.
Press enter or click to view image in full sizeMissed the first part? You can find the complete setup and the API tester in Part 1
In Part 1, we built a small API tester using React, TypeScript, and the Fetch API.
It could send GET and POST requests, display JSON responses, and show HTTP status codes.
Not bad for a small project.
But there’s something slightly annoying about testing an API with only GET and POST.
You can create a resource, but you can’t update or delete it. And every time you want to repeat a request, you have to enter the details again.
So let’s make our tool a little more useful.
This time, we’re adding more HTTP methods, request history, and response header inspection.
We’ll keep using the same project. No additional React libraries required.
1. Supporting more HTTP methods