Open naresh2016 opened 8 years ago
my reqirements are : if a user enters "Lon", then "Request: /api/destination/find/Lon Response: [{""city"": { {""city"": ""London"", ""indexid"":12355}, {""airport"": {""airportcode"":""LCY"", ""airportname"": ""London City Airport""}, {""airportcode"":""LHR"", ""airportname"": ""London Heathrow""},{""resort"": {""resortname"": ""London E Postcodes"", ""indexid"":26447}}
@Import(Appconfig.class) @RestController //@RequestMapping("/api/destination/find") public class RestApi01_Controller {
@RequestMapping(value="/api/destination/find/{city}", method=RequestMethod.GET) public List getCity(@PathVariable String city) {
}
}
@RequestMapping(value="/api/destination/find/{resortname}", method=RequestMethod.GET) public List getResortname(@PathVariable String resortname) {
} }