diff options
author | Larry Sachs <larry.j.sachs@intel.com> | 2020-07-20 22:46:49 -0700 |
---|---|---|
committer | Larry Sachs <larry.j.sachs@intel.com> | 2020-07-24 14:05:40 -0700 |
commit | b102d4ab1a47809f514213eb1f997d4f60893c9f (patch) | |
tree | a9e5d8e345d5e06bbff305f0d557f6452c040ff8 /src/orchestrator/api/api.go | |
parent | 783ed87fb39a8aa25e303e97aff2170dca059068 (diff) |
Adds PUT api to v2/projects
Add functionality to support the PUT api for v2/projects/{project-name}
Also add unit tests for the PUT api
Issue-ID: MULTICLOUD-1130
Change-Id: Ia271569c5f0dec3152952e64171fd5a182aaa333
Signed-off-by: Larry Sachs <larry.j.sachs@intel.com>
Diffstat (limited to 'src/orchestrator/api/api.go')
-rw-r--r-- | src/orchestrator/api/api.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/orchestrator/api/api.go b/src/orchestrator/api/api.go index 097b9ab3..03afee28 100644 --- a/src/orchestrator/api/api.go +++ b/src/orchestrator/api/api.go @@ -56,6 +56,7 @@ func NewRouter(projectClient moduleLib.ProjectManager, client: ControllerClient, } router.HandleFunc("/projects", projHandler.createHandler).Methods("POST") + router.HandleFunc("/projects/{project-name}", projHandler.updateHandler).Methods("PUT") router.HandleFunc("/projects/{project-name}", projHandler.getHandler).Methods("GET") router.HandleFunc("/projects", projHandler.getHandler).Methods("GET") router.HandleFunc("/projects/{project-name}", projHandler.deleteHandler).Methods("DELETE") |