WasteType Multi-Category Affected Endpoints
This document lists all API endpoints affected by the WasteType Multi-Category migration implementation.
API Endpoints (Multi-Category Related)
1. Core API (routes/api.php)
| Priority | Method | Endpoint | Controller@Method | Why Related |
|---|---|---|---|---|
| HIGH | GET | api/waste-types/list-category | WasteTypeController@listCategory | Returns categories[] array |
| HIGH | POST | api/waste-types | WasteTypeController@store | Creates with categories sync |
| HIGH | PUT | api/waste-types/{id} | WasteTypeController@update | Updates categories sync |
| MEDIUM | GET | api/waste-types/list | WasteTypeController@list | Returns categories[] array |
| MEDIUM | GET | api/waste-types/list-new-category | WasteTypeController@listNewCategory | Returns categories[] array |
| LOW | GET | api/waste-types | WasteTypeController@index | Returns categories[] array |
2. Mobile API V2 (routes/api-app2.php)
| Priority | Method | Endpoint | Controller@Method | Why Related |
|---|---|---|---|---|
| HIGH | GET | api-app/v2/waste-types | V2\WasteTypeController@index | Returns categories[] with pagination |
| HIGH | POST | api-app/v2/waste-types | V2\WasteTypeController@store | Creates with categories + transaction |
| HIGH | PUT | api-app/v2/waste-types/{id} | V2\WasteTypeController@update | Updates categories + is_default reset |
3. Mobile API Legacy (routes/api-app.php)
| Priority | Method | Endpoint | Controller@Method | Why Related |
|---|---|---|---|---|
| MEDIUM | POST | api-app/waste-type | BinController@wasteType | Returns waste types to mobile app |
| MEDIUM | POST | api-app/v2.15.70/waste-type | BinController@wasteType | Versioned endpoint |
4. Public API (routes/api-public.php)
| Priority | Method | Endpoint | Controller@Method | Why Related |
|---|---|---|---|---|
| MEDIUM | GET | public/partner/waste-type | PartnerController@getWasteType | Returns waste types to partners |
5. Client API (routes/api-client.php)
| Priority | Method | Endpoint | Controller@Method | Why Related |
|---|---|---|---|---|
| MEDIUM | GET | get-waste-type | GetWasteTypeController | Returns waste types to customer app |
Admin Web Routes (Multi-Category Related)
1. Bin Type Management - CRUD with Multi-Category UI (routes/admin.php)
| Priority | Method | Endpoint | Controller@Method | Why Related |
|---|---|---|---|---|
| HIGH | GET | admin/bintypes | BinTypeController@index | Lists waste types with first category |
| HIGH | POST | admin/bintypes | BinTypeController@store | Creates with multi-select categories |
| HIGH | GET | admin/bintypes/create | BinTypeController@create | Shows multi-select categories UI |
| HIGH | GET | admin/bintypes/{id}/edit | BinTypeController@edit | Shows multi-select with existing cats |
| HIGH | PUT | admin/bintypes/{id} | BinTypeController@update | Updates categories + is_default logic |
2. Skip Bin Order Creation - Uses Category Filter (routes/admin.php)
| Priority | Method | Endpoint | Controller@Method | Why Related |
|---|---|---|---|---|
| HIGH | GET | admin/skip-bin-orders/create | OrderSkipBinController@create | Vue component filters by categories[] |
Summary
| Category | HIGH | MEDIUM | Total |
|---|---|---|---|
| API Endpoints | 5 | 6 | 11 |
| Admin Web | 6 | 0 | 6 |
| TOTAL | 11 | 6 | 17 |
Critical 11 Endpoints for QA (HIGH Priority)
API (5):
GET api/waste-types/list-category- Returnscategories[]arrayPOST api/waste-types- Create with categories syncPUT api/waste-types/{id}- Update categories syncGET api-app/v2/waste-types- Mobile list with paginationPOST api-app/v2/waste-types- Mobile create with transaction
Mobile (1):
PUT api-app/v2/waste-types/{id}- Mobile update with is_default reset
Admin Web (5):
GET admin/bintypes- List with first category displayPOST admin/bintypes- Create with multi-select categoriesGET admin/bintypes/create- Form with multi-select UIGET admin/bintypes/{id}/edit- Edit with loaded categoriesPUT admin/bintypes/{id}- Update with category sync + is_default
Frontend (1 page):
GET admin/skip-bin-orders/create- Vue component filters waste types bycategories[]