มาสร้าง API ง่ายๆ ด้วย Spring กัน
สวัสดีครับ จากครั้งที่แล้วที่เราได้เริ่มสร้างโปรเจคด้วย Spring กันแล้ว วันนี้เราจะมาลองสร้าง API ที่เป็นพื้นฐานกันครับ ได้แก่ Get , Post , Delete , Patch กันนะครับ
@RestController
public class UserController(){
// do something