dou2347 2015-09-20 19:35 采纳率: 0%
浏览 52
已采纳

我可以在这种情况下实现Rest Api吗? [关闭]

The client is requesting the implementation of an Android App using Rest Api. I implemented the app using Cordova and it has a connection to the company's server using JSON. The server contains various PHP files which will be executed to retrieve data from database and send it to app, sending email to the user or doing other stuff. I don't use web service because there is no web app. The server only store PHP files and the database, which are accesible from Android app. In this case, is it possible to use Rest? and if the answer is yes. Is it recommendable?

Thanks in advance

  • 写回答

1条回答 默认 最新

  • douou8954 2015-09-21 02:51
    关注

    Yes it is possible to use REST. Yes it is recommendable.

    BTW, I would say that you do have a "web app" because you do have PHP running via a web server (accepting and responding to HTTP requests). Just because the PHP is responding with data in JSON format (very lean) and not data wrapped in HTML (fairly verbose) doesn't mean it's not a "web app", at least not by my vocabulary. Data in JSON is very fashionable (and recommendable) these days, not only for mobile apps but also for client/browser-side apps written in AngularJS, for example.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 用windows做服务的同志有吗
  • ¥60 求一个简单的网页(标签-安全|关键词-上传)
  • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图