Giải pháp chuyển đổi số trọn gói cho doanh nghiệp Việt
Hệ thống backend cars dùng để quản lý, thêm sửa xóa, khi sử dụng trên web
tại thư mục apps/ecommerce/api_doc
tạo file cars.xml
Nội dung file
<?xml version="1.0" encoding="utf-8"?>
<list_api>
<scope type="get" >
<content summary="get list car" description="get list car" type="list">
</content>
</scope>
<scope type="get" route="/form/{id}" >
<content summary="get car by id" description="get car by id" type="form">
</content>
</scope>
<scope type="get" route="/form" >
<content summary="create new car" description="create new car" type="form">
</content>
</scope>
<scope type="get" route="/{id}" >
<content summary="get car by id" description="get car by id" type="item">
</content>
</scope>
<scope type="put" route="/{id}">
<content summary="update car" description="update car">
</content>
</scope>
</list_api>
Tại đây bạn sẽ thấy có rất nhiều các route liên quan đến car, nhưng thêm sửa, xóa
Bây giờ bạn có thể truy cập vào website theo đường dẫn root/cars (Luôn nhớ là root là website gốc của bạn nhé)
Hiện tại website vân chưa chạy được để chạy được bạn cần phải làm các bước tiếp theo nhé
Chưa có câu hỏi nào cho bài này.