VEHICLE BRAND
🚘 Technical Specification: Vehicle Brand Setup
📋 Feature Overview
🛠️ Technical Implementation
A. Permissions & Access Control
Note: Access is controlled via
PermissionGuard and component-level checks.| Scope | Permission Code | Description & Page Usage |
|---|---|---|
| Menu Visibility | VEHICLE_BRAND.MENU |
Sidebar menu visibility.
|
| Page Routing | VEHICLE_BRAND.LISTING |
Access to listing route.\vehicle-brand |
| Page Routing | VEHICLE_BRAND.VIEW |
Access to add/edit route.
|
| Create Action | VEHICLE_BRAND.UPDATE |
Controls the + Add button on listing.\vehicle-brand |
| View Access | VEHICLE_BRAND.VIEW |
Controls visibility of Edit icon.\vehicle-brand |
| Delete Action | VEHICLE_BRAND.DELETE |
Visibility of the Delete 🗑️ icon.\vehicle-brand |
| Edit/Save Action | VEHICLE_BRAND.UPDATE |
Ability to save changes on Add/Edit screen.\add-vehicle-brand |
B. API Interaction
Base URL:
${environment.baseApiUrl}1. Listing Vehicle Brand
\vehicle-brand/vehicleBrands/getQuery
POSTFilter:
brandName, isActive/movers/getQuery
POSTFilter:
vehicleBrandId (Dependency Check)/vehicleBrands/delete
POSTPurpose: Delete Record
2. Add Vehicle Brand
\add-vehicle-brand/vehicleBrands/getOne
GETPurpose: Fetch specific record by ID
/vehicleBrands/getQuery
POSTFilter:
brandName (Uniqueness Check)/vehicleBrands/create
POSTPurpose: Create new
dataSource record/vehicleBrands/update
POSTPurpose: Update existing
dataSource record