Class WeatherController

java.lang.Object
com.weather.info.rest.v1.WeatherController

@RestController @RequestMapping("/api/v1/weather") public class WeatherController extends Object
WeatherController has Rest Endpoint that is used to fetch the weather information.
  • Constructor Details

    • WeatherController

      public WeatherController()
  • Method Details

    • getWeather

      @GetMapping("/get") public org.springframework.http.ResponseEntity<WeatherResponseVO> getWeather(@RequestParam String date, @RequestParam long pincode)