[Tin tức] [WebAPI-NET5] #1 – Tạo API đầu tiên



[WebAPI-NET5] #1 – Tạo API đầu tiên

Giới thiệu series phổ biến kiến thức về Xây dựng Web API trên nền tảng .NET Core 5 (.NET 5). Trong bài này, tôi giới thiệu:
– Cách tạo mới Project WebAPI .NET Core 5
– Cách tạo mới 1 API với đầy đủ phương thức GET, POST, PUSH, DELETE

📘Slide giới thiệu:

📘Source code

#aspcore #webapi #hienlth #csharp

19 bình luận về “[Tin tức] [WebAPI-NET5] #1 – Tạo API đầu tiên”

  1. Đoạn chỗ Edit API: Đã get hangHoa theo id truyền vào, k có id tương ứng thì trả notFound() còn có thì sẽ update.
    Thì sao phải check hangHoa.Mahanghoa == id truyền vào làm gì nữa ạ? Vì lúc mình get ra là đã get theo id rồi? em ko hiểu và thấy hơi bị thừa phải k ạ?
    Em cảm ơn ạ?

    Bình luận
  2. Thầy ơi, em mới tạo project apt và chạy thử thì nó hiện lên lỗi bên dưới. Nhờ thầy chỉ em cách sửa ạ:
    HTTP Error 500.0 – ANCM In-Process Handler Load Failure
    Troubleshooting steps:

    Check the system event log for error messages
    Enable logging the application process' stdout messages
    Attach a debugger to the application process and inspect

    Bình luận

Viết một bình luận

bahis10bets.com betvole1.com casinomaxi-giris.com interbahis-giris1.com klasbahis1.com mobilbahisguncelgiris1.com piabetgiris1.com tipobettgiris.com tumbetgiris1.com betboro 1xbet giriş
bahis10bets.com betvole1.com casinomaxi-giris.com interbahis-giris1.com klasbahis1.com mobilbahisguncelgiris1.com piabetgiris1.com tipobettgiris.com tumbetgiris1.com betboro 1xbet giriş
antalya bayan escort
antalya bayan escort
antalya bayan escort