[SECIOTSRK-686] Fix REST Api for DSM & MQ
authorm.dalakov <m.dalakov@samsung.com>
Wed, 8 Nov 2017 18:27:46 +0000 (20:27 +0200)
committerm.dalakov <m.dalakov@samsung.com>
Wed, 8 Nov 2017 18:27:46 +0000 (20:27 +0200)
servers/dsm/src/main/java/com/samsung/dsm/rest/policy/PolicyApi.java
servers/dsm/src/main/java/com/samsung/dsm/rest/report/ReportApi.java

index 3ab5cda..4d492c4 100644 (file)
@@ -14,7 +14,6 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.http.ResponseEntity;
 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;
 
 import com.samsung.commons.domain.Agent;
@@ -77,7 +76,7 @@ public class PolicyApi {
      * @param deviceId the device id
      * @return the response entity
      */
-    @RequestMapping(value = "/request/{policyId}/device/{deviceId}", method = RequestMethod.POST)
+    @RequestMapping(value = "/request/{policyId}/device/{deviceId}")
     public ResponseEntity<String> requestPolicy(@PathVariable Long policyId, @PathVariable String deviceId) {
         LOG.info("Request policy - " + policyId);
         // TODO add check for policy
index 213a1e7..5c9e64a 100644 (file)
@@ -126,7 +126,7 @@ public class ReportApi {
      * @param reportId report ID
      * @return the response entity
      */
-    @RequestMapping(value = "/newreport/{reportId}", method = RequestMethod.POST)
+    @RequestMapping(value = "/newreport/{reportId}")
     public ResponseEntity<String> newReportNotification(@PathVariable Long reportId) {
         LOG.info("Get new report " + reportId);