Books & Videos

Table of Contents

  1. Chapter 1 HTTP

    1. Clients and Servers

    2. Making HTTP Requests

  2. Chapter 2 HTTP Verbs

    1. Serving GET Requests

    2. Making GET Requests

    3. Handling POST Requests

    4. Making POST Requests

    5. Using Other HTTP Verbs

  3. Chapter 3 Headers

    1. Request and Response Headers

    2. Identify Clients with User-Agent

    3. Headers for Content Negotiation

    4. Securing Requests with the Authorization Header

    5. Caching Headers

    6. Custom Headers

  4. Chapter 4 Cookies

    1. Cookie Mechanics

    2. Reading and Writing Cookies

    3. Making Requests with Cookies

    4. Cookies and APIs

  5. Chapter 5 JSON

    1. When to Choose JSON

    2. Handling JSON with PHP

    3. Consuming JSON APIs

  6. Chapter 6 XML

    1. XML in PHP

    2. Consuming XML APIs

  7. Chapter 7 RPC and SOAP Services

    1. RPC

    2. SOAP

  8. Chapter 8 REST

    1. RESTful URLs

    2. Resource Structure and Hypermedia

    3. Build the Basic RESTful Server

    4. RESTful Versus Useful

  9. Chapter 9 Webhooks

    1. GitHub’s Webhooks

    2. Publishing Your Own Webhooks

  10. Chapter 10 HTTP Tools

    1. Easy Command-Line JSON

    2. Graphical cURL Alternatives

    3. Inspect HTTP Traffic with Wireshark

    4. Tunnel Local Traffic Remotely with ngrok

    5. Inspect, Edit, Repeat, and Share Requests

    6. Proxying PHP Applications

    7. Finding the Tool for the Job

  11. Chapter 11 Maintainable Web Services

    1. Sample API Application

    2. Consistent Output Formats

    3. Debug Output as a Tool

    4. Effective Logging Techniques

    5. Error Handling with PHP Exceptions

  12. Chapter 12 Making Service Design Decisions

    1. Service Type Decisions

    2. How to Present API Data

    3. Customizable Experiences

    4. Pick Your Defaults

  13. Chapter 13 Building a Robust Service

    1. Consistency Is Key

    2. Error Handling in APIs

    3. Meaningful Error Messages

    4. What to Do When You See Errors

    5. Making Design Decisions for Robustness

  14. Chapter 14 Publishing Your API

    1. Documentation Is Key

    2. API Description Languages

    3. Automated Testing Tools

    4. Tutorials and the Wider Ecosystem

  15. Appendix A Guide to Common Status Codes

  16. Appendix Common HTTP Headers