Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

We need a better convention for returning API results from collection (LIstView-style) endpoints.

Table of Contents

Current behavior

Currently, when we return a collection of resources in an API, we use the default formatting provided by DRF, which returns a direct JSON list of results.  For example:

...