summaryrefslogtreecommitdiffstats
path: root/src/k8splugin/api/api.go
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2019-07-23 07:30:16 +0000
committerGerrit Code Review <gerrit@onap.org>2019-07-23 07:30:16 +0000
commitf83526881ac7758638b1e7e0e1bcf2ab8cd13133 (patch)
tree83e38d253bf746e39b38d026fd9ba0717f626cad /src/k8splugin/api/api.go
parent40014c64df3250db72b41e05da3dd40746d3d6d3 (diff)
parente04fd6fa1f0abe6b18787b192e01164db1db06db (diff)
Merge "Add a list api for instances"
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 a6cdfc7a..ea7b5b26 100644
--- a/src/k8splugin/api/api.go
+++ b/src/k8splugin/api/api.go
@@ -38,6 +38,7 @@ func NewRouter(defClient rb.DefinitionManager,
instHandler := instanceHandler{client: instClient}
instRouter := router.PathPrefix("/v1").Subrouter()
instRouter.HandleFunc("/instance", instHandler.createHandler).Methods("POST")
+ instRouter.HandleFunc("/instance", instHandler.listHandler).Methods("GET")
instRouter.HandleFunc("/instance/{instID}", instHandler.getHandler).Methods("GET")
instRouter.HandleFunc("/instance/{instID}", instHandler.deleteHandler).Methods("DELETE")
// (TODO): Fix update method