Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for or (0.16 sec)

  1. docs/zh-hant/docs/index.md

    有關更多功能的完整範例,可以參考 <a href="https://fastapi.tiangolo.com/tutorial/">教學 - 使用者指南</a>。
    
    **劇透警告**: 教學 - 使用者指南內容有:
    
    - 對來自不同地方的**參數**進行宣告:像是 **headers**, **cookies**, **form 表單**以及**上傳檔案**。
    - 如何設定 **驗證限制** 像是 `maximum_length` or `regex`。
    - 簡單且非常容易使用的 **<abbr title="也被稱為元件、資源、提供者、服務或是注入">依賴注入</abbr>** 系統。
    - 安全性和身份驗證,包含提供支援 **OAuth2**、**JWT tokens** 和 **HTTP Basic** 驗證。
    - 更進階 (但同樣簡單) 的宣告 **多層次的巢狀 JSON 格式** (感謝 Pydantic)。
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 18.8K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/dependencies/index.md

    ## To `async` or not to `async`
    
    As dependencies will also be called by **FastAPI** (the same as your *path operation functions*), the same rules apply while defining your functions.
    
    You can use `async def` or normal `def`.
    
    And you can declare dependencies with `async def` inside of normal `def` *path operation functions*, or `def` dependencies inside of `async def` *path operation functions*, etc.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  3. docs/en/docs/index.md

    You do that with standard modern Python types.
    
    You don't have to learn a new syntax, the methods or classes of a specific library, etc.
    
    Just standard **Python**.
    
    For example, for an `int`:
    
    ```Python
    item_id: int
    ```
    
    or for a more complex `Item` model:
    
    ```Python
    item: Item
    ```
    
    ...and with that single declaration you get:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 19.8K bytes
    - Viewed (0)
Back to top