News for hackers. Stuff that matters.
Re:Show HN: This website is valid JSON by Felk on Tuesday December 08, 2020 @09:28PM (#25354614)
The same could be achieved by having the server return different views of the data for different HTTP Accept headers, although not as convenient as appending a file extension. I once did this to interpolate REST API responses into dedicated HTML templates if requested with Accept: text/html, which made exploring the API in the browser more enjoyable.

There are no comments on this comment yet.