def delete(self, id): hotel = HotelModel.findExists(id) hotel.delete() return {}, 204
def put(self, id): saved_hotel = HotelModel.findExists(id) data = arguments.parse_args() saved_hotel.update(**data) saved_hotel.save() return saved_hotel.json(), 200