Here is my controller:
@RestController
@RequestMapping("/warning/data")
public class EarlyWarningDataController {
@RequestMapping(value = "/get/{soeid}/{gfcid}/{expressioncode}/{fiscalYear}/{timeperiod}",
method = RequestMethod.GET)
public String getEarlyWarningData(@PathVariable("soeid") String soeId,
@PathVariable("gfcid") String[] gfcId,
@PathVariable("expressioncode") String expressionCode,
@PathVariable("fiscalYear") Long fiscalYear,
@PathVariable("timeperiod") String timePeriod) throws IOException {
sysout("");
}
When I hit url
htpt://xyz:8080/EarlyWarning/warning/data/get/samplesoeid/1005771621/CAT_TOTAL_REV/2012/Annual
it works fine.
but I want to send url something like:
htpt://xyz:8080/EarlyWarning/warning/data/get/soeid=samplesoeid/gfcid=1005771621/expressioncode=CAT_TOTAL_REV/fiscalyear=2012/timeperiod=Annual
What are the changes in code do I need to do? pl help.