Instantly share code, notes, and snippets.

Embed
What would you like to do?
First Version of ReservationController
package com.its.reservation.web;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import com.its.reservation.repository.Reservation;
/**
* @author Dhaval
*
*/
@RestController
@RequestMapping("/reservation")
public class ReservationController {
@RequestMapping(method = RequestMethod.GET, value = "/{name}")
private Reservation getReservation(@PathVariable String name) {
return null;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment