def get(cls, id: int): notebook = NotebookModel.find_by_id(id) if not notebook: return {'message': 'Notebook not found'}, 404 return { "pages": page_list_schema.dump(PageModel.find_all_pages_of_notebook(id)) }, 200