差異處

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

連向這個比對檢視

Both sides previous revision 前次修改
下次修改
前次修改
java:web:restapi [2019/01/20 15:52]
tony
java:web:restapi [2023/06/25 09:48] (目前版本)
行 1: 行 1:
 {{tag>​rest}} {{tag>​rest}}
-====== ​Rest API ======+====== ​REST API ======
 ===== Introduction ===== ===== Introduction =====
 原本就有接觸過Facebook Graph API,因工作關係接觸到Rest,所以學習起來比較不陌生。因為網路資料相當豐富,我只記錄些自己容易忘記的部分。 原本就有接觸過Facebook Graph API,因工作關係接觸到Rest,所以學習起來比較不陌生。因為網路資料相當豐富,我只記錄些自己容易忘記的部分。
行 7: 行 7:
   * [[java:​web:​restapi:​rpc-style_vs_rest|RPC-Style API VS REST API]]    * [[java:​web:​restapi:​rpc-style_vs_rest|RPC-Style API VS REST API]] 
   * [[java:​web:​restapi:​http_method_cant_make_sense|Http Method無法表達出某些動作]] ​   * [[java:​web:​restapi:​http_method_cant_make_sense|Http Method無法表達出某些動作]] ​
-  * [[java:​web:​restapi:​response_code|Response Code]] ​todo..+  * [[java:​web:​restapi:​response_code|Response Code]] 
 +  * [[java:​web:​restapi:​url_rules|URL related rules]]
 ===== Firewall issue of HTTP Delete & Put operations ===== ===== Firewall issue of HTTP Delete & Put operations =====
 HTTP Delete與Put操作可能會被防火牆阻擋,經過Study有三種替代方案。 HTTP Delete與Put操作可能會被防火牆阻擋,經過Study有三種替代方案。
行 29: 行 30:
   * [[http://​stackoverflow.com/​questions/​2427518/​which-http-redirect-status-code-is-best-for-this-rest-api-scenario|Which HTTP redirect status code is best for this REST API scenario?]]   * [[http://​stackoverflow.com/​questions/​2427518/​which-http-redirect-status-code-is-best-for-this-rest-api-scenario|Which HTTP redirect status code is best for this REST API scenario?]]
   * [[http://​www.slideshare.net/​ewolff/​rest-vs-messaging-for-microservices|REST VS JMS of microservices]]   * [[http://​www.slideshare.net/​ewolff/​rest-vs-messaging-for-microservices|REST VS JMS of microservices]]
-  * [[http://​tatiyants.com/​using-oauth-to-protect-internal-rest-api/​|using-oauth-to-protect-internal-rest-api]] studying.. 
   * [[https://​community.alfresco.com/​docs/​DOC-5717-32-rest-api-group-service#​w_rootgroupscollection|Alfresco - Group設計]]   * [[https://​community.alfresco.com/​docs/​DOC-5717-32-rest-api-group-service#​w_rootgroupscollection|Alfresco - Group設計]]
   * [[https://​stackoverflow.com/​questions/​207477/​restful-url-design-for-search|Design for search]]   * [[https://​stackoverflow.com/​questions/​207477/​restful-url-design-for-search|Design for search]]
行 46: 行 46:
   * [[https://​blog.akana.com/​hypermedia-apis/​|The Movement Towards Hypermedia APIs – Is it Happening?​]]   * [[https://​blog.akana.com/​hypermedia-apis/​|The Movement Towards Hypermedia APIs – Is it Happening?​]]
   * [[https://​www.vegaitsourcing.rs/​media-center/​blog/​2015/​04/​hypermedia-driven-restful-web-apis/​|Hypermedia-driven RESTful web APIs]]   * [[https://​www.vegaitsourcing.rs/​media-center/​blog/​2015/​04/​hypermedia-driven-restful-web-apis/​|Hypermedia-driven RESTful web APIs]]
 +  * [[https://​stackoverflow.com/​questions/​35700344/​rest-api-and-ddd?​fbclid=IwAR2J_PFxqgMfDEBh3rFbSY-2cOvhoQhpw7MTynLoa2fZqHeuy-4lcK6PnkE|Rest API and DDD]]
 +  * [[https://​www.vinaysahni.com/​best-practices-for-a-pragmatic-restful-api|Best Practices for Designing a Pragmatic RESTful API]]
 ==== Basic ==== ==== Basic ====
   * [[https://​ihower.tw/​blog/​archives/​6483|HTTP Verbs: 談 POST, PUT 和 PATCH 的應用]]   * [[https://​ihower.tw/​blog/​archives/​6483|HTTP Verbs: 談 POST, PUT 和 PATCH 的應用]]
行 51: 行 53:
   * [[https://​www.infoworld.com/​article/​3206264/​application-development/​how-to-perform-partial-updates-to-rest-web-api-resources.html|How to do partial updates to REST API resources?​]]   * [[https://​www.infoworld.com/​article/​3206264/​application-development/​how-to-perform-partial-updates-to-rest-web-api-resources.html|How to do partial updates to REST API resources?​]]
  
 +==== Security ====
 +  * [[http://​tatiyants.com/​using-oauth-to-protect-internal-rest-api/​|using-oauth-to-protect-internal-rest-api]] studying..
 +  * [[https://​nordicapis.com/​3-common-methods-api-authentication-explained/​|3 Common Methods of API Authentication Explained]]
 +  * [[https://​www.itread01.com/​p/​12089.html|OpenID Connect 協議入門指南]]
 +  * [[https://​sysmgt.lenovofiles.com/​help/​index.jsp?​topic=%2Fcom.lenovo.lxca_restapis.doc%2Frest_apis_reference.html|修改密碼的REST API]]
 ==== URI ==== ==== URI ====
   * [[http://​blog.restcase.com/​7-rules-for-rest-api-uri-design/​|7 Rules for REST API URI Design]]   * [[http://​blog.restcase.com/​7-rules-for-rest-api-uri-design/​|7 Rules for REST API URI Design]]