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;
* @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
* @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);