summaryrefslogtreecommitdiffstats
path: root/src/k8splugin/api/api.go
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2019-07-23 07:29:59 +0000
committerGerrit Code Review <gerrit@onap.org>2019-07-23 07:29:59 +0000
commit40014c64df3250db72b41e05da3dd40746d3d6d3 (patch)
tree53ac8d7d586341fe66ece7cd4c553e610c06c194 /src/k8splugin/api/api.go
parent75afe2e559a170f5cae7e870059db0438e02aa4b (diff)
parent412d02f7bd53a9e810be2c17d1c391c9bc6dda13 (diff)
Merge changes from topics "listprofiles", "tagprofile", "tag_defn"
* changes: Add list api for profiles Make profile db tags specific Make definition tags specific
Diffstat (limited to 'src/k8splugin/api/api.go')
-rw-r--r--src/k8splugin/api/api.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/k8splugin/api/api.go b/src/k8splugin/api/api.go
index 353972a1..a6cdfc7a 100644
--- a/src/k8splugin/api/api.go
+++ b/src/k8splugin/api/api.go
@@ -78,6 +78,7 @@ func NewRouter(defClient rb.DefinitionManager,
}
profileHandler := rbProfileHandler{client: profileClient}
resRouter.HandleFunc("/definition/{rbname}/{rbversion}/profile", profileHandler.createHandler).Methods("POST")
+ resRouter.HandleFunc("/definition/{rbname}/{rbversion}/profile", profileHandler.listHandler).Methods("GET")
resRouter.HandleFunc("/definition/{rbname}/{rbversion}/profile/{prname}/content", profileHandler.uploadHandler).Methods("POST")
resRouter.HandleFunc("/definition/{rbname}/{rbversion}/profile/{prname}", profileHandler.getHandler).Methods("GET")
resRouter.HandleFunc("/definition/{rbname}/{rbversion}/profile/{prname}", profileHandler.deleteHandler).Methods("DELETE")