My Spring REST API is decorated as follows:
In below, I am confused weather, parameters such as list, operation need to be part of Url as query string or do they need to be part of Request Body as form data (Url encoded).
There are situations where I am sending these parameters in query string and it works fine. But couple of my api's are not working properly on production and they work only if I send the data in request body as Url encoded. Can anyone help me explain this behaviour ?
@RequestMapping(value = "/bulkupdate/{companyId}", method = RequestMethod.POST)
@ResponseBody
public ResponseEntity<String> bulkupdateArticle(@RequestParam("list") String documentIdList,
@PathVariable("companyId") String companyId, @RequestParam("operation") String operation){
try{