From eb7eb24bf107bbd42537a9557e07b5ca82280c60 Mon Sep 17 00:00:00 2001 From: Michal Jagiello Date: Thu, 21 Jul 2022 14:23:53 +0000 Subject: [Blueprintsprocessor] Blueprint Model API returns 204 NO CONTENT if blueprint model does not exist Issue-ID: CCSDK-3729 Signed-off-by: Michal Jagiello Change-Id: Ie19128d1ece6b229e5c2e5636ab3a7add4e2f3ef --- .../cds/blueprintsprocessor/designer/api/BlueprintModelController.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ms') diff --git a/ms/blueprintsprocessor/modules/inbounds/designer-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/designer/api/BlueprintModelController.kt b/ms/blueprintsprocessor/modules/inbounds/designer-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/designer/api/BlueprintModelController.kt index 777a21457..b3b67ce34 100644 --- a/ms/blueprintsprocessor/modules/inbounds/designer-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/designer/api/BlueprintModelController.kt +++ b/ms/blueprintsprocessor/modules/inbounds/designer-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/designer/api/BlueprintModelController.kt @@ -229,7 +229,7 @@ open class BlueprintModelController(private val bluePrintModelHandler: BluePrint if (bluePrintModel != null) ResponseEntity(bluePrintModel, HttpStatus.OK) else - ResponseEntity(HttpStatus.NO_CONTENT) + ResponseEntity(HttpStatus.NOT_FOUND) } @GetMapping("/download/by-name/{name}/version/{version}", produces = [MediaType.APPLICATION_JSON_VALUE]) -- cgit 1.2.3-korg