Chapter 23: Content Negotiation
Although most REST APIs today primarily use JSON as their data format, a resource in a REST API can be represented using a wide range of media types, encodings, and languages. On the one hand, the server can support multiple media types, and on the other hand, the client can choose the resource representation that best suits its needs. This negotiation principle in HTTP is known as content negotiation.