def deleteAllCars(ignore): util.delete(settings.getCarsUrl(),"admin","admin") resp = getCars(ignore) print("Cars in store after deletion:"+ str(resp))
def deleteAllCars(ignore): """delete all cars in the store using RESTCONF""" util.delete(settings.getCarsUrl(), "admin", "admin") resp = getCars(ignore) print("Cars in store after deletion:" + str(resp))
def getCars(ignore): resp = util.get(settings.getCarsUrl(),"admin", "admin") print (resp) return resp
def getCars(ignore): """Uses the GET on car:cars resource to get all cars in the store using RESTCONF""" resp = util.get(settings.getCarsUrl(), "admin", "admin") print(resp) return resp
def deleteAllCars(ignore): util.delete(settings.getCarsUrl(), "admin", "admin") resp = getCars(ignore) print("Cars in store after deletion:" + str(resp))
def getCars(ignore): resp = util.get(settings.getCarsUrl(), "admin", "admin") print(resp) return resp