Mihirrpatel005 / flask-restful-mongodb-api

REST api using flask-restful and MongoDB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:GNU General Public License v2.0


Languages

Language:Python 100.0%