Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 877 for tutorial002 (0.09 sec)

  1. tests/test_tutorial/test_events/test_tutorial002.py

    import pytest
    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    
    
    @pytest.fixture(name="app", scope="module")
    def get_app():
        with pytest.warns(DeprecationWarning):
            from docs_src.events.tutorial002 import app
        yield app
    
    
    def test_events(app: FastAPI):
        with TestClient(app) as client:
            response = client.get("/items/")
            assert response.status_code == 200, response.text
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 18 12:36:40 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  2. docs/es/docs/python-types.md

    ```Python hl_lines="1"
    {!../../docs_src/python_types/tutorial006.py!}
    ```
    
    Declara la variable con la misma sintaxis de los dos puntos (`:`).
    
    Pon `List` como el tipo.
    
    Como la lista es un tipo que permite tener un "sub-tipo" pones el sub-tipo en corchetes `[]`:
    
    ```Python hl_lines="4"
    {!../../docs_src/python_types/tutorial006.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  3. docs/em/docs/advanced/response-headers.md

    # 📨 🎚
    
    ## ⚙️ `Response` 🔢
    
    👆 💪 📣 🔢 🆎 `Response` 👆 *➡ 🛠️ 🔢* (👆 💪 🍪).
    
    & ⤴️ 👆 💪 ⚒ 🎚 👈 *🔀* 📨 🎚.
    
    ```Python hl_lines="1  7-8"
    {!../../docs_src/response_headers/tutorial002.py!}
    ```
    
    & ⤴️ 👆 💪 📨 🙆 🎚 👆 💪, 👆 🛎 🔜 ( `dict`, 💽 🏷, ♒️).
    
    & 🚥 👆 📣 `response_model`, ⚫️ 🔜 ⚙️ ⛽ & 🗜 🎚 👆 📨.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_testing/test_tutorial002.py

    from docs_src.app_testing.tutorial002 import test_read_main, test_websocket
    
    
    def test_main():
        test_read_main()
    
    
    def test_ws():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 10 09:08:19 UTC 2020
    - 154 bytes
    - Viewed (0)
  5. docs/ru/docs/tutorial/metadata.md

    Но вы можете изменить это с помощью параметра `openapi_url`.
    
    К примеру, чтобы задать её отображение по адресу `/api/v1/openapi.json`:
    
    ```Python hl_lines="3"
    {!../../docs_src/metadata/tutorial002.py!}
    ```
    
    Если вы хотите отключить схему OpenAPI полностью, вы можете задать `openapi_url=None`, это также отключит пользовательские интерфейсы документации, которые его использует.
    
    ## URL-адреса документации
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  6. docs/em/docs/tutorial/query-params.md

    * `skip=20`: ↩️ 👆 ⚒ ⚫️ 📛
    * `limit=10`: ↩️ 👈 🔢 💲
    
    ## 📦 🔢
    
    🎏 🌌, 👆 💪 📣 📦 🔢 🔢, ⚒ 👫 🔢 `None`:
    
    //// tab | 🐍 3️⃣.6️⃣ & 🔛
    
    ```Python hl_lines="9"
    {!> ../../docs_src/query_params/tutorial002.py!}
    ```
    
    ////
    
    //// tab | 🐍 3️⃣.1️⃣0️⃣ & 🔛
    
    ```Python hl_lines="7"
    {!> ../../docs_src/query_params/tutorial002_py310.py!}
    ```
    
    ////
    
    👉 💼, 🔢 🔢 `q` 🔜 📦, & 🔜 `None` 🔢.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  7. docs/tr/docs/tutorial/query-params.md

    //// tab | Python 3.10+
    
    ```Python hl_lines="7"
    {!> ../../docs_src/query_params/tutorial002_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="9"
    {!> ../../docs_src/query_params/tutorial002.py!}
    ```
    
    ////
    
    Bu durumda, `q` fonksiyon parametresi isteğe bağlı olacak ve varsayılan değer olarak `None` alacaktır.
    
    /// check | "Ek bilgi"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  8. docs/pt/docs/advanced/response-cookies.md

    Você pode declarar um parâmetro do tipo `Response` na sua *função de operação de rota*.
    
    E então você pode definir cookies nesse objeto de resposta *temporário*.
    
    ```Python hl_lines="1  8-9"
    {!../../docs_src/response_cookies/tutorial002.py!}
    ```
    
    Em seguida, você pode retornar qualquer objeto que precise, como normalmente faria (um `dict`, um modelo de banco de dados, etc).
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Oct 14 09:15:24 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  9. docs/pt/docs/advanced/response-headers.md

    Então você pode definir os cabeçalhos nesse objeto de resposta *temporário*.
    
    ```Python hl_lines="1  7-8"
    {!../../docs_src/response_headers/tutorial002.py!}
    ```
    
    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 Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 16 07:44:45 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  10. docs/de/docs/advanced/response-cookies.md

    Und dann können Sie Cookies in diesem *vorübergehenden* Response-Objekt setzen.
    
    ```Python hl_lines="1  8-9"
    {!../../docs_src/response_cookies/tutorial002.py!}
    ```
    
    Anschließend können Sie wie gewohnt jedes gewünschte Objekt zurückgeben (ein `dict`, ein Datenbankmodell, usw.).
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top