Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 924 for docs_src (0.14 sec)

  1. docs/en/docs/tutorial/dependencies/classes-as-dependencies.md

    {* ../../docs_src/dependencies/tutorial002_an_py310.py hl[11:15] *}
    
    Pay attention to the `__init__` method used to create the instance of the class:
    
    {* ../../docs_src/dependencies/tutorial002_an_py310.py hl[12] *}
    
    ...it has the same parameters as our previous `common_parameters`:
    
    {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[8] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  2. docs/uk/docs/tutorial/request-files.md

    ///
    
    ## Імпорт `File`
    
    Імпортуйте `File` та `UploadFile` з `fastapi`:
    
    {* ../../docs_src/request_files/tutorial001_an_py39.py hl[3] *}
    
    ## Визначення параметрів `File`
    
    Створіть параметри файлів так само як Ви б створювали `Body` або `Form`:
    
    {* ../../docs_src/request_files/tutorial001_an_py39.py hl[9] *}
    
    /// info | Інформація
    
    `File`  — це клас, який безпосередньо успадковує `Form`.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Feb 22 22:01:44 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  3. docs/pt/docs/tutorial/dependencies/classes-as-dependencies.md

    {* ../../docs_src/dependencies/tutorial002_an_py310.py hl[11:15] *}
    
    Observe o método `__init__` usado para criar uma instância da classe:
    
    {* ../../docs_src/dependencies/tutorial002_an_py310.py hl[12] *}
    
    ...ele possui os mesmos parâmetros que nosso `common_parameters` anterior:
    
    {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[8] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/bigger-applications.md

    {* ../../docs_src/bigger_applications/app_an_py39/routers/users.py hl[1,3] title["app/routers/users.py"] *}
    
    ### *Path operations* with `APIRouter` { #path-operations-with-apirouter }
    
    And then you use it to declare your *path operations*.
    
    Use it the same way you would use the `FastAPI` class:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 08:55:32 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  5. docs/zh/docs/tutorial/path-params.md

    FastAPI 支持使用 Python 字符串格式化语法声明**路径参数**(**变量**):
    
    {* ../../docs_src/path_params/tutorial001.py hl[6:7] *}
    
    这段代码把路径参数 `item_id` 的值传递给路径函数的参数 `item_id`。
    
    运行示例并访问 <a href="http://127.0.0.1:8000/items/foo" class="external-link" target="_blank">http://127.0.0.1:8000/items/foo</a>,可获得如下响应:
    
    ```JSON
    {"item_id":"foo"}
    ```
    
    ## 声明路径参数的类型
    
    使用 Python 标准类型注解,声明路径操作函数中路径参数的类型。
    
    {* ../../docs_src/path_params/tutorial002.py hl[7] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Dec 15 16:43:19 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  6. docs/es/docs/tutorial/testing.md

    Ambas *path operations* requieren un `X-Token` header.
    
    {* ../../docs_src/app_testing/app_b_an_py310/main.py *}
    
    ### Archivo de prueba extendido { #extended-testing-file }
    
    Podrías entonces actualizar `test_main.py` con las pruebas extendidas:
    
    {* ../../docs_src/app_testing/app_b_an_py310/test_main.py *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  7. docs/en/docs/advanced/websockets.md

    But it's the simplest way to focus on the server-side of WebSockets and have a working example:
    
    {* ../../docs_src/websockets/tutorial001_py39.py hl[2,6:38,41:43] *}
    
    ## Create a `websocket` { #create-a-websocket }
    
    In your **FastAPI** application, create a `websocket`:
    
    {* ../../docs_src/websockets/tutorial001_py39.py hl[1,46:47] *}
    
    /// note | Technical Details
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  8. docs/ru/docs/tutorial/testing.md

    Обе *операции пути* требуют наличия в запросе заголовка `X-Token`.
    
    {* ../../docs_src/app_testing/app_b_an_py310/main.py *}
    
    ### Расширенный файл тестов { #extended-testing-file }
    
    Теперь обновим файл `test_main.py`, добавив в него тестов:
    
    {* ../../docs_src/app_testing/app_b_an_py310/test_main.py *}
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 10K bytes
    - Viewed (0)
  9. docs/ko/docs/tutorial/body-multiple-params.md

    요청 본문 선언에 대한 심화 사용법을 알아보겠습니다.
    
    ## `Path`, `Query` 및 본문 매개변수 혼합
    
    당연하게 `Path`, `Query` 및 요청 본문 매개변수 선언을 자유롭게 혼합해서 사용할 수 있고, **FastAPI**는 어떤 동작을 할지 압니다.
    
    또한, 기본 값을 `None`으로 설정해 본문 매개변수를 선택사항으로 선언할 수 있습니다.
    
    {* ../../docs_src/body_multiple_params/tutorial001.py hl[19:21] *}
    
    /// note | 참고
    
    이 경우에는 본문으로 부터 가져온 `	item`은 기본값이 `None`이기 때문에, 선택사항이라는 점을 유의해야 합니다.
    
    ///
    
    ## 다중 본문 매개변수
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  10. docs/ko/docs/tutorial/path-params.md

    {* ../../docs_src/path_params/tutorial005.py hl[16] *}
    
    ### 문서 확인
    
    *경로 매개변수*에 사용할 수 있는 값은 미리 정의되어 있으므로 대화형 문서에서 잘 표시됩니다:
    
    <img src="/img/tutorial/path-params/image03.png">
    
    ### 파이썬 *열거형*으로 작업하기
    
    *경로 매개변수*의 값은 *열거형 멤버*가 됩니다.
    
    #### *열거형 멤버* 비교
    
    열거형 `ModelName`의 *열거형 멤버*를 비교할 수 있습니다:
    
    {* ../../docs_src/path_params/tutorial005.py hl[17] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 9.6K bytes
    - Viewed (0)
Back to top