1. Using the Uniform Interface
This chapter describes the details of using HTTP’s uniform interface and deals with issues such as statelessness, visibility, safety and idempotency, extensibility, creating new resources, GET vs POST etc. The recipes in this chapter primarily deal with using HTTP’s uniform interface.
- How to Keep Interactions Visible
- When to Trade Visibility
- How to Maintain Application State
- How to Implement Safe and Idempotent Methods on the Server
- How to Treat Safe and Idempotent Methods in Clients
- When to Use GET
- When to Use POST
- How to Create Resources Using POST
- When to use PUT to Create New Resources
- How to Use POST for Asynchronous Tasks
- How to Use DELETE for Asynchronous Deletion
- When to Use Custom HTTP Methods
- When and How to Use Custom HTTP Headers
