开发一套后端(java)接口,也可以共用pc端和app端、微信端、webapp端吗??前后端分离
PHP中文网
PHP中文网 2017-04-18 10:30:50
0
3
978

开发一套后端(java)接口,也可以共用pc端和app端、微信端、webapp端吗??前后端分离

PHP中文网
PHP中文网

认证0级讲师

reply all(3)
大家讲道理

Of course, the API can use the popular restful style

小葫芦
  • Of course. The questioner mentioned financial platforms in his comments, so more security issues should be considered. Since RESTful is stateless, a middle layer may need to be added based on this.

  • You can refer to: Thoughts and Practice of Front-end and Back-end Separation (1) and other series of articles

  • As for saying restfulstyle is popular... we can give an example: this year, we will say that javascript is more popular, let's learn javascript. But you must know that the popularity of any language or framework or tool is born to solve problems in a certain scenario. The previous article also mentioned Why the front and back ends should be separated, I suggest you take a look.

PHPzhong

Yes, because they are all supported by the network, but they are expressed in different ways. You can access it directly from the browser during testing

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template