Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 365 for NOTE (0.22 sec)

  1. docs/pt/docs/tutorial/query-params-str-validations.md

    ```
    
    O parâmetro de consulta `q` é do tipo `Union[str, None]`, o que significa que é do tipo `str` mas que também pode ser `None`, e de fato, o valor padrão é `None`, então o FastAPI saberá que não é obrigatório.
    
    !!! note "Observação"
        O FastAPI saberá que o valor de `q` não é obrigatório por causa do valor padrão `= None`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat May 14 11:59:59 GMT 2022
    - 9.3K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/using-request-directly.md

    {!../../../docs_src/using_request_directly/tutorial001.py!}
    ```
    
    By declaring a *path operation function* parameter with the type being the `Request` **FastAPI** will know to pass the `Request` in that parameter.
    
    !!! tip
        Note that in this case, we are declaring a path parameter beside the request parameter.
    
        So, the path parameter will be extracted, validated, converted to the specified type and annotated with OpenAPI.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Aug 29 14:02:58 GMT 2020
    - 2.3K bytes
    - Viewed (0)
  3. docs/em/docs/alternatives.md

    ✳ 🎂 🛠️ ✍ 🗜 🧰 🏗 🕸 🔗 ⚙️ ✳ 🔘, 📉 🚮 🛠️ 🛠️.
    
    ⚫️ ⚙️ 📚 🏢 ✅ 🦎, 🟥 👒 & 🎟.
    
    ⚫️ 🕐 🥇 🖼 **🏧 🛠️ 🧾**, & 👉 🎯 🕐 🥇 💭 👈 😮 "🔎" **FastAPI**.
    
    !!! note
        ✳ 🎂 🛠️ ✍ ✡ 🇺🇸🏛. 🎏 👼 💃 & Uvicorn, 🔛 ❔ **FastAPI** ⚓️.
    
    
    !!! check "😮 **FastAPI** "
        ✔️ 🏧 🛠️ 🧾 🕸 👩‍💻 🔢.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  4. docs/em/docs/advanced/nosql-databases.md

    👉 🔜 ✔️ 💽 👈 🤙 🏪 💽.
    
    👥 🚫 ✍ ⚫️ 🏿 Pydantic `BaseModel` ✋️ 🏿 👆 👍 `User`, ↩️ ⚫️ 🔜 ✔️ 🌐 🔢 `User` ➕ 👩‍❤‍👨 🌅:
    
    ```Python hl_lines="31-33"
    {!../../../docs_src/nosql_databases/tutorial001.py!}
    ```
    
    !!! note
        👀 👈 👥 ✔️ `hashed_password` & `type` 🏑 👈 🔜 🏪 💽.
    
        ✋️ ⚫️ 🚫 🍕 🏢 `User` 🏷 (1️⃣ 👥 🔜 📨 *➡ 🛠️*).
    
    ## 🤚 👩‍💻
    
    🔜 ✍ 🔢 👈 🔜:
    
    * ✊ 🆔.
    * 🏗 📄 🆔 ⚪️➡️ ⚫️.
    * 🤚 📄 ⏮️ 👈 🆔.
    Plain Text
    - Registered: Sun Mar 31 07:19:09 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  5. docs/em/docs/advanced/path-operation-advanced-configuration.md

    📤 🎂 📃 📥 🧾 🔃 ⚫️, 👆 💪 ✍ ⚫️ [🌖 📨 🗄](additional-responses.md){.internal-link target=_blank}.
    
    ## 🗄 ➕
    
    🕐❔ 👆 📣 *➡ 🛠️* 👆 🈸, **FastAPI** 🔁 🏗 🔗 🗃 🔃 👈 *➡ 🛠️* 🔌 🗄 🔗.
    
    !!! note "📡 ℹ"
        🗄 🔧 ⚫️ 🤙 <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#operation-object" class="external-link" target="_blank">🛠️ 🎚</a>.
    
    ⚫️ ✔️ 🌐 ℹ 🔃 *➡ 🛠️* &amp; ⚙️ 🏗 🏧 🧾.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  6. docs/zh/docs/tutorial/request-files.md

    ```Python
    contents = await myfile.read()
    ```
    
    在普通 `def` *路径操作函数*  内,则可以直接访问 `UploadFile.file`,例如:
    
    ```Python
    contents = myfile.file.read()
    ```
    
    !!! note "`async` 技术细节"
    
        使用 `async` 方法时,**FastAPI** 在线程池中执行文件方法,并 `await` 操作完成。
    
    !!! note "Starlette 技术细节"
    
        **FastAPI** 的 `UploadFile` 直接继承自 **Starlette** 的 `UploadFile`,但添加了一些必要功能,使之与 **Pydantic** 及 FastAPI 的其它部件兼容。
    
    ## 什么是 「表单数据」
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  7. docs/pt/docs/advanced/templates.md

    {!../../../docs_src/templates/tutorial001.py!}
    ```
    
    !!! note
        Antes do FastAPI 0.108.0, Starlette 0.29.0, `name` era o primeiro parâmetro.
    
        Além disso, em versões anteriores, o objeto `request` era passado como parte dos pares chave-valor no "context" dict para o Jinja2.
    
    
    !!! tip "Dica"
        Ao declarar `response_class=HTMLResponse`, a documentação entenderá que a resposta será HTML.
    
    
    !!! note "Detalhes Técnicos"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Mar 28 04:05:17 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  8. docs/ja/docs/tutorial/cors.md

    <abbr title="Cross-Origin Resource Sharing (オリジン間リソース共有)">CORS</abbr>についてより詳しい情報は、<a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS" class="external-link" target="_blank">Mozilla CORS documentation</a> を参照して下さい。
    
    !!! note "技術詳細"
        `from starlette.middleware.cors import CORSMiddleware` も使用できます。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Oct 18 06:02:19 GMT 2020
    - 6.3K bytes
    - Viewed (0)
  9. docs/zh/docs/tutorial/dependencies/index.md

    即,既可以使用异步的 `async def`,也可以使用普通的 `def` 定义依赖项。
    
    在普通的 `def` *路径操作函数*中,可以声明异步的 `async def` 依赖项;也可以在异步的 `async def` *路径操作函数*中声明普通的 `def` 依赖项。
    
    上述这些操作都是可行的,**FastAPI** 知道该怎么处理。
    
    !!! note "笔记"
    
        如里不了解异步,请参阅[异步:*“着急了?”*](../../async.md){.internal-link target=_blank} 一章中 `async` 和 `await` 的内容。
    
    ## 与 OpenAPI 集成
    
    依赖项及子依赖项的所有请求声明、验证和需求都可以集成至同一个 OpenAPI 概图。
    
    所以,交互文档里也会显示依赖项的所有信息:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Jun 24 14:47:15 GMT 2023
    - 7K bytes
    - Viewed (0)
  10. docs/ko/docs/tutorial/middleware.md

    * 미들웨어는 응용 프로그램으로 오는 **요청**를 가져옵니다.
    * **요청** 또는 다른 필요한 코드를 실행 시킬 수 있습니다.
    * **요청**을 응용 프로그램의 *경로 작동*으로 전달하여 처리합니다.
    * 애플리케이션의 *경로 작업*에서 생성한 **응답**를 받습니다.
    * **응답** 또는 다른 필요한 코드를 실행시키는 동작을 할 수 있습니다.
    * **응답**를 반환합니다.
    
    !!! note "기술 세부사항"
        만약 `yield`를 사용한 의존성을 가지고 있다면, 미들웨어가 실행되고 난 후에 exit이 실행됩니다.
    
        만약 (나중에 문서에서 다룰) 백그라운드 작업이 있다면, 모든 미들웨어가 실행되고 *난 후에* 실행됩니다.
    
    ## 미들웨어 만들기
    
    미들웨어를 작성하기 위해서 함수 상단에 `@app.middleware("http")` 데코레이터를 사용할 수 있습니다.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Jan 31 14:35:27 GMT 2024
    - 3.4K bytes
    - Viewed (0)
Back to top