diff options
author | Lukasz Rajewski <lukasz.rajewski@orange.com> | 2022-02-03 19:18:07 +0100 |
---|---|---|
committer | Lukasz Rajewski <lukasz.rajewski@orange.com> | 2022-02-23 14:27:01 +0100 |
commit | 88ecb1f9dfeded36e7fd74c776daefcaf67f8ae2 (patch) | |
tree | 321eb34967dd32a43d7e3ac62b5fd664e5b2231b /src/k8splugin/api/queryhandler.go | |
parent | 1f92a0ec4ea037089b82e3f80bb030f34fab64f0 (diff) |
ConfigAPI and Query API improvements
- Config Template create from the definition content
- Missing CRUD Config handlers added
- Improved Rollback and Config delete
- Query API name filtering improved
Issue-ID: MULTICLOUD-1437
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: Iec8ec6d03746085f294d9318a252f1ae45d3b9c8
Diffstat (limited to 'src/k8splugin/api/queryhandler.go')
-rw-r--r-- | src/k8splugin/api/queryhandler.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/k8splugin/api/queryhandler.go b/src/k8splugin/api/queryhandler.go index f5950cdf..497767b0 100644 --- a/src/k8splugin/api/queryhandler.go +++ b/src/k8splugin/api/queryhandler.go @@ -33,12 +33,12 @@ type queryHandler struct { // queryHandler retrieves information about specified resources for instance func (i queryHandler) queryHandler(w http.ResponseWriter, r *http.Request) { - namespace := r.FormValue("Namespace") - cloudRegion := r.FormValue("CloudRegion") - apiVersion := r.FormValue("ApiVersion") - kind := r.FormValue("Kind") - name := r.FormValue("Name") - labels := r.FormValue("Labels") + namespace := r.URL.Query().Get("Namespace") + cloudRegion := r.URL.Query().Get("CloudRegion") + apiVersion := r.URL.Query().Get("ApiVersion") + kind := r.URL.Query().Get("Kind") + name := r.URL.Query().Get("Name") + labels := r.URL.Query().Get("Labels") if cloudRegion == "" { http.Error(w, "Missing CloudRegion mandatory parameter", http.StatusBadRequest) return |