import org.springframework.web.bind.annotation.RequestMapping;\r
import org.springframework.web.bind.annotation.RequestMethod;\r
import org.springframework.web.bind.annotation.RequestParam;\r
+import org.springframework.web.bind.annotation.ResponseBody;\r
\r
import eu.etaxonomy.cdm.api.service.IMediaService;\r
import eu.etaxonomy.cdm.api.service.media.MediaInfoFactory;\r
\r
\r
@RequestMapping(value = {"metadata"}, method = RequestMethod.GET)\r
+ @ResponseBody // = is REST service method with json response\r
public Map<String, String> doGetMediaMetaData(\r
@PathVariable("uuid") UUID uuid,\r
@RequestParam(value = "applyFilterPreset", defaultValue = "true") Boolean applyFilterPreset,\r
URI uri = null;\r
try {\r
if(applyFilterPreset) {\r
- result = service.readResourceMetadataFiltered(mediaRepresentation);\r
-\r
+ result = service.readResourceMetadataFiltered(mediaRepresentation);\r
} else {\r
uri = mediaRepresentation.getParts().get(0).getUri();\r
CdmImageInfo cdmImageInfo = mediaInfoFactory.cdmImageInfoWithMetaData(uri);\r