Skip to content

Getting started

Raphael Schubert edited this page Mar 5, 2019 · 1 revision

To use this package, you will need only 2 minutes.

Install the package:

$ pip install masonite-api-pagination

Now import it on your Masonite resource file.

from api.serializers import JSONSerializer
from masonite_api_pagination.resources.PaginatedResource import PaginatedResource

from app.User import User


class UserResource(PaginatedResource, JSONSerializer):
    model = User

And that's it! You are up and running.

Clone this wiki locally