def get()

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


    def get(self, book_id: str):
        """Get a single book from the data store.

        Args:
            book_id: str - the id of a book
        """
        try:
            data = self.books_controller.get_book(book_id=book_id)
        except ClientError as e:
            resp = {"error": str(e)}, 404
        else:
            resp = {"data": convert_decimal(data.get("Item"))}, 200

        return resp