Books & Videos

Table of Contents

  1. Chapter 1 HTTP

    1. Clients and Servers

    2. Making HTTP Requests

  2. Chapter 2 HTTP Verbs

    1. Making GET Requests

    2. Making POST Requests

    3. Using Other HTTP Verbs

  3. Chapter 3 Headers

    1. Request and Response Headers

    2. Common HTTP Headers

    3. Custom Headers

  4. Chapter 4 Cookies

    1. Cookie Mechanics

    2. Working with Cookies in PHP

  5. Chapter 5 JSON

    1. When to Choose JSON

    2. Handling JSON with PHP

    3. JSON in Existing APIs

  6. Chapter 6 XML

    1. When to Choose XML

    2. XML in PHP

    3. XML in Existing 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. Data and Media Types

    4. HTTP Features in REST

    5. Additional Headers in RESTful Services

    6. RESTful versus Useful

  9. Chapter 9 Debugging Web Services

    1. Debug Output

    2. Logging

    3. Debugging from Outside Your Application

    4. Finding the Tool for the Job

  10. Chapter 10 Making Service Design Decisions

    1. Service Type Decisions

    2. Consider Data Formats

    3. Customizable Experiences

    4. Pick Your Defaults

  11. Chapter 11 Building a Robust Service

    1. Consistency Is Key

    2. Making Design Decisions for Robustness

  12. Chapter 12 Error Handling in APIs

    1. Output Format

    2. Meaningful Error Messages

    3. What to Do When You See Errors

  13. Chapter 13 Documentation

    1. Overview Documentation

    2. API Documentation

    3. Interactive Documentation

    4. Tutorials and the Wider Ecosystem

  1. Appendix A Guide to Common Status Codes

  2. Appendix Common HTTP Headers

  3. Colophon