Esempio n. 1
0
 async def get_many(self, *args, **kwargs) -> Response:
     organizations = Organization.get_items()
     return await self.to_response(await self.serialize(data=organizations,
                                                        many=True,
                                                        paginate=True))
Esempio n. 2
0
 async def get_all(self, *args, **kwargs) -> Response:
     organizations = Organization.get_items()
     return await self.serialize(data=organizations, many=True)