I have this method but I am not able to figure out which parameters should I pass in postman to execute this method. I sent the body in form-data of postman and content-Type is multipart/form-data.
Later I have to send the file as well that's why I am using form-data.
SearchString is coming out be empty in backend code.
@RequestMapping(value = "/calendar", method = RequestMethod.POST)
protected FareCalendarResponse getCalendar(
@RequestParam(value = "searchString", required = false) String searchString, HttpServletRequest httpRequest)
throws Exception {
CalendarRequest fareRequest = new CalenderRequest(searchString);
return FareCalendarHandler.builder().httpRequest(httpRequest).request(fareRequest).build().getResponse();
}