Giải pháp chuyển đổi số trọn gói cho doanh nghiệp Việt

Tạo route cho carcategories - Xây dựng giao diện backend của hệ thống quản lý admin.adayroi.online

Xây dựng giao diện backend của hệ thống quản lý admin.adayroi.online

← Toàn bộ tài liệu


Bước 4.2: Tạo route cho carcategories

Bài 5/33 Xem dạng sách

Tạo thư mục 

apps/ecommerce/api_doc

Tạo file carcategories.xml

Nội dung file

<?xml version="1.0" encoding="utf-8"?>
<list_api>
<scope type="get" >
<content summary="get list carcategory" description="get list carcategory" type="list">

</content>
</scope>
<scope type="get" route="/form/{id}" >
<content summary="get carcategory by id" description="get carcategory by id" type="form">
</content>
</scope>
<scope type="get" route="/form" >
<content summary="create new carcategory" description="create new carcategory" type="form">
</content>
</scope>

<scope type="get" route="/{id}" >
<content summary="get carcategory by id" description="get carcategory by id" type="item">
</content>
</scope>
<scope type="put" route="/{id}">
<content summary="update carcategory" description="update carcategory">
</content>
</scope>

</list_api>

Sơ đồ quan hệ các bảng

Table Name: {{table.name}}
Num Name Type
{{field_index+1}}
{{field.name}} {{field.type}}

Hỏi đáp

Gửi với tên {{comment_full_name}}

Chưa có câu hỏi nào cho bài này.

Zalo 0936.006.058 Hotline 0936.006.058