BaaS模式的开发思路
如今,有一种BaaS服务(后端即服务)的模式,即无需编程即可生成后端应用及相应API。
Drupal这套CMS下,有一款插件Services,可以在线直接自定义各种格式如json、xmlrpc、webservice等的API接口,并且具有版本化管理的功能,牛之极。
https://www.drupal.org/project/services
- Service API allow modules to create other services, including pluggable access control
- Server API allow modules to create other servers, such as SOAP
- Aliasing methods
- Integration with core Drupal functionality like files, nodes, taxonomy, users, files and more.
- Response format API allows you to define response Formats for CONTENT-TYPE ie. application/json or application/xml. (also calls such as ENDPOINT/node/1.json work)
另外,@Easy 方糖气球有一个开源项目 LazyRest http://ftqq.com/2016/04/lan-ren-he-dai-ma-sheng-cheng-qi/,做了几版,也是懒人的最佳选择,任何一个项目,使用他这个库,可以直接快速可视化实现Rest接口,有兴趣的可以试试。
本文来源:http://www.cnblogs.com/x3d/,转载请注明。
【推荐】还在用 ECharts 开发大屏?试试这款永久免费的开源 BI 工具!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步