:(
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
package com.example.nto.controller;
|
||||
|
||||
import com.example.nto.entity.Booking;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.time.LocalDate;
|
||||
|
||||
/**
|
||||
* TODO: ДОРАБОТАТЬ в рамках задания
|
||||
* =================================
|
||||
@@ -11,9 +15,11 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
* НЕЛЬЗЯ: Изменять название класса и пакета
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("code")
|
||||
public class BookingController {
|
||||
@GetMapping("/booking")
|
||||
public String booking(@RequestParam(defaultValue = "")String id){
|
||||
return "booking session started " + id;
|
||||
}
|
||||
// @GetMapping("/booking")
|
||||
// public Booking booking(@RequestParam(defaultValue = "")String id){
|
||||
// return new Booking(id, );
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user