Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 141 - 150 of 395 for item_2 (0.04 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs_src/query_params_str_validations/tutorial008_an_py310.py

    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(
        q: Annotated[
            str | None,
            Query(
                title="Query string",
                description="Query string for the items to search in the database that have a good match",
                min_length=3,
            ),
        ] = None,
    ):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Oct 24 20:26:06 GMT 2023
    - 498 bytes
    - Click Count (0)
  2. docs_src/query_params_str_validations/tutorial010_an_py310.py

                deprecated=True,
            ),
        ] = None,
    ):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Oct 24 20:26:06 GMT 2023
    - 622 bytes
    - Click Count (0)
  3. tests/test_tutorial/test_body_fields/test_tutorial001.py

    def test_items_5(client: TestClient):
        response = client.put("/items/5", json={"item": {"name": "Foo", "price": 3.0}})
        assert response.status_code == 200
        assert response.json() == {
            "item_id": 5,
            "item": {"name": "Foo", "price": 3.0, "description": None, "tax": None},
        }
    
    
    def test_items_6(client: TestClient):
        response = client.put(
            "/items/6",
            json={
                "item": {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 6.9K bytes
    - Click Count (0)
  4. tests/test_tutorial/test_additional_responses/test_tutorial004.py

                "info": {"title": "FastAPI", "version": "0.1.0"},
                "paths": {
                    "/items/{item_id}": {
                        "get": {
                            "responses": {
                                "404": {"description": "Item not found"},
                                "302": {"description": "The item was moved"},
                                "403": {"description": "Not enough privileges"},
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 27 10:53:47 GMT 2026
    - 5.5K bytes
    - Click Count (0)
  5. docs/uk/docs/tutorial/path-params.md

    {* ../../docs_src/path_params/tutorial001_py310.py hl[6:7] *}
    
    Значення параметра шляху `item_id` буде передано у вашу функцію як аргумент `item_id`.
    
    Отже, якщо ви запустите цей приклад і перейдете за посиланням [http://127.0.0.1:8000/items/foo](http://127.0.0.1:8000/items/foo), то побачите відповідь:
    
    ```JSON
    {"item_id":"foo"}
    ```
    
    ## Параметри шляху з типами { #path-parameters-with-types }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 14K bytes
    - Click Count (0)
  6. tests/test_tutorial/test_body_multiple_params/test_tutorial005.py

        response = client.put(
            "/items/5",
            json={
                "item": {
                    "name": "Foo",
                    "price": 50.5,
                    "description": "Some Foo",
                    "tax": 0.1,
                },
            },
        )
        assert response.status_code == 200
        assert response.json() == {
            "item_id": 5,
            "item": {
                "name": "Foo",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 8.9K bytes
    - Click Count (0)
  7. docs/tr/docs/python-types.md

    ///
    
    Bu şu demektir: "`items` değişkeni bir `list` ve bu listedeki her bir öğe `str`".
    
    Bunu yaparak, editörünüz listeden öğeleri işlerken bile destek sağlayabilir:
    
    <img src="/img/python-types/image05.png">
    
    Tipler olmadan, bunu başarmak neredeyse imkansızdır.
    
    `item` değişkeninin, `items` listesindeki elemanlardan biri olduğuna dikkat edin.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 11.9K bytes
    - Click Count (0)
  8. docs/uk/docs/python-types.md

    ///
    
    Це означає: «змінна `items` — це `list`, і кожен з елементів у цьому списку — `str`».
    
    Зробивши це, ваш редактор може надати підтримку навіть під час обробки елементів зі списку:
    
    <img src="/img/python-types/image05.png">
    
    Без типів цього майже неможливо досягти.
    
    Зверніть увагу, що змінна `item` є одним із елементів у списку `items`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 17.4K bytes
    - Click Count (0)
  9. docs/fr/docs/tutorial/path-params.md

    {* ../../docs_src/path_params/tutorial001_py310.py hl[6:7] *}
    
    La valeur du paramètre de chemin `item_id` sera transmise à votre fonction dans l'argument `item_id`.
    
    Donc, si vous exécutez cet exemple et allez sur [http://127.0.0.1:8000/items/foo](http://127.0.0.1:8000/items/foo), vous verrez comme réponse :
    
    ```JSON
    {"item_id":"foo"}
    ```
    
    ## Paramètres de chemin typés { #path-parameters-with-types }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  10. tests/test_tutorial/test_body_nested_models/test_tutorial001_tutorial002_tutorial003.py

                "paths": {
                    "/items/{item_id}": {
                        "put": {
                            "parameters": [
                                {
                                    "in": "path",
                                    "name": "item_id",
                                    "required": True,
                                    "schema": {
                                        "title": "Item Id",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 8.5K bytes
    - Click Count (0)
Back to Top