雲端點是REST還是RPC風格的技術?

[英]Cloud Endpoints is REST or RPC style technology?


In documentation for cloud endpoints i read that: "One of the benefits of being able to easily build your own API is that you can design it any way you want. Cloud Endpoints gives you this flexibility—it allows REST- or RPC-style APIs, or a combination of both.". But of what style (RPC or REST) genereted endpoints methods are ? Seems like RPC (cause i call function on a client side and then it runs on a server side) but they are CRUD methods.

在雲端點文檔中,我讀到:“能夠輕松構建自己的API的一個好處是,您可以按照自己的方式進行設計。雲端點為您提供了這種靈活性 - 它允許REST或RPC風格的API ,或兩者兼而有之。“但是什么樣的(RPC或REST)生成的端點方法是什么?看起來像RPC(因為我在客戶端調用函數然后它在服務器端運行)但它們是CRUD方法。

1 个解决方案

#1


1  

REST or RPC style refers to the protocol. Both of them call procedures to be executed on the server. However, REST style often focuses more on CRUD-style and operating over resources, where RPC style is more procedural. Cloud Endpoints lets you define your API once and exposes interfaces in both RESTful and RPC style.

REST或RPC樣式是指協議。它們都調用要在服務器上執行的過程。但是,REST樣式通常更側重於CRUD樣式和資源操作,其中RPC樣式更具程序性。 Cloud Endpoints允許您定義API一次,並以RESTful和RPC樣式公開接口。


注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:https://www.itdaan.com/blog/2015/06/06/72ff7e14a9d82ede69a4b6cbe29df3b.html



 
粤ICP备14056181号  © 2014-2021 ITdaan.com