Commit 3b641715 authored by Ikram Haq's avatar Ikram Haq
Browse files

Delete AppService by its ID

parent 49b10bc7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -574,8 +574,8 @@ func appServicesByIdDELETE(w http.ResponseWriter, r *http.Request) {
	log.Info("appServicesByIdDELETE")
	w.Header().Set("Content-Type", "application/json; charset=UTF-8")
	vars := mux.Vars(r)
	appId := vars["appInstanceId"]
	svcId := vars["serviceId"]
	svcId := vars["serviceApiId"]
	appId := vars["apfId"]

	mutex.Lock()
	defer mutex.Unlock()
+7 −0
Original line number Diff line number Diff line
@@ -371,6 +371,13 @@ var routes = Routes{
		capifMgmt.AppServicesServiceIdPUT,
	},

	Route{
		"AppServicesServiceIdDELETE",
		strings.ToUpper("Delete"),
		"/published-apis/v1/{apfId}/service-apis/{serviceApiId}",
		capifMgmt.AppServicesServiceIdDELETE,
	},

	Route{
		"Index",
		"GET",