flask-restful-mongodb-api:使用 Flask-restful 和 MongoDB 的 REST api

时间:2021-06-09 01:04:59
【文件属性】:
文件名称:flask-restful-mongodb-api:使用 Flask-restful 和 MongoDB 的 REST api
文件大小:15KB
文件格式:ZIP
更新时间:2021-06-09 01:04:59
Python 烧瓶-restful-mongodb-api 使用 Flask-restful 和 MongoDB 的 REST api 安装要求: 在虚拟环境中安装需求。 pip install -r requirements.txt 测试api Api 可以通过多种方式进行测试。 Python模块示例: 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)
【文件预览】:
flask-restful-mongodb-api-master
----requirements.txt(207B)
----.idea()
--------misc.xml(1KB)
--------workspace.xml(13KB)
--------flask-restful-mongodb-api.iml(573B)
--------.name(25B)
--------encodings.xml(164B)
--------modules.xml(302B)
--------scopes()
--------vcs.xml(180B)
----LICENSE(18KB)
----README.md(577B)
----.gitignore(702B)
----api.py(3KB)

网友评论