Supports specification of media type via an accept query parameter, which takes the same values as the accept header, but can be used in contexts where the user has no control over headers.
In the original issue there was discussion of using a format parameter and mapping back to a media type from there, but I'm not sure there's any advantage to introducing this extra logic over reusing the existing logic for the accept header? Open to be convinced.
Supports specification of media type via an
accept
query parameter, which takes the same values as theaccept
header, but can be used in contexts where the user has no control over headers.In the original issue there was discussion of using a
format
parameter and mapping back to a media type from there, but I'm not sure there's any advantage to introducing this extra logic over reusing the existing logic for the accept header? Open to be convinced.e.g.
closes #625