def get()

in example_app/graviton2_gh_runner_flask_app/resources/cart.py [0:0]


    def get(self, user_id: str):
        """Get the current cart (exclusive of items).

        Args:
            user_id: the id of the user whose cart we are retreiving
        """
        try:
            data = self.cart_controller.get_cart(user_id=user_id)
        except ClientError as e:
            resp = {"error": str(e)}, 404
        else:
            resp = {"data": convert_decimal(data.get("Item", {}))}, 200

        return resp