I am tring to call a rest post method from postman. But I am not able to properly set the input parameters for method from postman.
NB : Please dont mark it as duplicate as this dosent have an existing answer in Stackoverflow.
Below the rest API code:
@RequestMapping(value = "/city/village/home", method = RequestMethod.POST)
@ResponseBody
public String updateHome(@ModelAttribute final HomeAddress homeAddress,
final HttpServletRequest request) {
//// some code /////
}
This is the HomeAddress class
public class HomeAddress{
public String name;
public int id;
public List<String> membersName;
getters.....
setters....
}
Please tell me how to send the request from Postman ?