Type: The format of Content • Content Length: Size of Content • Authorization: Who's making the call • Accept: What type(s) can accept • Cookies: Passenger data in the request • More headers...
Type: The format of Content • Content Length: Size of Content • Expires: When to consider stale • Cookies: Passenger data in the request • More headers...
documented • Should be completely functional • Not an excuse to build an RPC API • Should be the exception rather than the rule... /api/calculateTax?state=GA&total=149.99 /api/restartServer?isColdBoot=true
application/json X-Version: 2.0 Versioning with Headers Pros: - Separates versioning from the rest of the API Cons: - Requires more sophisticated developer to manipulate headers