Fix broken model-type API endpoint 93/129293/1
authorJozsef Csongvai <jozsef.csongvai@bell.ca>
Tue, 17 May 2022 15:47:15 +0000 (11:47 -0400)
committerJozsef Csongvai <jozsef.csongvai@bell.ca>
Tue, 17 May 2022 15:47:15 +0000 (11:47 -0400)
The endpoint path was accidentally changed with CCSDK-3014, where a
trailing slash was added to the path. This reverts the endpoint path,
and is still compatible with requests that have a trailing slash.

Issue-ID: CCSDK-3672
Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca>
Change-Id: I071e15a525750d3068c53ff9f5447c524cd44669

ms/blueprintsprocessor/modules/inbounds/designer-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/designer/api/ModelTypeController.kt

index 3689f73..91b2762 100644 (file)
@@ -76,7 +76,7 @@ open class ModelTypeController(private val modelTypeHandler: ModelTypeHandler) {
         }
 
     @PostMapping(
-        path = ["/"],
+        path = [""],
         produces = [MediaType.APPLICATION_JSON_VALUE],
         consumes = [MediaType.APPLICATION_JSON_VALUE]
     )