What differentiates a REST web service from a RPC-like one?

前端 未结 5 1544
Happy的楠姐
Happy的楠姐 2021-01-31 04:09

I have a web application that uses AJAX to grab JSON data from the server. It requires that the user first log in with their browser so that a cookie can be set. Only the

5条回答
  •  一生所求
    2021-01-31 04:25

    hate to break it to you all. RPC is making a local call, that abstracts the underlaying remote behaviour. and guess what? doing REST is the same thing. the argument about REST is about resources is incorrect, you actually directly invoke actions.

    I claim REST over HTTP with jsons are a form of RPC.

    other popular RPC may include SOAP for example

提交回复
热议问题