// DeassociateServiceFromApplicationGroup handles DELETE /apps-groups/<group_id>/<service_id> api endpoint
DeassociateServiceFromApplicationGroup handles DELETE /apps-groups// api endpoint
// DeassociateServiceFromApplicationGroup handles DELETE / apps - groups / <group_id > / <service_id > api endpoint
func DeassociateServiceFromApplicationGroup(c *routing.Context) error {
	appGroupID := c.Param("group_id")
	serviceID := c.Param("service_id")
	if !bson.IsObjectIdHex(string(serviceID)) || !bson.IsObjectIdHex(string(appGroupID)) {
		return http.Error(c, "Service/Group id not valid.", 400, ServiceDiscoveryServiceName())
	}
	appGroupService, err := getAppGroupService(c)
	if err != nil {
		return http.Error(c, err.Error(), 400, ServiceDiscoveryServiceName())
	}
	err = appGroupService.RemoveServiceFromGroup(appGroupID, serviceID)
	if err != nil {
		return http.Error(c, strconv.Quote(err.Error()), 400, ServiceDiscoveryServiceName())
	}
	return http.OkFormated(c, "Service deassociated from group successfuly.", ServiceDiscoveryServiceName())
}
func DeassociateServiceFromApplicationGroup ( c * routing . Context ) error { appGroupID := c . Param ( " " ) serviceID := c . Param ( " " ) if ! bson . IsObjectIdHex ( string ( serviceID ) ) || ! bson . IsObjectIdHex ( string ( appGroupID ) ) { return http . Error ( c , " " , 400 , ServiceDiscoveryServiceName ( ) ) } appGroupService , err := getAppGroupService ( c ) if err != nil { return http . Error ( c , err . Error ( ) , 400 , ServiceDiscoveryServiceName ( ) ) } err = appGroupService . RemoveServiceFromGroup ( appGroupID , serviceID ) if err != nil { return http . Error ( c , strconv . Quote ( err . Error ( ) ) , 400 , ServiceDiscoveryServiceName ( ) ) } return http . OkFormated ( c , " " , ServiceDiscoveryServiceName ( ) ) }
DeassociateServiceFromApplicationGroup handles DELETE /apps-groups// api endpoint
DeassociateServiceFromApplicationGroup handles DELETE / apps - groups // api endpoint
// Get application group service