Enhance departmentSelfserveVehicleConditionsRoute with fine-grained permissions for global and own access; extend CRUD functionality to include customer-level validation and vehicle ownership checks; update OpenAPI descriptions accordingly.
This commit is contained in:
+4
-4
@@ -1772,7 +1772,7 @@ paths:
|
||||
tags:
|
||||
- Self-Serve
|
||||
summary: List vehicle conditions
|
||||
description: Retrieve a list of vehicle conditions for a department, lane, reg, or question.
|
||||
description: Retrieve a list of vehicle conditions for a department, lane, reg, or question. Customers will only see their own vehicle conditions.
|
||||
operationId: listSelfserveVehicleConditions
|
||||
parameters:
|
||||
- name: id
|
||||
@@ -1827,7 +1827,7 @@ paths:
|
||||
tags:
|
||||
- Self-Serve
|
||||
summary: Add vehicle condition
|
||||
description: Add a new vehicle condition (answer to a question).
|
||||
description: Add a new vehicle condition (answer to a question). Customers can only add conditions for their own vehicles.
|
||||
operationId: addSelfserveVehicleCondition
|
||||
requestBody:
|
||||
required: true
|
||||
@@ -1870,7 +1870,7 @@ paths:
|
||||
tags:
|
||||
- Self-Serve
|
||||
summary: Update vehicle condition
|
||||
description: Update an existing vehicle condition.
|
||||
description: Update an existing vehicle condition. Customers can only update conditions for their own vehicles.
|
||||
operationId: updateSelfserveVehicleCondition
|
||||
parameters:
|
||||
- name: id
|
||||
@@ -1916,7 +1916,7 @@ paths:
|
||||
tags:
|
||||
- Self-Serve
|
||||
summary: Delete vehicle condition
|
||||
description: Delete a vehicle condition.
|
||||
description: Delete a vehicle condition. Customers can only delete conditions for their own vehicles.
|
||||
operationId: deleteSelfserveVehicleCondition
|
||||
parameters:
|
||||
- name: id
|
||||
|
||||
Reference in New Issue
Block a user