concept http traffic in category api

appears as: HTTP traffic, HTTP traffic
Irresistible APIs: Designing web APIs that developers will love

This is an excerpt from Manning's book Irresistible APIs: Designing web APIs that developers will love.

Figure 4.9. Change the settings to activate Preserve Log so that the HTTP traffic will stay in the queue for inspection.

4.3. Exploring your API by inspecting HTTP traffic

In chapter 2, you were introduced to some ways to inspect HTTP traffic. Understanding how your developers will interact with your system is a critical component of API success, so you need to test your system as if you were one of the developers trying to use it. Inspecting API traffic is also helpful when creating support documentation or helping developers. Watching traffic using a sniffer is quite useful when trying to debug complex API calls, but for the purposes of understanding how HTTP traffic works in general, using a browser is a fine choice. For this discussion, you’ll put together the information in section 3.1 with web calls. I suggest using Chrome or a similar browser with HTTP traffic inspection. To start, I discuss how to get Chrome set up correctly to give you the information you need, and then we’ll explore how it applies more completely to the example application discussed in chapter 2.