Search Options

Results per page
Sort
Preferred Languages
Advance

Results 401 - 410 of 924 for docs_src (0.33 sec)

  1. docs/pt/docs/advanced/response-headers.md

    Você pode declarar um parâmetro do tipo `Response` na sua *função de operação de rota* (assim como você pode fazer para cookies).
    
    Então você pode definir os cabeçalhos nesse objeto de resposta *temporário*.
    
    {* ../../docs_src/response_headers/tutorial002_py39.py hl[1, 7:8] *}
    
    Em seguida você pode retornar qualquer objeto que precisar, da maneira que faria normalmente (um `dict`, um modelo de banco de dados, etc.).
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  2. docs/pt/docs/tutorial/body-fields.md

    Primeiro, você tem que importá-lo:
    
    {* ../../docs_src/body_fields/tutorial001_an_py310.py hl[4] *}
    
    /// warning | Atenção
    
    Note que `Field` é importado diretamente do `pydantic`, não do `fastapi` como todo o resto (`Query`, `Path`, `Body`, etc).
    
    ///
    
    ## Declare atributos do modelo { #declare-model-attributes }
    
    Você pode então utilizar `Field` com atributos do modelo:
    
    {* ../../docs_src/body_fields/tutorial001_an_py310.py hl[11:14] *}
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  3. docs/de/docs/tutorial/schema-extra-example.md

    Sie können `examples` („Beispiele“) für ein Pydantic-Modell deklarieren, welche dem generierten JSON-Schema hinzugefügt werden.
    
    {* ../../docs_src/schema_extra_example/tutorial001_py310.py hl[13:24] *}
    
    Diese zusätzlichen Informationen werden unverändert zum für dieses Modell ausgegebenen **JSON-Schema** hinzugefügt und in der API-Dokumentation verwendet.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 24 10:28:19 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/security/simple-oauth2.md

    ### `OAuth2PasswordRequestForm` { #oauth2passwordrequestform }
    
    Сначала импортируйте `OAuth2PasswordRequestForm` и затем используйте её как зависимость с `Depends` в операции пути для `/token`:
    
    {* ../../docs_src/security/tutorial003_an_py310.py hl[4,78] *}
    
    `OAuth2PasswordRequestForm` — это зависимость-класс, которая объявляет тело формы со следующими полями:
    
    * `username`.
    * `password`.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Sep 30 11:24:39 UTC 2025
    - 16.3K bytes
    - Viewed (0)
  5. docs/zh/docs/tutorial/header-param-models.md

    这将允许您在**多个地方**能够**重用模型**,并且可以一次性声明所有参数的验证和元数据。😎
    
    /// note
    
    自 FastAPI 版本 `0.115.0` 起支持此功能。🤓
    
    ///
    
    ## 使用 Pydantic 模型的 Header 参数
    
    在 **Pydantic 模型**中声明所需的 **header 参数**,然后将参数声明为 `Header` :
    
    {* ../../docs_src/header_param_models/tutorial001_an_py310.py hl[9:14,18] *}
    
    **FastAPI** 将从请求中接收到的 **headers** 中**提取**出**每个字段**的数据,并提供您定义的 Pydantic 模型。
    
    ## 查看文档
    
    您可以在文档 UI 的 `/docs` 中查看所需的 headers:
    
    <div class="screenshot">
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Dec 15 16:44:11 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  6. docs/de/docs/tutorial/request-forms.md

    ///
    
    ## `Form` importieren { #import-form }
    
    Importieren Sie `Form` von `fastapi`:
    
    {* ../../docs_src/request_forms/tutorial001_an_py39.py hl[3] *}
    
    ## `Form`-Parameter definieren { #define-form-parameters }
    
    Erstellen Sie Formular-Parameter, so wie Sie es auch mit `Body` und `Query` machen würden:
    
    {* ../../docs_src/request_forms/tutorial001_an_py39.py hl[9] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Sep 20 15:10:09 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  7. docs/uk/docs/tutorial/middleware.md

        * Ця функція передає `запит` відповідній *операції шляху*.
        * Потім вона повертає `відповідь`, згенеровану цією *операцією шляху*.
    
    * Ви можете ще змінити `відповідь` перед тим, як повернути її.
    
    
    {* ../../docs_src/middleware/tutorial001.py hl[8:9,11,14] *}
    
    /// tip | Порада
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  8. docs/pt/docs/tutorial/extra-data-types.md

    Aqui está um exemplo de *operação de rota* com parâmetros utilizando-se de alguns dos tipos acima.
    
    {* ../../docs_src/extra_data_types/tutorial001_an_py310.py hl[1,3,12:16] *}
    
    Note que os parâmetros dentro da função tem seu tipo de dados natural, e você pode, por exemplo, realizar manipulações normais de data, como:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 3K bytes
    - Viewed (0)
  9. docs/de/docs/how-to/custom-docs-ui-assets.md

    Um diese zu deaktivieren, setzen Sie deren URLs beim Erstellen Ihrer `FastAPI`-App auf `None`:
    
    {* ../../docs_src/custom_docs_ui/tutorial001_py39.py hl[8] *}
    
    ### Die benutzerdefinierten Dokumentationen hinzufügen { #include-the-custom-docs }
    
    Jetzt können Sie die *Pfadoperationen* für die benutzerdefinierten Dokumentationen erstellen.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  10. docs/en/docs/how-to/custom-docs-ui-assets.md

    The first step is to disable the automatic docs, as by default, those use the default CDN.
    
    To disable them, set their URLs to `None` when creating your `FastAPI` app:
    
    {* ../../docs_src/custom_docs_ui/tutorial001_py39.py hl[8] *}
    
    ### Include the custom docs { #include-the-custom-docs }
    
    Now you can create the *path operations* for the custom docs.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 7.8K bytes
    - Viewed (0)
Back to top