Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 86 for item_id (0.06 sec)

  1. README.md

    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: Union[str, None] = None):
        return {"item_id": item_id, "q": q}
    
    
    @app.put("/items/{item_id}")
    def update_item(item_id: int, item: Item):
        return {"item_name": item.name, "item_id": item_id}
    ```
    
    The `fastapi dev` server should reload automatically.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 15:19:49 UTC 2025
    - 24.3K bytes
    - Viewed (0)
  2. docs/pl/docs/index.md

    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: Union[str, None] = None):
        return {"item_id": item_id, "q": q}
    
    
    @app.put("/items/{item_id}")
    def update_item(item_id: int, item: Item):
        return {"item_name": item.name, "item_id": item_id}
    ```
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:49:48 UTC 2025
    - 19.6K bytes
    - Viewed (0)
  3. docs/em/docs/tutorial/path-params.md

    ๐Ÿ‘† ๐Ÿ’ช ๐Ÿ“ฃ โžก "๐Ÿ”ข" โš–๏ธ "๐Ÿ”ข" โฎ๏ธ ๐ŸŽ โ• โš™๏ธ ๐Ÿ ๐Ÿ“ ๐ŸŽป:
    
    {* ../../docs_src/path_params/tutorial001.py hl[6:7] *}
    
    ๐Ÿ’ฒ โžก ๐Ÿ”ข `item_id` ๐Ÿ”œ ๐Ÿšถโ€โ™€๏ธ ๐Ÿ‘† ๐Ÿ”ข โŒ `item_id`.
    
    , ๐Ÿšฅ ๐Ÿ‘† ๐Ÿƒ ๐Ÿ‘‰ ๐Ÿ–ผ &amp; ๐Ÿšถ <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"}
    ```
    
    ## โžก ๐Ÿ”ข โฎ๏ธ ๐Ÿ†Ž
    
    ๐Ÿ‘† ๐Ÿ’ช ๐Ÿ“ฃ ๐Ÿ†Ž โžก ๐Ÿ”ข ๐Ÿ”ข, โš™๏ธ ๐Ÿฉ ๐Ÿ ๐Ÿ†Ž โœ:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  4. docs/id/docs/tutorial/path-params.md

    {* ../../docs_src/path_params/tutorial001.py hl[6:7] *}
    
    Nilai parameter path `item_id` akan dikirim ke fungsi sebagai argument `item_id`:
    
    Jika anda menjalankan contoh berikut dan kunjungi <a href="http://127.0.0.1:8000/items/foo" class="external-link" target="_blank">http://127.0.0.1:8000/items/foo</a>, anda akan melihat respon:
    
    ```JSON
    {"item_id":"foo"}
    ```
    
    ## Parameter path dengan tipe data
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:29:01 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  5. docs/de/docs/index.md

    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: Union[str, None] = None):
        return {"item_id": item_id, "q": q}
    
    
    @app.put("/items/{item_id}")
    def update_item(item_id: int, item: Item):
        return {"item_name": item.name, "item_id": item_id}
    ```
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:49:48 UTC 2025
    - 21.1K bytes
    - Viewed (0)
  6. docs/it/docs/index.md

    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: Optional[str] = None):
        return {"item_id": item_id, "q": q}
    
    
    @app.put("/items/{item_id}")
    def update_item(item_id: int, item: Item):
        return {"item_name": item.name, "item_id": item_id}
    ```
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:49:48 UTC 2025
    - 19.5K bytes
    - Viewed (1)
  7. docs/de/docs/tutorial/path-params.md

    {* ../../docs_src/path_params/tutorial001.py hl[6:7] *}
    
    Der Wert des Pfad-Parameters `item_id` wird Ihrer Funktion als das Argument `item_id` รผbergeben.
    
    Wenn Sie dieses Beispiel ausfรผhren und auf <a href="http://127.0.0.1:8000/items/foo" class="external-link" target="_blank">http://127.0.0.1:8000/items/foo</a> gehen, sehen Sie als Response:
    
    ```JSON
    {"item_id":"foo"}
    ```
    
    ## Pfad-Parameter mit Typen
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:29:01 UTC 2025
    - 10K bytes
    - Viewed (0)
  8. docs/em/docs/tutorial/path-params-numeric-validations.md

    ## ๐Ÿ—„ โžก
    
    ๐Ÿฅ‡, ๐Ÿ—„ `Path` โšช๏ธโžก๏ธ `fastapi`:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial001.py hl[3] *}
    
    ## ๐Ÿ“ฃ ๐Ÿ—ƒ
    
    ๐Ÿ‘† ๐Ÿ’ช ๐Ÿ“ฃ ๐ŸŒ ๐ŸŽ ๐Ÿ”ข `Query`.
    
    ๐Ÿ–ผ, ๐Ÿ“ฃ `title` ๐Ÿ—ƒ ๐Ÿ’ฒ โžก ๐Ÿ”ข `item_id` ๐Ÿ‘† ๐Ÿ’ช ๐Ÿ†Ž:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial001.py hl[10] *}
    
    /// note
    
    โžก ๐Ÿ”ข ๐Ÿ•ง โœ” โšซ๏ธ โœ”๏ธ ๐Ÿ• โžก.
    
    , ๐Ÿ‘† ๐Ÿ”œ ๐Ÿ“ฃ โšซ๏ธ โฎ๏ธ `...` โ„ข โšซ๏ธ โœ”.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/path-params.md

    {* ../../docs_src/path_params/tutorial001.py hl[6:7] *}
    
    The value of the path parameter `item_id` will be passed to your function as the argument `item_id`.
    
    So, if you run this example and go to <a href="http://127.0.0.1:8000/items/foo" class="external-link" target="_blank">http://127.0.0.1:8000/items/foo</a>, you will see a response of:
    
    ```JSON
    {"item_id":"foo"}
    ```
    
    ## Path parameters with types { #path-parameters-with-types }
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:29:01 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  10. docs/es/docs/tutorial/path-params.md

    {* ../../docs_src/path_params/tutorial001.py hl[6:7] *}
    
    El valor del parรกmetro de path `item_id` se pasarรก a tu funciรณn como el argumento `item_id`.
    
    Asรญ que, si ejecutas este ejemplo y vas a <a href="http://127.0.0.1:8000/items/foo" class="external-link" target="_blank">http://127.0.0.1:8000/items/foo</a>, verรกs un response de:
    
    ```JSON
    {"item_id":"foo"}
    ```
    
    ## Parรกmetros de path con tipos
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:29:01 UTC 2025
    - 9.4K bytes
    - Viewed (0)
Back to top