package com.weather.domain.prediction;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;
import java.net.URISyntaxException;
import lombok.extern.slf4j.Slf4j;

/**
 * Created by godong9 on 2017. 7. 29..
 */

@Slf4j
@RestController
@RequestMapping(value = "/api/v1/prediction")
public class PredictionController {

    @Autowired
    private PredictionService predictionService;

    @RequestMapping(method = RequestMethod.POST)
    public Prediction readPrediction(@Valid @RequestBody PredictionRequestDto predictionRequestDto) throws URISyntaxException {
        Prediction prediction = this.predictionService.readPrediction(predictionRequestDto);
        return prediction;
    }
}

@@ -147,207 +147,9 @@
 ion.
-RequestBody;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.bind.annotation.RequestMethod;%0Aimport org.springframework.web.bind.annotation.RestController
+*
 ;%0A%0Ai
@@ -324,54 +324,8 @@
 ler%0A
-@RequestMapping(value = %22/api/v1/prediction%22)%0A
 publ
@@ -431,50 +431,425 @@
    @
-RequestMapping(method = RequestMethod.POST
+GetMapping(%22/predictions/init%22)%0A    public Prediction readPredictionInit() throws URISyntaxException %7B%0A        // TODO: %EC%B4%88%EA%B8%B0 %EC%A7%80%EB%8F%84%ED%99%94%EB%A9%B4 %EC%A0%95%ED%95%B4%EC%A7%84 %EC%A2%8C%ED%91%9C 10%EA%B0%9C%EC%A0%95%EB%8F%84 %EB%82%B4%EB%A0%A4%EC%A3%BC%EA%B8%B0!%0A        return null;%0A    %7D%0A%0A    @GetMapping(%22/predictions/crawling%22)%0A    public void readPredictionList() throws URISyntaxException %7B%0A        // TODO: nx, ny %EC%A0%84%EB%B6%80 %EB%8F%8C%EB%A9%B4%EC%84%9C%0A        // predictionService.readPrediction(predictionRequestDto);%0A    %7D%0A%0A    @PostMapping(%22/predictions%22
 )%0A  
@@ -966,32 +966,32 @@
 ntaxException %7B%0A
+
         Predicti
@@ -1010,13 +1010,8 @@
 n = 
-this.
 pred

Update predictionController