class FolderCompressorAPIController {

    @RequestMapping(value = "/{folderId}", method = RequestMethod.GET, produces = { MediaType.APPLICATION_JSON_VALUE,
            MediaType.TEXT_PLAIN_VALUE })
    @ResponseBody
    public FolderCompressorResponse compressFolder(@PathVariable(value = "folderId") long folderId) throws AcmFolderException
    {
        String fileName = folderCompressor.compressFolder(folderId);

        return new FolderCompressorResponse(fileName);
    }

}