diff options
author | 2022-07-21 14:23:53 +0000 | |
---|---|---|
committer | 2022-08-02 12:01:08 +0000 | |
commit | c376c951155b3930517b220baabaaacd1dcf3e54 (patch) | |
tree | 7847758ee752f31d2959492d951360ba6b6bb61d | |
parent | 9c1cb6a1db4a290ceccb09c003ad2c131aa91bc9 (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.kt | 2 |
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]) |