Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Flask RESTfulAPI 简单介绍

描述:通过Flask可以写出一个API接口,flask自带有安全认证机制,我们可以直接使用这个机制,让你的接口接近安全

环境:

  1. Python 2.7
  2. Flask *
  3. Linux Centos6.5

安装:

pip install flask

pip install flask-httpauth

注意:

  1. 代码文件中只有对GET/POST/PUT三种模式和一种安全机制进行基础代码示例,详情可以直接参考官方文档
  2. 文件中代码有注释,单一调试请去掉注释即可。

参考文档及一些文章:

  1. RESTful API中文版:http://www.pythondoc.com/flask-mega-tutorial/index.html

  2. RESTful API官方版本:http://flask-restless.readthedocs.io/en/stable/api.html

  3. RESTful API快速入门:http://www.cnblogs.com/kaituorensheng/p/4645080.html

  4. Flask官方文档:http://www.pythondoc.com/flask-mega-tutorial/index.html