I have a basic REST call
/**
* REST CALL
* @return
*/
@RequestMapping(method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
public List<Template> getTemplatesJson(){
logger.info("GET all computers- /computers/ -- content type = application/json");
return computerService.retrieveAllComputers();
}
When I go to the URL I see the JSON in the browser. We also would like our users to be able to download the JSON as a file (used for importing later on).
Is there an easy way I can do that with this endpoint or do I need to create a brand new endpoint?