@RequestMapping(value = "/country", method = RequestMethod.GET) @ResponseBody public ArrayList<String> getAllCountry() { ArrayList<String> response = null; try { response = signupService.getAllCountry(); } catch (Exception e) { e.printStackTrace(); } return response; }
@RequestMapping(value = "/city/{district}", method = RequestMethod.GET) @ResponseBody public ArrayList<String> getAllCity(@PathVariable("district") String district) { ArrayList<String> response = null; try { response = signupService.getAllCityByDistrict(district); } catch (Exception e) { e.printStackTrace(); } return response; }
@RequestMapping(value = "/church/{city}", method = RequestMethod.GET) @ResponseBody public ArrayList<String> getAllChurch(@PathVariable("city") String city) { ArrayList<String> response = null; try { response = signupService.getAllChurchByCity(city); } catch (Exception e) { e.printStackTrace(); } return response; }
@RequestMapping(value = "/district/{state}", method = RequestMethod.GET) @ResponseBody public ArrayList<String> getAllDistrict(@PathVariable("state") String state) { ArrayList<String> response = null; try { response = signupService.getAllDistrictByState(state); } catch (Exception e) { e.printStackTrace(); } return response; }
@RequestMapping(value = "/state/{country}", method = RequestMethod.GET) @ResponseBody public ArrayList<String> getAllState(@PathVariable("country") String country) { ArrayList<String> response = null; try { response = signupService.getAllStateByCountry(country); } catch (Exception e) { e.printStackTrace(); } return response; }