- FastAPI 教程
- FastAPI - 首頁
- FastAPI - 簡介
- FastAPI - Hello World
- FastAPI - OpenAPI
- FastAPI - Uvicorn
- FastAPI - 型別提示
- FastAPI - IDE 支援
- FastAPI - REST 架構
- FastAPI - 路徑引數
- FastAPI - 查詢引數
- FastAPI - 引數驗證
- FastAPI - Pydantic
- FastAPI - 請求體
- FastAPI - 模板
- FastAPI - 靜態檔案
- FastAPI - HTML 表單模板
- FastAPI - 訪問表單資料
- FastAPI - 上傳檔案
- FastAPI - Cookie 引數
- FastAPI - 頭部引數
- FastAPI - 響應模型
- FastAPI - 巢狀模型
- FastAPI - 依賴項
- FastAPI - CORS
- FastAPI - CRUD 操作
- FastAPI - SQL 資料庫
- FastAPI - 使用 MongoDB
- FastAPI - 使用 GraphQL
- FastAPI - WebSockets
- FastAPI - FastAPI 事件處理器
- FastAPI - 掛載子應用
- FastAPI - 中介軟體
- FastAPI - 掛載 Flask 應用
- FastAPI - 部署
- FastAPI 有用資源
- FastAPI - 快速指南
- FastAPI - 有用資源
- FastAPI - 討論
FastAPI - REST 架構
表述性狀態轉移 (REST) 是一種軟體架構風格。REST 定義了 Web 應用的架構應該如何執行。它是一種基於資源的架構,其中 REST 伺服器託管的所有內容(檔案、影像或資料庫表中的一行)都是資源,具有多種表示形式。
REST 建議某些架構約束。
統一介面
無狀態性
客戶端-伺服器
可快取性
分層系統
按需程式碼
REST 約束具有以下優點:
可擴充套件性
簡單性
可修改性
可靠性
可移植性
可見性
REST 使用 HTTP 動詞或方法對資源進行操作。POST、GET、PUT 和 DELETE 方法分別執行 CREATE、READ、UPDATE 和 DELETE 操作。
廣告