When should I append an extension to an endpoint?

by Vic   Last Updated December 21, 2017 22:05 PM

I'm using express.js and I have an endpoint that generates a JSON string and displays it.

Currently called /output, should I call it /output.json instead?



Related Questions



Proper RESTful web service response code usage

Updated May 05, 2016 08:02 AM


How to handle business rules with a REST API?

Updated April 03, 2018 08:05 AM

What makes (or why is) a language Server-Side?

Updated October 13, 2016 09:02 AM