I guess mostly because I’ve spent a lot of time here, I’ve read a lot of posts and I’ve read a good number of lines of code.
But also because when I was looking at how post revision history works (note the “raw” button) it could be seen (using the browsers dev tools) that a “raw” route was used.
Well, I don’t if it’s better. That’s subjective. But there’s this.
https://github.com/discourse/discourse_api