Commit edc313a8 authored by Spiros Koulouzis's avatar Spiros Koulouzis

added dbg msg

parent 22c6117e
...@@ -69,10 +69,12 @@ public class ToscaTemplateApiController implements ToscaTemplateApi { ...@@ -69,10 +69,12 @@ public class ToscaTemplateApiController implements ToscaTemplateApi {
} }
@Override @Override
public ResponseEntity<String> getToscaTemplateByID(@ApiParam(value = "ID of topolog template to return", required = true) @PathVariable("id") String id) { public ResponseEntity<String> getToscaTemplateByID(@ApiParam(value = "ID of topolog template to return", required = true)
@PathVariable("id") String id) {
// String accept = request.getHeader("Accept"); // String accept = request.getHeader("Accept");
// if (accept != null && accept.contains("text/plain")) { // if (accept != null && accept.contains("text/plain")) {
try { try {
java.util.logging.Logger.getLogger(ToscaTemplateApiController.class.getName()).log(Level.INFO, "Requestsed ID: {0}", id);
String ymlStr = toscaTemplateService.findByID(id); String ymlStr = toscaTemplateService.findByID(id);
return new ResponseEntity<>(ymlStr, HttpStatus.OK); return new ResponseEntity<>(ymlStr, HttpStatus.OK);
} catch (JsonProcessingException | NotFoundException ex) { } catch (JsonProcessingException | NotFoundException ex) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment