Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 105 for 15 (0.11 sec)

  1. docs/ko/docs/tutorial/body.md

    경로 매개변수와 요청 본문을 동시에 선언할 수 있습니다.
    
    **FastAPI**는 경로 매개변수와 일치하는 함수 매개변수가 **경로에서 가져와야 한다**는 것을 인지하며, Pydantic 모델로 선언된 그 함수 매개변수는 **요청 본문에서 가져와야 한다**는 것을 인지할 것입니다.
    
    === "Python 3.10+"
    
        ```Python hl_lines="15-16"
        {!> ../../../docs_src/body/tutorial003_py310.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="17-18"
        {!> ../../../docs_src/body/tutorial003.py!}
        ```
    
    ## 요청 본문 + 경로 + 쿼리 매개변수
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/handling-errors.md

    ```
    
    现在试着发送一个无效的 `item`,例如:
    
    ```JSON
    {
      "title": "towel",
      "size": "XL"
    }
    
    ```
    
    收到的响应包含 `body` 信息,并说明数据是无效的:
    
    ```JSON hl_lines="12-15"
    {
      "detail": [
        {
          "loc": [
            "body",
            "size"
          ],
          "msg": "value is not a valid integer",
          "type": "type_error.integer"
        }
      ],
      "body": {
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/sql-databases.md

        {!> ../../../docs_src/sql_databases/sql_app_py310/schemas.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="15-17  31-34"
        {!> ../../../docs_src/sql_databases/sql_app_py39/schemas.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="15-17  31-34"
        {!> ../../../docs_src/sql_databases/sql_app/schemas.py!}
        ```
    
    !!! tip
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 27K bytes
    - Viewed (0)
  4. docs/de/docs/tutorial/body-nested-models.md

    ```
    
    so wie in:
    
    === "Python 3.9+"
    
        ```Python hl_lines="13"
        {!> ../../../docs_src/body_nested_models/tutorial008_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="15"
        {!> ../../../docs_src/body_nested_models/tutorial008.py!}
        ```
    
    ## Editor-Unterstützung überall
    
    Und Sie erhalten Editor-Unterstützung überall.
    
    Selbst für Dinge in Listen:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  5. docs_src/security/tutorial004_an_py310.py

        to_encode = data.copy()
        if expires_delta:
            expire = datetime.now(timezone.utc) + expires_delta
        else:
            expire = datetime.now(timezone.utc) + timedelta(minutes=15)
        to_encode.update({"exp": expire})
        encoded_jwt = jwt.encode(to_encode, SECRET_KEY, algorithm=ALGORITHM)
        return encoded_jwt
    
    
    async def get_current_user(token: Annotated[str, Depends(oauth2_scheme)]):
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  6. docs/em/docs/tutorial/handling-errors.md

    {!../../../docs_src/handling_errors/tutorial005.py!}
    ```
    
    🔜 🔄 📨 ❌ 🏬 💖:
    
    ```JSON
    {
      "title": "towel",
      "size": "XL"
    }
    ```
    
    👆 🔜 📨 📨 💬 👆 👈 💽 ❌ ⚗ 📨 💪:
    
    ```JSON hl_lines="12-15"
    {
      "detail": [
        {
          "loc": [
            "body",
            "size"
          ],
          "msg": "value is not a valid integer",
          "type": "type_error.integer"
        }
      ],
      "body": {
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_extra_data_types/test_tutorial001_an_py310.py

        item_id = "ff97dd87-a4a5-4a12-b412-cde99f33e00e"
        data = {
            "start_datetime": "2018-12-22T14:00:00+00:00",
            "end_datetime": "2018-12-24T15:00:00+00:00",
            "repeat_at": "15:30:00",
            "process_after": 300,
        }
        expected_response = data.copy()
        expected_response.update(
            {
                "start_process": "2018-12-22T14:05:00+00:00",
                "duration": 176_100,
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Apr 19 00:11:40 GMT 2024
    - 7K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_request_files/test_tutorial003.py

                    ("files", ("test.txt", file)),
                    ("files", ("test2.txt", file2)),
                ),
            )
        assert response.status_code == 200, response.text
        assert response.json() == {"file_sizes": [14, 15]}
    
    
    def test_post_upload_file(tmp_path):
        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
        path2 = tmp_path / "test2.txt"
        path2.write_bytes(b"<file content2>")
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 7.1K bytes
    - Viewed (0)
  9. docs_src/security/tutorial005_an.py

        to_encode = data.copy()
        if expires_delta:
            expire = datetime.now(timezone.utc) + expires_delta
        else:
            expire = datetime.now(timezone.utc) + timedelta(minutes=15)
        to_encode.update({"exp": expire})
        encoded_jwt = jwt.encode(to_encode, SECRET_KEY, algorithm=ALGORITHM)
        return encoded_jwt
    
    
    async def get_current_user(
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  10. docs/ja/docs/tutorial/extra-data-types.md

        * Pythonの`datetime.datetime`です。
        * リクエストとレスポンスはISO 8601形式の`str`で表現されます: `2008-09-15T15:53:00+05:00`
    * `datetime.date`:
        * Pythonの`datetime.date`です。
        * リクエストとレスポンスはISO 8601形式の`str`で表現されます: `2008-09-15`
    * `datetime.time`:
        * Pythonの`datetime.time`.
        * リクエストとレスポンスはISO 8601形式の`str`で表現されます: `14:23:55.003`
    * `datetime.timedelta`:
        * Pythonの`datetime.timedelta`です。
        * リクエストとレスポンスでは合計秒数の`float`で表現されます。
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 3.2K bytes
    - Viewed (0)
Back to top