Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥

Content Negotiation for REST APIs

Erik Berlin
October 22, 2014

Content Negotiation for REST APIs

Closing keynote at the Nordic APIs Platform Summit in Stockholm, Sweden.

Erik Berlin

October 22, 2014
Tweet

More Decks by Erik Berlin

Other Decks in Technology

Transcript

  1. ACCEPT HEADER The Accept request-header field can be used to

    specify certain media types which are acceptable for the response.
  2. ACCEPT-LANGUAGE HEADER The Accept-Language request-header field is similar to Accept,

    but restricts the set of natural languages that are preferred as a response to the request.
  3. FIELDING ON REST REST is software design on the scale

    of decades: every detail is intended to promote software longevity and independent evolution. Many of the constraints are directly opposed to short-term efficiency. Unfortunately, people are fairly good at short-term design, and usually awful at long- term design. Most don’t think they need to design past the current release.