差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

Both sides previous revision 前次修改
下次修改
前次修改
java:web:restapi:http_method_cant_make_sense:other_case_studies [2017/09/24 23:22]
tony [補充: Case Studies]
java:web:restapi:http_method_cant_make_sense:other_case_studies [2023/06/25 09:48] (目前版本)
行 1: 行 1:
-===== Action Modeling: Case Studies ===== +{{tag>​rest}} 
-==== Twitter REST API ====+====== Action Modeling: Case Studies ​====== 
 +===== Twitter REST API =====
 [[https://​dev.twitter.com/​rest/​reference|link]]:​ [[https://​dev.twitter.com/​rest/​reference|link]]:​
 <​code>​ <​code>​
行 10: 行 11:
 不曉得是不是因為實作的關係,它的新增或移除都表達在URI上;另外它並沒有提供HATEOAS的功能。 不曉得是不是因為實作的關係,它的新增或移除都表達在URI上;另外它並沒有提供HATEOAS的功能。
  
-==== Youtube Data API v3 ====+===== Youtube Data API v3 =====
 幾乎都使用controller resource來表達特別的流程,[[https://​developers.google.com/​youtube/​v3/​docs/​|link]]:​ 幾乎都使用controller resource來表達特別的流程,[[https://​developers.google.com/​youtube/​v3/​docs/​|link]]:​
 <​code>​ <​code>​
行 31: 行 32:
 </​code>​ </​code>​
 insert的部分不曉得是考量什麼特別使用了controller resource,因為POST應該就能表達新增了;而getRating的部分,應可以是store resource,名稱為rating。 insert的部分不曉得是考量什麼特別使用了controller resource,因為POST應該就能表達新增了;而getRating的部分,應可以是store resource,名稱為rating。
-==== Google Drive APIs v3 ====+===== Google Drive APIs v3 =====
 皆使用controller resource的形式,[[https://​developers.google.com/​drive/​v3/​reference/​|link]]:​ 皆使用controller resource的形式,[[https://​developers.google.com/​drive/​v3/​reference/​|link]]:​
 <​code>​ <​code>​
行 48: 行 49:
 GET  /​files/​fileId/​content GET  /​files/​fileId/​content
 </​code>​ </​code>​
-==== Google Fusion Tables API v2 ====+===== Google Fusion Tables API v2 =====
 皆使用controller resource的形式,[[https://​developers.google.com/​fusiontables/​docs/​v2/​reference/​|link]]:​ 皆使用controller resource的形式,[[https://​developers.google.com/​fusiontables/​docs/​v2/​reference/​|link]]:​
 <​code>​ <​code>​
行 58: 行 59:
 POST  /​tables/​tableId/​replace POST  /​tables/​tableId/​replace
 </​code>​ </​code>​
-==== Google Tag Manager API v1 ====+===== Google Tag Manager API v1 =====
 皆使用controller resource的形式,[[https://​developers.google.com/​tag-manager/​api/​v1/​reference/​|link]]:​ 皆使用controller resource的形式,[[https://​developers.google.com/​tag-manager/​api/​v1/​reference/​|link]]:​
 <​code>​ <​code>​
行 68: 行 69:
 POST  /​accounts/​accountId/​containers/​containerId/​versions/​containerVersionId/​undelete POST  /​accounts/​accountId/​containers/​containerId/​versions/​containerVersionId/​undelete
 </​code>​ </​code>​
-==== GitHub APIs v3 ====+===== GitHub APIs v3 =====
 GitHub針對不同動作使用了不同方法,首先是store resource,[[https://​developer.github.com/​v3/​issues/#​lock-an-issue|link]]:​ GitHub針對不同動作使用了不同方法,首先是store resource,[[https://​developer.github.com/​v3/​issues/#​lock-an-issue|link]]:​
 <​code>​ <​code>​
行 96: 行 97:
 POST /​repos/:​owner/:​repo/​merges POST /​repos/:​owner/:​repo/​merges
 </​code>​ </​code>​
- +===== Box API =====
-==== Box API ====+
 這裡的用法比較奇怪,因為lock也不是file的一個屬性,[[https://​developer.box.com/​reference#​lock-and-unlock|link]]:​ 這裡的用法比較奇怪,因為lock也不是file的一個屬性,[[https://​developer.box.com/​reference#​lock-and-unlock|link]]:​
 <​code>​ <​code>​
行 125: 行 125:
 DELETE /​files/​file_id/​lock DELETE /​files/​file_id/​lock
 </​code>​ </​code>​
 +
 +=====    =====
 +----
 +\\
 +~~DISQUS~~