Ryanb58 / fastapi-saas-base

Fast API SAAS Base App
MIT License
70 stars 15 forks source link

Pagination #1

Open Ryanb58 opened 4 years ago

Ryanb58 commented 4 years ago

I need to figure out how to make my listing endpoints respond in a paginated way.

Maybe using some sort of generic pydantic schema.

Ryanb58 commented 4 years ago

Generic Models:

https://pydantic-docs.helpmanual.io/usage/models/#generic-models

pachacamac commented 3 years ago

How about https://github.com/uriyyo/fastapi-pagination ?

Ryanb58 commented 3 years ago

@pachacamac Wish that library was around back when I was playing around with fastapi. Thanks for pointing it out.