14
14
import org .ays .emergency_application .model .response .EmergencyEvacuationApplicationResponse ;
15
15
import org .ays .emergency_application .model .response .EmergencyEvacuationApplicationsResponse ;
16
16
import org .ays .emergency_application .service .EmergencyEvacuationApplicationService ;
17
+ import org .ays .emergency_application .util .annotation .CheckEmergencyEvacuationApplicationActivity ;
17
18
import org .hibernate .validator .constraints .UUID ;
18
19
import org .springframework .security .access .prepost .PreAuthorize ;
19
20
import org .springframework .validation .annotation .Validated ;
@@ -77,6 +78,7 @@ public AysResponse<EmergencyEvacuationApplicationResponse> findById(@PathVariabl
77
78
return AysResponse .successOf (emergencyEvacuationApplicationResponse );
78
79
}
79
80
81
+
80
82
/**
81
83
* Endpoint to create a new emergency evacuation application.
82
84
* This method accepts a POST request with the emergency evacuation application details in the request body.
@@ -85,6 +87,7 @@ public AysResponse<EmergencyEvacuationApplicationResponse> findById(@PathVariabl
85
87
* @param emergencyEvacuationApplicationRequest the details of the emergency evacuation application
86
88
* @return a response indicating the success of the operation
87
89
*/
90
+ @ CheckEmergencyEvacuationApplicationActivity
88
91
@ PostMapping ("/emergency-evacuation-application" )
89
92
public AysResponse <Void > create (@ RequestBody @ Valid EmergencyEvacuationApplicationRequest emergencyEvacuationApplicationRequest ) {
90
93
emergencyEvacuationApplicationService .create (emergencyEvacuationApplicationRequest );
@@ -101,7 +104,7 @@ public AysResponse<Void> create(@RequestBody @Valid EmergencyEvacuationApplicati
101
104
* The user must have the authority 'application:evacuation:update' to access this endpoint.
102
105
* </p>
103
106
*
104
- * @param id the unique identifier of the Emergency Evacuation Application to be updated
107
+ * @param id the unique identifier of the Emergency Evacuation Application to be updated
105
108
* @param updateRequest the request object containing the details to update the Emergency Evacuation Application
106
109
* @return a response indicating the success of the update operation
107
110
*/
0 commit comments