5. Testing & Debugging
Verify the API works and learn how to fix issues.
What you'll learn
- Why we test APIs with tools like curl, HTTPie, or Postman
- How to interpret common HTTP responses (201, 400, 404)
- Techniques for reading stack traces and inspecting MongoDB state
Version control: branch for Chapter 5
Before making changes, create a fresh branch for the testing and debugging updates:
git checkout main
git pull origin main
git checkout -b feature/testing-debuggingYou will commit the extra scripts, docs, or config tweaks you create while testing, then open a PR when the chapter is done.
When you finish this overview, follow Testing to exercise the endpoints and Debugging to troubleshoot problems.