disableenable service and rest endpoint