Skip to content

salmanwahed/flask-restful-mongodb-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flask-restful-mongodb-api

REST api using flask-restful and MongoDB

Install requirements:

Install the requirements in a virtual environment.

pip install -r requirements.txt

Testing api

Api can be tested in several ways. Python requests module example:


In [1]: from requests import get, post, put, delete
In [2]: get("http://127.0.0.1:5000/api")
In [3]: data = {"name": "Example Name", "registration": "123433199", "department": "cse"}
In [4]: post("http://127.0.0.1:5000/api", json=data)

About

REST api using flask-restful and MongoDB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages