// DeleteEndpointHandler handles DELETE /service/<service_id> request

DeleteEndpointHandler handles DELETE /service/ request
// DeleteEndpointHandler handles DELETE / service / <service_id > request
func DeleteEndpointHandler(c *routing.Context) error {
	serviceDiscovery := ServiceDiscovery(c)
	serviceID := c.Param("service_id")
	err := serviceDiscovery.DeleteService(
		service.Service{
			Id: bson.ObjectIdHex(serviceID),
		})
	if err != nil {
		return http.NotFound(c, err.Error(), ServiceDiscoveryServiceName())
	}
	return http.Deleted(c, `Service deleted successfuly`, ServiceDiscoveryServiceName())
}
func DeleteEndpointHandler ( c * routing . Context ) error { serviceDiscovery := ServiceDiscovery ( c ) serviceID := c . Param ( " " ) err := serviceDiscovery . DeleteService ( service . Service { Id : bson . ObjectIdHex ( serviceID ) , } ) if err != nil { return http . NotFound ( c , err . Error ( ) , ServiceDiscoveryServiceName ( ) ) } return http . Deleted ( c , `Service deleted successfuly` , ServiceDiscoveryServiceName ( ) ) }
DeleteEndpointHandler handles DELETE /service/ request
DeleteEndpointHandler handles DELETE / service / request
// create service discovery object with authenticated user
 // Get uri parameter
