Fix #2880 findings (#2887)

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2026-01-23 10:15:45 +02:00
committed by GitHub
parent 97762360c3
commit d9e52cb542
5 changed files with 7 additions and 10 deletions

View File

@@ -276,7 +276,7 @@ public interface MgmtTargetRestApi {
description = "Cancels an active action, only active actions can be deleted. Required Permission: UPDATE_TARGET")
@DeleteResponses
@ApiResponses(value = {
@ApiResponse(responseCode = METHOD_NOT_ALLOWED_405, description = "Software module is locked",
@ApiResponse(responseCode = METHOD_NOT_ALLOWED_405, description = "Action is not in cancelling state",
content = @Content(mediaType = "application/json", schema = @Schema(hidden = true)))
})
@DeleteMapping(value = TARGETS_V1 + "/{targetId}/actions/{actionId}")

View File

@@ -143,7 +143,7 @@ public interface MgmtTargetTypeRestApi {
"Required Permission: CREATE_TARGET")
@PostCreateResponses
@ApiResponses(value = {
@ApiResponse(responseCode = NOT_FOUND_404, description = "Target type not found.",
@ApiResponse(responseCode = NOT_FOUND_404, description = "Compatible distributions sets not found.",
content = @Content(mediaType = "application/json", schema = @Schema(hidden = true)))
})
@PostMapping(value = TARGETTYPES_V1,