|
|
@@ -28,6 +28,24 @@ public class BoatController {
|
|
|
return boatService.getBoats();
|
|
|
}
|
|
|
|
|
|
+ @RequestMapping(
|
|
|
+ value = "/getAllBoats/json",
|
|
|
+ method = RequestMethod.GET,
|
|
|
+ produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
+ public List<Boat> listAddressesXML() {
|
|
|
+ System.out.println("Getting Boats");
|
|
|
+ return boatService.getBoats();
|
|
|
+ }
|
|
|
+
|
|
|
+ @RequestMapping(
|
|
|
+ value = "/getAllBoats/xml",
|
|
|
+ method = RequestMethod.GET,
|
|
|
+ produces = MediaType.APPLICATION_XML_VALUE)
|
|
|
+ public List<Boat> listAddressesJSON() {
|
|
|
+ System.out.println("Getting Boats");
|
|
|
+ return boatService.getBoats();
|
|
|
+ }
|
|
|
+
|
|
|
// test request
|
|
|
@RequestMapping(value = "/hello", method = RequestMethod.GET)
|
|
|
public String sayHello() {
|