[Django]-Which `format` would be negotiated for REST request?

2👍

I’d believe you wouldn’t have a 200 response, only an error with content negotiation.

The code shows that:

  1. ?format=json(format_query_param) will be discarded by the .xml (format_suffix)
  2. filter available renderers leaving only the XMLRenderer left
  3. then it will loop on the accept header but none will match text/html
  4. finally this will be down to the exception

Leave a comment