Skip to main content

RESTful api shop for django or flask or bottle

Project description

Online Documents

api-shop:一个易用的、快速的restful-api接口工具包,兼容:django / flask / bottle

一切只为少加班。

https://pcloth.github.io/api-shop/assets/img/demo.7342f254.png

核心功能:

  1. 配置化api生成。

  2. 自动校验request提交的数据,并转换成指定格式,支持:int,float,list,dict,set,tuple,bool

  3. 自动生成api文档,并提供一个web页面可供查询和mock数据演示。

  4. 兼容 django , flask , bottle (如果不指定框架,默认按这个顺序识别框架)

  5. 自动生成接口骨架文件功能(请谨慎开启)。

  6. 自定义格式转换器,data_format.datetime格式转换类;’2019-01-18 23:25:25’ to datetime

  7. 多国语言支持,也支持自定义语言包。

  8. 文档热重载。

  9. 默认值支持方法函数。

  10. 支持url中包含参数,例如 /api/user/<id>,并且在配置methods参数的时候设置它的规则。

  11. 支持多url绑定一个接口

  12. 支持指定参数的可选项,例如:[1,4,7],收到这个列表之外的参数就会触发bad_request

  13. 可以在代码中直接调用Api业务代码:get_api_result_jsonget_api_result_response

Online Documents

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

api-shop-1.9.4.tar.gz (18.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page