summaryrefslogtreecommitdiffstats
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-08-02 12:01:08 +0000
commitc376c951155b3930517b220baabaaacd1dcf3e54 (patch)
tree7847758ee752f31d2959492d951360ba6b6bb61d
parent9c1cb6a1db4a290ceccb09c003ad2c131aa91bc9 (diff)
Change HTTP response code on Blueprint Model API
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 (cherry picked from commit eb7eb24bf107bbd42537a9557e07b5ca82280c60)
-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 66d4b0e16..5c8afbd49 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])