I've been using Postman Chrome extension to test out my API and would like to send an Hashmap via post. Is there a way to send something map as a parameter in Postman?
HashMap inputHM = new HashMap();
inputHM.put("MVMT", "VL");
inputHM.put("NO", 1);
inputHM.put("FE", "E");
inputHM.put("CT", "20");
inputHM.put("HT", "80");
inputHM.put("TYPE", "GP");
inputHM.put("OPR_CD", "MAEU");
inputHM.put("LOCATION", "BERT");
inputHM.put("TMNL", "1");
inputHM.put("INCL", "");
inputHM.put("ID", 1);
My Controller is as follows
@RequestMapping(value = "/getBest", method = RequestMethod.POST)
public @ResponseBody
JsonResponse getBest(@RequestBody HashMap hm) {
JsonResponse json = new JsonResponse();
json.setSuccessData(rdtRequestService.getBest(hm));
return json;
}