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接口,有兴趣的可以试试。

posted @   x3d  阅读(450)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示