Skip to main content

WasteType Multi-Category Affected Endpoints

This document lists all API endpoints affected by the WasteType Multi-Category migration implementation.

1. Core API (routes/api.php)

PriorityMethodEndpointController@MethodWhy Related
HIGHGETapi/waste-types/list-categoryWasteTypeController@listCategoryReturns categories[] array
HIGHPOSTapi/waste-typesWasteTypeController@storeCreates with categories sync
HIGHPUTapi/waste-types/{id}WasteTypeController@updateUpdates categories sync
MEDIUMGETapi/waste-types/listWasteTypeController@listReturns categories[] array
MEDIUMGETapi/waste-types/list-new-categoryWasteTypeController@listNewCategoryReturns categories[] array
LOWGETapi/waste-typesWasteTypeController@indexReturns categories[] array

2. Mobile API V2 (routes/api-app2.php)

PriorityMethodEndpointController@MethodWhy Related
HIGHGETapi-app/v2/waste-typesV2\WasteTypeController@indexReturns categories[] with pagination
HIGHPOSTapi-app/v2/waste-typesV2\WasteTypeController@storeCreates with categories + transaction
HIGHPUTapi-app/v2/waste-types/{id}V2\WasteTypeController@updateUpdates categories + is_default reset

3. Mobile API Legacy (routes/api-app.php)

PriorityMethodEndpointController@MethodWhy Related
MEDIUMPOSTapi-app/waste-typeBinController@wasteTypeReturns waste types to mobile app
MEDIUMPOSTapi-app/v2.15.70/waste-typeBinController@wasteTypeVersioned endpoint

4. Public API (routes/api-public.php)

PriorityMethodEndpointController@MethodWhy Related
MEDIUMGETpublic/partner/waste-typePartnerController@getWasteTypeReturns waste types to partners

5. Client API (routes/api-client.php)

PriorityMethodEndpointController@MethodWhy Related
MEDIUMGETget-waste-typeGetWasteTypeControllerReturns waste types to customer app

1. Bin Type Management - CRUD with Multi-Category UI (routes/admin.php)

PriorityMethodEndpointController@MethodWhy Related
HIGHGETadmin/bintypesBinTypeController@indexLists waste types with first category
HIGHPOSTadmin/bintypesBinTypeController@storeCreates with multi-select categories
HIGHGETadmin/bintypes/createBinTypeController@createShows multi-select categories UI
HIGHGETadmin/bintypes/{id}/editBinTypeController@editShows multi-select with existing cats
HIGHPUTadmin/bintypes/{id}BinTypeController@updateUpdates categories + is_default logic

2. Skip Bin Order Creation - Uses Category Filter (routes/admin.php)

PriorityMethodEndpointController@MethodWhy Related
HIGHGETadmin/skip-bin-orders/createOrderSkipBinController@createVue component filters by categories[]

Summary

CategoryHIGHMEDIUMTotal
API Endpoints5611
Admin Web606
TOTAL11617

Critical 11 Endpoints for QA (HIGH Priority)

API (5):

  1. GET api/waste-types/list-category - Returns categories[] array
  2. POST api/waste-types - Create with categories sync
  3. PUT api/waste-types/{id} - Update categories sync
  4. GET api-app/v2/waste-types - Mobile list with pagination
  5. POST api-app/v2/waste-types - Mobile create with transaction

Mobile (1):

  1. PUT api-app/v2/waste-types/{id} - Mobile update with is_default reset

Admin Web (5):

  1. GET admin/bintypes - List with first category display
  2. POST admin/bintypes - Create with multi-select categories
  3. GET admin/bintypes/create - Form with multi-select UI
  4. GET admin/bintypes/{id}/edit - Edit with loaded categories
  5. PUT admin/bintypes/{id} - Update with category sync + is_default

Frontend (1 page):

  1. GET admin/skip-bin-orders/create - Vue component filters waste types by categories[]