Skip to content

nodebe/Mongo_Python_Pagination

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pagination using python, RestAPI, Flask, and MongoDB

These are the codes on the article I wrote concerning the title. You can read it here

Installation

Use the package manager pip to install requirements.

pip install -r requirements.txt

Instruction

To insert test data into database, goto books_api/books.py, uncomment line 27 and run the application. After the first instance, you can comment it back.

Usage

Run the application using. It runs on port 2424. You can change that in the app.py file

python app.py

You can make an endpoint call to 'http://127.0.0.1:2424/books' set body as {"page": 3, "limit": 5}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

About

PAGINATION USING PYTHON, REST API, FLASK & MONGODB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages