| POST |
/api/login |
AuthController@login |
Authenticate user and issue JWT token. |
| POST |
/api/logout |
AuthController@logout |
Invalidate JWT token and sign out. |
| GET |
/api/users |
UserManagementController@index |
List users with roles and department. |
| POST |
/api/users |
UserManagementController@store |
Create user with department and role. |
| DELETE |
/api/users/{id} |
UserManagementController@destroy |
Remove user account. |
| GET |
/api/roles |
UserManagementController@getRoles |
Retrieve role list with permissions. |
| GET |
/api/permissions |
UserManagementController@getPermissions |
List grouped permission names for UI. |
| POST |
/api/roles |
UserManagementController@storeRole |
Create role and assign existing permissions. |
| GET |
/api/quotations |
QuotationController@index |
List quotations with item count, PDF generation status, and latest PDF URL. |
| POST |
/api/quotations |
QuotationController@store |
Create quotation draft with auto pricing engine and per-item client pricing. |
| GET |
/api/quotations/{id} |
QuotationController@show |
Get quotation detail with items and related contract/project data. |
| PUT |
/api/quotations/{id} |
QuotationController@update |
Edit quotation and recalc financial fields. |
| DELETE |
/api/quotations/{id} |
QuotationController@destroy |
Delete quotation and related items. |
| PATCH |
/api/quotations/{id}/status |
QuotationController@updateStatus |
Change quotation status and trigger ERP automation. |
| POST |
/api/quotations/{id}/generate-pdf |
QuotationController@generatePdf |
Generate quotation PDF, upload to GCS, and store print metadata. |
| GET |
/api/departments |
DepartmentController@index |
List department master data. |
| POST |
/api/departments |
DepartmentController@store |
Create a department record. |
| GET |
/api/departments/{id} |
DepartmentController@show |
Get single department detail. |
| PUT |
/api/departments/{id} |
DepartmentController@update |
Update department information. |
| DELETE |
/api/departments/{id} |
DepartmentController@destroy |
Delete department if no active employees. |
| GET |
/api/positions |
PositionController@index |
List positions. |
| POST |
/api/positions |
PositionController@store |
Create a new position. |
| GET |
/api/positions/{id} |
PositionController@show |
Show position and its employees. |
| PUT |
/api/positions/{id} |
PositionController@update |
Update position title. |
| DELETE |
/api/positions/{id} |
PositionController@destroy |
Delete position only if unused. |
| GET |
/api/employees |
EmployeeController@index |
List employees with department and position. |
| POST |
/api/employees |
EmployeeController@store |
Add new employee. |
| GET |
/api/employees/{id} |
EmployeeController@show |
Employee detail with relations. |
| PUT |
/api/employees/{id} |
EmployeeController@update |
Update employee profile and status. |
| DELETE |
/api/employees/{id} |
EmployeeController@destroy |
Remove employee record. |
| GET |
/api/contracts |
ContractController@index |
List umbrella contracts. |
| POST |
/api/contracts |
ContractController@store |
Create contract metadata. |
| GET |
/api/contracts/{id} |
ContractController@show |
Fetch contract detail with projects. |
| PUT |
/api/contracts/{id} |
ContractController@update |
Update contract fields. |
| DELETE |
/api/contracts/{id} |
ContractController@destroy |
Delete contract if no related projects exist. |
| GET |
/api/projects |
ProjectController@index |
List projects with budget analysis. |
| POST |
/api/projects |
ProjectController@store |
Create a project record. |
| GET |
/api/projects/{id} |
ProjectController@show |
Get project details and profit analysis. |
| PUT |
/api/projects/{id} |
ProjectController@update |
Update project metadata. |
| DELETE |
/api/projects/{id} |
ProjectController@destroy |
Delete a project record. |
| POST |
/api/projects/{id}/assign-employee |
ProjectController@assignEmployee |
Assign employee to a project with billing and allocation. |
| GET |
/api/reimbursements |
ReimbursementController@index |
List reimbursements with relations. |
| POST |
/api/reimbursements |
ReimbursementController@store |
Submit reimbursement with file upload support. |
| GET |
/api/reimbursements/{id} |
ReimbursementController@show |
Retrieve reimbursement detail and attachments. |
| POST |
/api/reimbursements/{id} |
ReimbursementController@update |
Update reimbursement using multipart/form-data. |
| DELETE |
/api/reimbursements/{id} |
ReimbursementController@destroy |
Delete reimbursement and associated GCS attachments. |
| PATCH |
/api/reimbursements/{id}/approve-final |
ReimbursementController@approveFinal |
Approve reimbursement and schedule disbursement date. |
| PATCH |
/api/reimbursements/{id}/pay |
ReimbursementController@markAsPaid |
Mark reimbursement as paid and deduct allocation. |