diff options
author | Kiran Kamineni <kiran.k.kamineni@intel.com> | 2019-04-10 21:54:41 -0700 |
---|---|---|
committer | Kiran Kamineni <kiran.k.kamineni@intel.com> | 2019-04-11 00:21:48 -0700 |
commit | 875a0d455997e70bd1f7e7f9119516b77d07e8b9 (patch) | |
tree | 15268ab9feace73ce3843a236afaf49232401145 /src/k8splugin/api/api.go | |
parent | 932322113184862b906f4b82fe83cfcf3403d021 (diff) |
Add support for so integration
Add support for the multicloud-api
that is called by SO for instantiation.
Issue-ID: MULTICLOUD-350
Change-Id: Icf9137dae9796ac256c3319b49af6c30b275a4a9
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Diffstat (limited to 'src/k8splugin/api/api.go')
-rw-r--r-- | src/k8splugin/api/api.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/k8splugin/api/api.go b/src/k8splugin/api/api.go index 54147d2e..4bf8d6a6 100644 --- a/src/k8splugin/api/api.go +++ b/src/k8splugin/api/api.go @@ -39,6 +39,13 @@ func NewRouter(defClient rb.DefinitionManager, // (TODO): Fix update method // instRouter.HandleFunc("/{vnfInstanceId}", UpdateHandler).Methods("PUT") + brokerHandler := brokerInstanceHandler{client: instClient} + instRouter.HandleFunc("/{cloud-owner}/{cloud-region}/infra_workload", brokerHandler.createHandler).Methods("POST") + instRouter.HandleFunc("/{cloud-owner}/{cloud-region}/infra_workload/{instID}", + brokerHandler.getHandler).Methods("GET") + instRouter.HandleFunc("/{cloud-owner}/{cloud-region}/infra_workload/{instID}", + brokerHandler.deleteHandler).Methods("DELETE") + //Setup resource bundle definition routes if defClient == nil { defClient = rb.NewDefinitionClient() |