Closed dret closed 2 years ago
Because I am curious to see what people think: https://twitter.com/dret/status/1526218691603464192
We shouldn't restate or explain HTTP in our prose -- it's a specification, not a tutorial. Extrinsic materials can handle that.
However, we can include an example that includes a request without Accept.
On 2022-05-16 23:52, Mark Nottingham wrote:
We shouldn't restate or explain HTTP in our prose -- it's a specification, not a tutorial. Extrinsic materials can handle that. However, we can include an example that includes a request without Accept.
ok, sounds good. but if we do that then we should at least mention that we're showing this because servers are free to respond with the application/problem+json media type, even if clients don't specifically request it. is that ok for you?
What about a short paragraph/section saying that APIs using the spec don't require clients to always add
Accept
with the problem-specific media types? I've now had several people asking this very question, and maybe we could clarify this by saying "HTTP allows you to respond with media types other than those listed inAccept
."