예제 #1
0
  @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;
  }
예제 #2
0
  @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;
  }
예제 #3
0
  @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;
  }
예제 #4
0
  @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;
  }
예제 #5
0
  @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;
  }