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)
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])