Fix sonar issues
[aai/model-loader.git] / src / main / java / org / onap / aai / modelloader / service / EchoService.java
index 9600fc4..040e894 100644 (file)
 package org.onap.aai.modelloader.service;
 
 import org.springframework.http.ResponseEntity;
+import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.PathVariable;
 import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
 import org.springframework.web.bind.annotation.RestController;
 
 @RestController
 @RequestMapping("/services/model-loader/v1/echo-service")
 public class EchoService {
 
-    @RequestMapping(value = "/echo/{input}", method = RequestMethod.GET)
+    @GetMapping(value = "/echo/{input}")
     public ResponseEntity<String> echo(@PathVariable String input) {
       return ResponseEntity.ok(input);
     }