@@ -79,7 +79,11 @@ public ResponseEntity<List<TourResponse>> getAllTours(@PathVariable Long stageId
7979 @ ApiResponse (responseCode = "403" , description = "Access denied" ,
8080 content = @ Content (schema = @ Schema (implementation = ErrorResponse .class ))),
8181 @ ApiResponse (responseCode = "404" , description = "Tour not found" ,
82- content = @ Content (schema = @ Schema (implementation = ErrorResponse .class )))
82+ content = @ Content (schema = @ Schema (implementation = ErrorResponse .class ))),
83+ @ ApiResponse (responseCode = "409" ,
84+ description = "Conflict — the entity was modified by another request since it was last read "
85+ + "(stale version)" ,
86+ content = @ Content (mediaType = "application/json" , schema = @ Schema (implementation = ErrorResponse .class )))
8387 })
8488 @ PutMapping ("/stages/{stageId}/tours/{tourId}" )
8589 @ PreAuthorize ("hasAnyRole('ADMIN', 'ORG')" )
@@ -98,7 +102,11 @@ public ResponseEntity<TourResponse> updateTour(
98102 @ ApiResponse (responseCode = "403" , description = "Access denied" ,
99103 content = @ Content (mediaType = "application/json" , schema = @ Schema (implementation = ErrorResponse .class ))),
100104 @ ApiResponse (responseCode = "404" , description = "Tour not found" ,
101- content = @ Content (schema = @ Schema (implementation = ErrorResponse .class )))
105+ content = @ Content (schema = @ Schema (implementation = ErrorResponse .class ))),
106+ @ ApiResponse (responseCode = "409" ,
107+ description = "Conflict — the entity was modified by another request since it was last read "
108+ + "(stale version)" ,
109+ content = @ Content (mediaType = "application/json" , schema = @ Schema (implementation = ErrorResponse .class )))
102110 })
103111 @ PatchMapping ("/stages/{stageId}/tours/{tourId}/status" )
104112 @ PreAuthorize ("hasAnyRole('ADMIN', 'ORG')" )
0 commit comments