Closed dchiller closed 1 year ago
Looking at the code, I see hints that this might happen (lines 13-14 in
csv_renderer.py
), but I don't really understand how this behavior is being effected. Is it a bit of Django REST Framework magic?
Yes, it is ... I had to learn more about how Django REST Framework does content negotiation, and it's one of those things where it's really nice that it works, but also really opaque. See additional comments on specific lines.
This PR:
/folio-set/manuscript/<manuscript-id>
endpoint. Requests to this endpoint with atext/csv
accept header will return a csv.