官术网_书友最值得收藏!

Introducing Flask-RESTPlus

Flask is capable of implementing a RESTful interface, but Flask-RESTPlus adds some very interesting capabilities that allow for good developing practices and speed of development:

  • It defines namespaces, which are ways of creating prefixes and structuring the code. This helps long-term maintenance and helps with the design when creating new endpoints. 
If you have more than 10 endpoints in a single namespace, it may be a good time to consider dividing it. Use one namespace per file, and allow the size of the file to hint when it's a good idea to try to make a division.
The main Swagger documentation page for the Thoughts Backend API, generated automatically

Other nice elements of Flask are derived from the fact that it's a popular project and has a lot of supported tools:

主站蜘蛛池模板: 伊通| 江华| 收藏| 上栗县| 阳朔县| 绥宁县| 阳泉市| 聂拉木县| 渭南市| 确山县| 无锡市| 静宁县| 龙门县| 电白县| 巴彦淖尔市| 潢川县| 库车县| 虞城县| 寻甸| 冷水江市| 海安县| 太白县| 桦甸市| 余干县| 灵武市| 上虞市| 灵武市| 栾城县| 金华市| 平湖市| 双鸭山市| 屏东县| 农安县| 涡阳县| 忻城县| 阿坝县| 汕头市| 蕲春县| 怀化市| 衡南县| 阿拉善右旗|