コード例 #1
0
    def get(self):
        """
        List all projects

        Returns a collection of projects paginated and consolidated
        in bundles of 10 per page
        """

        # Retrieval of pagination parameters: page, per_page
        page_args = PAGINATOR.parse_args()
        return orm_project.paginate(page_args['per_page'], page_args['page']).serialize(), 200