Ejemplo 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))
Ejemplo n.º 2
0
 async def get_all(self, *args, **kwargs) -> Response:
     organizations = Organization.get_items()
     return await self.serialize(data=organizations, many=True)