Monday, September 18, 2023

[微服務] RESTful API Design

Tool: https://reqbin.com/post-online 

什麼是 RESTful API?

是一種風格,他描述了如何實現 Web API 的架構,基於 HTTP 協定,用來建立分散式系統,並支援多種程式語言,他的優點包含:

可擴展性:由於系統無需保留 Client 狀態,因此可以提高擴展效能。

靈活性:由於 Client 與 Server 完全分離,因此分層的應用程式功能可以提供靈活性。

獨立性:可以使用各種程式語言來編寫程式,不影響 API 的設計。

可以快取 Cacheable

初探 HTTP 1.1 Cache 機制

淺談 REST 軟體架構風格 (Part.I) - 從了解 REST 到設計 RESTful! 

淺談 REST 軟體架構風格 (Part.II) - 如何設計 RESTful Web Service? 

什麼是 GraphQL

tokens-vs-sessions

HTTP Authentication




Reference:

https://ithelp.ithome.com.tw/users/20130079/ironman/4342

https://javascript.info/fetch-crossorigin

https://developer.mozilla.org/zh-TW/docs/Web/HTTP/CORS

https://www.shubo.io/what-is-cors/

https://pjchender.dev/webdev/web-cors/

https://miahsuwork.medium.com/%E7%AC%AC%E5%85%AD%E9%80%B1-api-%E5%9F%BA%E7%A4%8E-json-restful-curl-%E6%8C%87%E4%BB%A4-28670813764e

https://blog.huli.tw/2021/02/19/cors-guide-1/

https://ithelp.ithome.com.tw/articles/10267360


No comments:

Post a Comment

n8n index

 【n8n免費本地端部署】Windows版|程式安裝x指令大補帖  【一鍵安裝 n8n】圖文教學,獲得無限額度自動化工具&限時免費升級企業版功能