Skip to content

Instantly share code, notes, and snippets.

@dhaval201279
Last active March 11, 2018 02:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dhaval201279/13d9a72bb9d2eb2d7a250b2d3c2f495f to your computer and use it in GitHub Desktop.
Save dhaval201279/13d9a72bb9d2eb2d7a250b2d3c2f495f to your computer and use it in GitHub Desktop.
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