3 ms·
I've used XSLT for APIs that return XML. This allows looking at the output of the API in a human-readable format. This is convenient as a debug tool, and anyt
by Animats 12y ago
I've used XSLT for APIs that return XML. This allows looking at the output of the API in a human-readable format. This is convenient as a debug tool, and anything that returns an XML page should have a link to the XLST for it.
- jahewson 12y agoAlternatively, you could build your API using a human-readable format and dispense with the XSLT. For more complex debugging there's always the Accept header in HTTP which allows you to return a HTML page for browsers using your server-side template engine of choice.