diff options
author | Bin Yang <bin.yang@windriver.com> | 2019-07-23 07:31:04 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-07-23 07:31:04 +0000 |
commit | bcbedee7c3a086d20d802265db3b2b26c359794d (patch) | |
tree | e2505e71370257c19bfe375b06971495f4185c9a /src/k8splugin/api/api.go | |
parent | 86ecc9397f67092f780c1c178e1305aa4621953b (diff) | |
parent | b8ecedd40b6be727233bf620a0aa5592f98161e7 (diff) |
Merge "Add a listallhandler to definitions api"
Diffstat (limited to 'src/k8splugin/api/api.go')
-rw-r--r-- | src/k8splugin/api/api.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/k8splugin/api/api.go b/src/k8splugin/api/api.go index ea7b5b26..4308db4f 100644 --- a/src/k8splugin/api/api.go +++ b/src/k8splugin/api/api.go @@ -70,6 +70,7 @@ func NewRouter(defClient rb.DefinitionManager, resRouter.HandleFunc("/definition", defHandler.createHandler).Methods("POST") resRouter.HandleFunc("/definition/{rbname}/{rbversion}/content", defHandler.uploadHandler).Methods("POST") resRouter.HandleFunc("/definition/{rbname}", defHandler.listVersionsHandler).Methods("GET") + resRouter.HandleFunc("/definition", defHandler.listAllHandler).Methods("GET") resRouter.HandleFunc("/definition/{rbname}/{rbversion}", defHandler.getHandler).Methods("GET") resRouter.HandleFunc("/definition/{rbname}/{rbversion}", defHandler.deleteHandler).Methods("DELETE") |