https://github.com/stevemats/paginationdemo
Pagination API using Python and FastAPI
https://github.com/stevemats/paginationdemo
api fastapi pagination python uvicorn
Last synced: about 1 month ago
JSON representation
Pagination API using Python and FastAPI
- Host: GitHub
- URL: https://github.com/stevemats/paginationdemo
- Owner: stevemats
- Created: 2022-03-31T10:25:02.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-31T11:18:44.000Z (about 4 years ago)
- Last Synced: 2025-11-16T15:32:05.266Z (8 months ago)
- Topics: api, fastapi, pagination, python, uvicorn
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
README
# FastAPI Pagination Demo
FastAPI project demo. Modify it to use on other projects.
The _*data.Json*_ demo data was gotten from => [jsonplaceholder.typicode.com](https://jsonplaceholder.typicode.com/posts)
---
## Requirements:
- [FastAPI](https://fastapi.tiangolo.com/) => pip install fastapi
- [Uvicorn](https://www.uvicorn.org/) => pip install "uvicorn[standard]"
- [Repo clone](https://github.com/stevemats/PaginationDemo) => git clone https://github.com/stevemats/PaginationDemo.git
---
## Usage:
On your terminal, navigate to project folder and run below commands:
Run the api in dev mode:
uvicorn main:app --reload
or
python -m uvicorn main:app --reload
Access the Json Data:
http://127.0.0.1:8000/posts
Access the Interactive Documentation:
http://127.0.0.1:8000/docs

Alternate Documentation:
http://127.0.0.1:8000/redoc

---