summaryrefslogtreecommitdiffstats
path: root/src/ncm/api/api.go
diff options
context:
space:
mode:
authorRitu Sood <Ritu.Sood@intel.com>2020-04-23 21:30:12 +0000
committerGerrit Code Review <gerrit@onap.org>2020-04-23 21:30:12 +0000
commitb54eda4919487b700554a27cb46b6e6b465ad180 (patch)
tree0ac7f947f6b0cfb0e13dc1d0af7651474e2b150c /src/ncm/api/api.go
parentbdb527826000c1ab7e832b2bf5fd188f72e3bfb9 (diff)
parent9e086eb494441de0967b84d0f04d3b4dc7e753c2 (diff)
Merge "Add code to apply workload network annotations"
Diffstat (limited to 'src/ncm/api/api.go')
-rw-r--r--src/ncm/api/api.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ncm/api/api.go b/src/ncm/api/api.go
index 7892113a..2b105716 100644
--- a/src/ncm/api/api.go
+++ b/src/ncm/api/api.go
@@ -135,6 +135,7 @@ func NewRouter(testClient interface{}) *mux.Router {
router.HandleFunc("/projects/{project}/composite-apps/{composite-app-name}/{version}/network-controller-intent/{name}", netcontrolintentHandler.putHandler).Methods("PUT")
router.HandleFunc("/projects/{project}/composite-apps/{composite-app-name}/{version}/network-controller-intent/{name}", netcontrolintentHandler.getHandler).Methods("GET")
router.HandleFunc("/projects/{project}/composite-apps/{composite-app-name}/{version}/network-controller-intent/{name}", netcontrolintentHandler.deleteHandler).Methods("DELETE")
+ router.HandleFunc("/projects/{project}/composite-apps/{composite-app-name}/{version}/network-controller-intent/{name}/apply", netcontrolintentHandler.applyHandler).Methods("POST")
workloadintentHandler := workloadintentHandler{
client: setClient(moduleClient.WorkloadIntent, testClient).(moduleLib.WorkloadIntentManager),