We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pull code mới nhất từ nhánh master git pull origin master
git pull origin master
Tạo nhánh mới git checkout -b btvn-buoi4/ho-va-ten
git checkout -b btvn-buoi4/ho-va-ten
Dựa vào kiến thức đã học viết mới 6 API liên quan tới user chi tiết như sau:
/api/v1/users
POST
req.body
GET
res.query
/api/v1/users/:userId
PUT
DELETE
OPTIONS
Chú ý tách file như đã học trên lớp - thêm 2 file user.controller.js và user.route.js kèm sửa file server.js
user.controller.js
user.route.js
server.js
Đặt tên hàm gợi ý chức năng: createUser, getUsers, getUserById, updateUserById, deleteUserById, lockUserById
createUser, getUsers, getUserById, updateUserById, deleteUserById, lockUserById
Sau khi hoàn thành push lên nhánh của mình và tạo pull request. Tag mình hoặc các supporter khác nhé
Hạn nộp bài 20h thứ 6 12/04/2024 👍
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Tài liệu buổi 4 trên lớp base mvc.
Pull code mới nhất từ nhánh master
git pull origin master
Tạo nhánh mới
git checkout -b btvn-buoi4/ho-va-ten
Dựa vào kiến thức đã học viết mới 6 API liên quan tới user chi tiết như sau:
/api/v1/users
POST
req.body
/api/v1/users
GET
res.query
/api/v1/users/:userId
GET
/api/v1/users/:userId
PUT
req.body
/api/v1/users/:userId
DELETE
/api/v1/users/:userId
OPTIONS
Chú ý tách file như đã học trên lớp - thêm 2 file
user.controller.js
vàuser.route.js
kèm sửa fileserver.js
Đặt tên hàm gợi ý chức năng:
createUser, getUsers, getUserById, updateUserById, deleteUserById, lockUserById
Sau khi hoàn thành push lên nhánh của mình và tạo pull request. Tag mình hoặc các supporter khác nhé
Hạn nộp bài 20h thứ 6 12/04/2024 👍
The text was updated successfully, but these errors were encountered: