Search Options

Results per page
Sort
Preferred Languages
Advance

Results 371 - 380 of 593 for item_2 (0.1 sec)

  1. docs/tr/docs/tutorial/query-params.md

    ```
    http://127.0.0.1:8000/items/foo?short=1
    ```
    
    veya
    
    ```
    http://127.0.0.1:8000/items/foo?short=True
    ```
    
    veya
    
    ```
    http://127.0.0.1:8000/items/foo?short=true
    ```
    
    veya
    
    ```
    http://127.0.0.1:8000/items/foo?short=on
    ```
    
    veya
    
    ```
    http://127.0.0.1:8000/items/foo?short=yes
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. docs/fr/docs/tutorial/query-params.md

    Avec ce code, en allant sur :
    
    ```
    http://127.0.0.1:8000/items/foo?short=1
    ```
    
    ou
    
    ```
    http://127.0.0.1:8000/items/foo?short=True
    ```
    
    ou
    
    ```
    http://127.0.0.1:8000/items/foo?short=true
    ```
    
    ou
    
    ```
    http://127.0.0.1:8000/items/foo?short=on
    ```
    
    ou
    
    ```
    http://127.0.0.1:8000/items/foo?short=yes
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 17:06:01 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_path_operation_configurations/test_tutorial006.py

    client = TestClient(app)
    
    
    @pytest.mark.parametrize(
        "path,expected_status,expected_response",
        [
            ("/items/", 200, [{"name": "Foo", "price": 42}]),
            ("/users/", 200, [{"username": "johndoe"}]),
            ("/elements/", 200, [{"item_id": "Foo"}]),
        ],
    )
    def test_query_params_str_validations(path, expected_status, expected_response):
        response = client.get(path)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  4. docs/em/docs/python-types.md

    ///
    
    ๐Ÿ‘ˆ โ›“: "๐Ÿ”ข `items` `list`, & ๐Ÿ”  ๐Ÿฌ ๐Ÿ‘‰ ๐Ÿ“‡ `str`".
    
    /// tip
    
    ๐Ÿšฅ ๐Ÿ‘† โš™๏ธ ๐Ÿ 3๏ธโƒฃ.9๏ธโƒฃ โš–๏ธ ๐Ÿ”›, ๐Ÿ‘† ๐Ÿšซ โœ”๏ธ ๐Ÿ—„ `List` โšช๏ธโžก๏ธ `typing`, ๐Ÿ‘† ๐Ÿ’ช โš™๏ธ ๐ŸŽ ๐Ÿฅ” `list` ๐Ÿ†Ž โ†ฉ๏ธ.
    
    ///
    
    ๐Ÿ”จ ๐Ÿ‘ˆ, ๐Ÿ‘† ๐Ÿ‘จโ€๐ŸŽจ ๐Ÿ’ช ๐Ÿšš ๐Ÿ•โ€๐Ÿฆบ โช ๐Ÿญ ๐Ÿฌ โšช๏ธโžก๏ธ ๐Ÿ“‡:
    
    <img src="/img/python-types/image05.png">
    
    ๐Ÿต ๐Ÿ†Ž, ๐Ÿ‘ˆ ๐ŸŒ– ๐Ÿ’ช ๐Ÿ†.
    
    ๐Ÿ‘€ ๐Ÿ‘ˆ ๐Ÿ”ข `item` 1๏ธโƒฃ ๐Ÿ”ฃ ๐Ÿ“‡ `items`.
    
    &amp; , ๐Ÿ‘จโ€๐ŸŽจ ๐Ÿ’ญ โšซ๏ธ `str`, &amp; ๐Ÿšš ๐Ÿ•โ€๐Ÿฆบ ๐Ÿ‘ˆ.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  5. tests/main.py

        return "Hello World"
    
    
    @app.get("/path/{item_id}")
    def get_id(item_id):
        return item_id
    
    
    @app.get("/path/str/{item_id}")
    def get_str_id(item_id: str):
        return item_id
    
    
    @app.get("/path/int/{item_id}")
    def get_int_id(item_id: int):
        return item_id
    
    
    @app.get("/path/float/{item_id}")
    def get_float_id(item_id: float):
        return item_id
    
    
    @app.get("/path/bool/{item_id}")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 21:56:59 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  6. docs/ja/docs/tutorial/handling-errors.md

    ```
    
    ### ใƒฌใ‚นใƒใƒณใ‚น็ตๆžœ
    
    ใ‚ฏใƒฉใ‚คใ‚ขใƒณใƒˆใŒ`http://example.com/items/foo`๏ผˆ`item_id` `"foo"`๏ผ‰ใ‚’ใƒชใ‚ฏใ‚จใ‚นใƒˆใ™ใ‚‹ใจใ€HTTPใ‚นใƒ†ใƒผใ‚ฟใ‚นใ‚ณใƒผใƒ‰ใŒ200ใงใ€ไปฅไธ‹ใฎJSONใƒฌใ‚นใƒใƒณใ‚นใŒ่ฟ”ใ•ใ‚Œใพใ™:
    
    ```JSON
    {
      "item": "The Foo Wrestlers"
    }
    ```
    
    ใ—ใ‹ใ—ใ€ใ‚ฏใƒฉใ‚คใ‚ขใƒณใƒˆใŒ`http://example.com/items/bar`๏ผˆๅญ˜ๅœจใ—ใชใ„`item_id` `"bar"`๏ผ‰ใ‚’ใƒชใ‚ฏใ‚จใ‚นใƒˆใ—ใŸๅ ดๅˆใ€HTTPใ‚นใƒ†ใƒผใ‚ฟใ‚นใ‚ณใƒผใƒ‰404๏ผˆ"not found"ใ‚จใƒฉใƒผ๏ผ‰ใจไปฅไธ‹ใฎJSONใƒฌใ‚นใƒใƒณใ‚นใŒ่ฟ”ใ•ใ‚Œใพใ™:
    
    ```JSON
    {
      "detail": "Item not found"
    }
    ```
    
    /// tip | "่ฑ†็Ÿฅ่ญ˜"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  7. docs_src/security/tutorial004_an_py39.py

    async def read_users_me(
        current_user: Annotated[User, Depends(get_current_active_user)],
    ):
        return current_user
    
    
    @app.get("/users/me/items/")
    async def read_own_items(
        current_user: Annotated[User, Depends(get_current_active_user)],
    ):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  8. docs_src/security/tutorial004.py

    @app.get("/users/me/", response_model=User)
    async def read_users_me(current_user: User = Depends(get_current_active_user)):
        return current_user
    
    
    @app.get("/users/me/items/")
    async def read_own_items(current_user: User = Depends(get_current_active_user)):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  9. docs_src/security/tutorial004_an_py310.py

    async def read_users_me(
        current_user: Annotated[User, Depends(get_current_active_user)],
    ):
        return current_user
    
    
    @app.get("/users/me/items/")
    async def read_own_items(
        current_user: Annotated[User, Depends(get_current_active_user)],
    ):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  10. docs/ja/docs/tutorial/query-params.md

                "type": "value_error.missing"
            }
        ]
    }
    ```
    
    `needy` ใฏๅฟ…้ ˆใฎใƒ‘ใƒฉใƒกใƒผใ‚ฟใชใฎใงใ€URLใซใ‚ปใƒƒใƒˆใ™ใ‚‹ๅฟ…่ฆใŒใ‚ใ‚Šใพใ™:
    
    ```
    http://127.0.0.1:8000/items/foo-item?needy=sooooneedy
    ```
    
    ...ใ“ใ‚Œใฏใ†ใพใใ„ใใงใ—ใ‚‡ใ†:
    
    ```JSON
    {
        "item_id": "foo-item",
        "needy": "sooooneedy"
    }
    ```
    
    ใใ—ใฆๅฝ“็„ถใ€ใ‚ใ‚‹ใƒ‘ใƒฉใƒกใƒผใ‚ฟใ‚’ๅฟ…้ ˆใซใ€ๅˆฅใฎใƒ‘ใƒฉใƒกใƒผใ‚ฟใซใƒ‡ใƒ•ใ‚ฉใƒซใƒˆๅ€คใ‚’่จญๅฎšใ—ใ€ใพใŸๅˆฅใฎใƒ‘ใƒฉใƒกใƒผใ‚ฟใ‚’ใ‚ชใƒ—ใ‚ทใƒงใƒŠใƒซใซใงใใพใ™:
    
    ```Python hl_lines="10"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.5K bytes
    - Viewed (0)
Back to top