Skip to content

Lesson 3A: Serve your data in many different flavors

Linda van den Brink edited this page Jun 6, 2017 · 24 revisions

So many developers and devices, so many flavors. Serve your data in as many flavors as possible to reach the widest possible audience.

Why

The scope of projects often limits the number of supported data formats as much as possible to 1. If that's the case, you should temper your expectations of adoption and make sure you leave room for future formats right from the beginning. This can be achieved by defining a good content-negotiation strategy.

Intended outcome

Flexibility to switch between different data flavors to serve the large set of unknown developers and devices.

Possible approach

Define a content-negotation strategy.

More practically, use

Bak in JSON

The second second phase of the testbed confirmed that the use of URL-based content negotiation should be discouraged.