Search Options

Results per page
Sort
Preferred Languages
Advance

Results 551 - 560 of 877 for tutorial002 (0.17 sec)

  1. docs/em/docs/how-to/extending-openapi.md

    {!../../docs_src/extending_openapi/tutorial001.py!}
    ```
    
    ### ๐Ÿ— ๐Ÿ—„ ๐Ÿ”—
    
    โคด๏ธ, โš™๏ธ ๐ŸŽ ๐Ÿš™ ๐Ÿ”ข ๐Ÿ— ๐Ÿ—„ ๐Ÿ”—, ๐Ÿ”˜ `custom_openapi()` ๐Ÿ”ข:
    
    ```Python hl_lines="2  15-20"
    {!../../docs_src/extending_openapi/tutorial001.py!}
    ```
    
    ### ๐Ÿ”€ ๐Ÿ—„ ๐Ÿ”—
    
    ๐Ÿ”œ ๐Ÿ‘† ๐Ÿ’ช ๐Ÿšฎ ๐Ÿ“„ โ†”, โŽ ๐Ÿ›ƒ `x-logo` `info` "๐ŸŽš" ๐Ÿ—„ ๐Ÿ”—:
    
    ```Python hl_lines="21-23"
    {!../../docs_src/extending_openapi/tutorial001.py!}
    ```
    
    ### ๐Ÿ’พ ๐Ÿ—„ ๐Ÿ”—
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. docs/de/docs/advanced/sub-applications.md

    ```Python hl_lines="3  6-8"
    {!../../docs_src/sub_applications/tutorial001.py!}
    ```
    
    ### Unteranwendung
    
    Erstellen Sie dann Ihre Unteranwendung und deren *Pfadoperationen*.
    
    Diese Unteranwendung ist nur eine weitere Standard-FastAPI-Anwendung, aber diese wird โ€žgemountetโ€œ:
    
    ```Python hl_lines="11  14-16"
    {!../../docs_src/sub_applications/tutorial001.py!}
    ```
    
    ### Die Unteranwendung mounten
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. docs/zh/docs/advanced/sub-applications.md

    {!../../docs_src/sub_applications/tutorial001.py!}
    ```
    
    ### ๅญๅบ”็”จ
    
    ๆŽฅไธ‹ๆฅ๏ผŒๅˆ›ๅปบๅญๅบ”็”จๅŠๅ…ถ*่ทฏๅพ„ๆ“ไฝœ*ใ€‚
    
    ๅญๅบ”็”จๅชๆ˜ฏๅฆไธ€ไธชๆ ‡ๅ‡† FastAPI ๅบ”็”จ๏ผŒไฝ†่ฟ™ไธชๅบ”็”จๆ˜ฏ่ขซ**ๆŒ‚่ฝฝ**็š„ๅบ”็”จ๏ผš
    
    ```Python hl_lines="11  14-16"
    {!../../docs_src/sub_applications/tutorial001.py!}
    ```
    
    ### ๆŒ‚่ฝฝๅญๅบ”็”จ
    
    ๅœจ้กถๅฑ‚ๅบ”็”จ `app` ไธญ๏ผŒๆŒ‚่ฝฝๅญๅบ”็”จ `subapi`ใ€‚
    
    ๆœฌไพ‹็š„ๅญๅบ”็”จๆŒ‚่ฝฝๅœจ `/subapi` ่ทฏๅพ„ไธ‹๏ผš
    
    ```Python hl_lines="11  19"
    {!../../docs_src/sub_applications/tutorial001.py!}
    ```
    
    ### ๆŸฅ็œ‹ๆ–‡ๆกฃ
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_custom_response/test_tutorial009.py

    from pathlib import Path
    
    from fastapi.testclient import TestClient
    
    from docs_src.custom_response import tutorial009
    from docs_src.custom_response.tutorial009 import app
    
    client = TestClient(app)
    
    
    def test_get(tmp_path: Path):
        file_path: Path = tmp_path / "large-video-file.mp4"
        tutorial009.some_file_path = str(file_path)
        test_content = b"Fake video bytes"
        file_path.write_bytes(test_content)
        response = client.get("/")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Jul 03 19:51:28 UTC 2021
    - 487 bytes
    - Viewed (0)
  5. docs/en/docs/how-to/extending-openapi.md

    First, write all your **FastAPI** application as normally:
    
    {* ../../docs_src/extending_openapi/tutorial001.py hl[1,4,7:9] *}
    
    ### Generate the OpenAPI schema
    
    Then, use the same utility function to generate the OpenAPI schema, inside a `custom_openapi()` function:
    
    {* ../../docs_src/extending_openapi/tutorial001.py hl[2,15:21] *}
    
    ### Modify the OpenAPI schema
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 22:39:38 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. docs/em/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    ๐Ÿ‘† ๐Ÿ’ช โš™๏ธ ๐ŸŽ ๐Ÿ”— *๐Ÿ”ข* ๐Ÿ‘† โš™๏ธ ๐Ÿ›Ž.
    
    ### ๐Ÿ”— ๐Ÿ“„
    
    ๐Ÿ‘ซ ๐Ÿ’ช ๐Ÿ“ฃ ๐Ÿ“จ ๐Ÿ“„ (๐Ÿ’– ๐ŸŽš) โš–๏ธ ๐ŸŽ ๐ŸŽง-๐Ÿ”—:
    
    ```Python hl_lines="6  11"
    {!../../docs_src/dependencies/tutorial006.py!}
    ```
    
    ### ๐Ÿคš โš 
    
    ๐Ÿ‘ซ ๐Ÿ”— ๐Ÿ’ช `raise` โš , ๐ŸŽ ๐Ÿ˜ ๐Ÿ”—:
    
    ```Python hl_lines="8  13"
    {!../../docs_src/dependencies/tutorial006.py!}
    ```
    
    ### ๐Ÿ“จ ๐Ÿ’ฒ
    
    & ๐Ÿ‘ซ ๐Ÿ’ช ๐Ÿ“จ ๐Ÿ’ฒ โš–๏ธ ๐Ÿšซ, ๐Ÿ’ฒ ๐Ÿ† ๐Ÿšซ โš™๏ธ.
    
    , ๐Ÿ‘† ๐Ÿ’ช ๐Ÿค-โš™๏ธ ๐Ÿ˜ ๐Ÿ”— (๐Ÿ‘ˆ ๐Ÿ“จ ๐Ÿ’ฒ) ๐Ÿ‘† โช โš™๏ธ ๐Ÿ‘ฑ ๐Ÿ™†, & โœ‹๏ธ ๐Ÿ’ฒ ๐Ÿ† ๐Ÿšซ โš™๏ธ, ๐Ÿ”— ๐Ÿ”œ ๐Ÿ› ๏ธ:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. docs/em/docs/tutorial/security/simple-oauth2.md

    ### `OAuth2PasswordRequestForm`
    
    ๐Ÿฅ‡, ๐Ÿ—„ `OAuth2PasswordRequestForm`, & โš™๏ธ โšซ๏ธ ๐Ÿ”— โฎ๏ธ `Depends` *โžก ๐Ÿ› ๏ธ* `/token`:
    
    //// tab | ๐Ÿ 3๏ธโƒฃ.6๏ธโƒฃ & ๐Ÿ”›
    
    ```Python hl_lines="4  76"
    {!> ../../docs_src/security/tutorial003.py!}
    ```
    
    ////
    
    //// tab | ๐Ÿ 3๏ธโƒฃ.1๏ธโƒฃ0๏ธโƒฃ & ๐Ÿ”›
    
    ```Python hl_lines="2  74"
    {!> ../../docs_src/security/tutorial003_py310.py!}
    ```
    
    ////
    
    `OAuth2PasswordRequestForm` ๐ŸŽ“ ๐Ÿ”— ๐Ÿ‘ˆ ๐Ÿ“ฃ ๐Ÿ“จ ๐Ÿ’ช โฎ๏ธ:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  8. docs/zh/docs/advanced/security/oauth2-scopes.md

    ```Python hl_lines="2  4  8  12  46  64  105  107-115  121-124  128-134  139  153"
    {!../../docs_src/security/tutorial005.py!}
    ```
    
    ไธ‹้ข๏ผŒๆˆ‘ไปฌ้€ๆญฅ่ฏดๆ˜Žไฟฎๆ”น็š„ไปฃ็ ๅ†…ๅฎนใ€‚
    
    ## OAuth2 ๅฎ‰ๅ…จๆ–นๆกˆ
    
    ็ฌฌไธ€ไธชไฟฎๆ”น็š„ๅœฐๆ–นๆ˜ฏ๏ผŒไฝฟ็”จไธคไธชไฝœ็”จๅŸŸ `me` ๅ’Œ `items ` ๅฃฐๆ˜Ž OAuth2 ๅฎ‰ๅ…จๆ–นๆกˆใ€‚
    
    `scopes` ๅ‚ๆ•ฐๆŽฅๆ”ถ**ๅญ—ๅ…ธ**๏ผŒ้”ฎๆ˜ฏไฝœ็”จๅŸŸใ€ๅ€ผๆ˜ฏไฝœ็”จๅŸŸ็š„ๆ่ฟฐ๏ผš
    
    ```Python hl_lines="62-65"
    {!../../docs_src/security/tutorial005.py!}
    ```
    
    ๅ› ไธบๅฃฐๆ˜Žไบ†ไฝœ็”จๅŸŸ๏ผŒๆ‰€ไปฅ็™ปๅฝ•ๆˆ–ๆŽˆๆƒๆ—ถไผšๅœจ API ๆ–‡ๆกฃไธญๆ˜พ็คบใ€‚
    
    ๆญคๅค„๏ผŒ้€‰ๆ‹ฉ็ป™ไบˆ่ฎฟ้—ฎๆƒ้™็š„ไฝœ็”จๅŸŸ๏ผš `me` ๅ’Œ `items`ใ€‚
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  9. docs/ru/docs/tutorial/cookie-params.md

    //// tab | Python 3.10+
    
    ```Python hl_lines="1"
    {!> ../../docs_src/cookie_params/tutorial001_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="3"
    {!> ../../docs_src/cookie_params/tutorial001.py!}
    ```
    
    ////
    
    ## ะžะฑัŠัะฒะปะตะฝะธะต ะฟะฐั€ะฐะผะตั‚ั€ะพะฒ `Cookie`
    
    ะ—ะฐั‚ะตะผ ะพะฑัŠัะฒะปัะนั‚ะต ะฟะฐั€ะฐะผะตั‚ั€ั‹ cookie, ะธัะฟะพะปัŒะทัƒั ั‚ัƒ ะถะต ัั‚ั€ัƒะบั‚ัƒั€ัƒ, ั‡ั‚ะพ ะธ ั `Path` ะธ `Query`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  10. docs/de/docs/how-to/extending-openapi.md

    ```Python hl_lines="1  4  7-9"
    {!../../docs_src/extending_openapi/tutorial001.py!}
    ```
    
    ### Das OpenAPI-Schema generieren
    
    Verwenden Sie dann dieselbe Hilfsfunktion, um das OpenAPI-Schema innerhalb einer `custom_openapi()`-Funktion zu generieren:
    
    ```Python hl_lines="2  15-21"
    {!../../docs_src/extending_openapi/tutorial001.py!}
    ```
    
    ### Das OpenAPI-Schema รคndern
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.7K bytes
    - Viewed (0)
Back to top