API Quản lý Nội dung & Truyền thông
Tài liệu các endpoint dành cho Quản lý (Partner) để tạo và quản lý nội dung (Tin tức, Sự kiện, Khuyến mãi).
1. Quản lý Tin tức
1.1 Lấy danh sách Tin tức
- Method:
GET - Endpoint:
/api/{locale}/v1/partner/news
1.2 Tạo bài viết Tin tức
- Method:
POST - Endpoint:
/api/{locale}/v1/partner/news - Body:
multipart/form-data(Hỗ trợ upload ảnh cover)
1.3 Cập nhật bài viết Tin tức
- Method:
POST(Với_method=PUTnếu có upload ảnh) hoặcPUT - Endpoint:
/api/{locale}/v1/partner/news/{id}
1.4 Xóa bài viết
- Method:
DELETE - Endpoint:
/api/{locale}/v1/partner/news/{id}
2. Quản lý Sự kiện
2.1 Lấy danh sách Sự kiện
- Method:
GET - Endpoint:
/api/{locale}/v1/partner/events
2.2 Tạo Sự kiện mới
- Method:
POST - Endpoint:
/api/{locale}/v1/partner/events - Body:
multipart/form-data(Hỗ trợ upload ảnh cover)
2.3 Cập nhật Sự kiện
- Method:
POST(Với_method=PUTnếu có upload ảnh) hoặcPUT - Endpoint:
/api/{locale}/v1/partner/events/{id}
2.4 Xóa Sự kiện
- Method:
DELETE - Endpoint:
/api/{locale}/v1/partner/events/{id}
3. Quản lý Khuyến mãi
3.1 Lấy danh sách Khuyến mãi
- Method:
GET - Endpoint:
/api/{locale}/v1/partner/promotions
3.2 Tạo Khuyến mãi mới
- Method:
POST - Endpoint:
/api/{locale}/v1/partner/promotions - Body:
multipart/form-data
3.3 Cập nhật Khuyến mãi
- Method:
POST(Với_method=PUTnếu có upload ảnh) hoặcPUT - Endpoint:
/api/{locale}/v1/partner/promotions/{id}
3.4 Xóa Khuyến mãi
- Method:
DELETE - Endpoint:
/api/{locale}/v1/partner/promotions/{id}