aboutsummaryrefslogtreecommitdiffstats
path: root/ms/blueprintsprocessor
diff options
context:
space:
mode:
authorMichal Jagiello <michal.jagiello@t-mobile.pl>2022-07-21 14:23:53 +0000
committerMichal Jagiello <michal.jagiello@t-mobile.pl>2022-07-21 14:23:53 +0000
commiteb7eb24bf107bbd42537a9557e07b5ca82280c60 (patch)
tree2c337744833e3dfcec840a687ac0febd3b8eb1e6 /ms/blueprintsprocessor
parent3395dfa1f31111bb4dd03e89a7e493a2850901f2 (diff)
[Blueprintsprocessor] Blueprint Model API returns 204 NO CONTENT if blueprint model does not exist
Issue-ID: CCSDK-3729 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: Ie19128d1ece6b229e5c2e5636ab3a7add4e2f3ef
Diffstat (limited to 'ms/blueprintsprocessor')
-rw-r--r--ms/blueprintsprocessor/modules/inbounds/designer-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/designer/api/BlueprintModelController.kt2
1 files changed, 1 insertions, 1 deletions
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])