Search Options

Results per page
Sort
Preferred Languages
Advance

Results 351 - 360 of 540 for item_d (0.03 sec)

  1. docs/es/docs/deployment/docker.md

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @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}
    ```
    
    ### Dockerfile { #dockerfile }
    
    Ahora, en el mismo directorio del proyecto, crea un archivo `Dockerfile` con:
    
    ```{ .dockerfile .annotate }
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 32K bytes
    - Viewed (0)
  2. docs/ko/docs/python-types.md

    대괄호 안의 내부 타입은 "타입 매개변수(type paramters)"라고 합니다.
    
    이번 예제에서는 `str`이 `List`에 들어간 타입 매개변수 입니다.
    
    ///
    
    이는 "`items`은 `list`인데, 배열에 들어있는 아이템 각각은 `str`이다"라는 뜻입니다.
    
    이렇게 함으로써, 에디터는 배열에 들어있는 아이템을 처리할때도 도움을 줄 수 있게 됩니다:
    
    <img src="/img/python-types/image05.png">
    
    타입이 없으면 이건 거의 불가능이나 다름 없습니다.
    
    변수 `item`은 `items`의 개별 요소라는 사실을 알아두세요.
    
    그리고 에디터는 계속 `str`라는 사실을 알고 도와줍니다.
    
    #### `Tuple`과 `Set`
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. docs/zh/docs/deployment/docker.md

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @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}
    ```
    
    ### Dockerfile
    
    现在在相同的project目录创建一个名为`Dockerfile`的文件:
    
    ```{ .dockerfile .annotate }
    # (1)
    FROM python:3.9
    
    # (2)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Aug 12 21:47:53 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  4. fastapi/applications.py

            from pydantic import BaseModel
    
            class Item(BaseModel):
                name: str
                description: str | None = None
    
            app = FastAPI()
    
            @app.put("/items/{item_id}")
            def replace_item(item_id: str, item: Item):
                return {"message": "Item replaced", "id": item_id}
            ```
            """
            return self.router.put(
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 176.3K bytes
    - Viewed (0)
  5. docs/pt/docs/python-types.md

    ///
    
    Isso significa: "a variável `items` é uma `list`, e cada um dos itens desta lista é uma `str`".
    
    Ao fazer isso, seu editor pode fornecer suporte mesmo durante o processamento de itens da lista:
    
    <img src="/img/python-types/image05.png">
    
    Sem tipos, isso é quase impossível de alcançar.
    
    Observe que a variável `item` é um dos elementos da lista `items`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  6. docs/es/docs/python-types.md

    Harías lo mismo para declarar `tuple`s y `set`s:
    
    {* ../../docs_src/python_types/tutorial007_py39.py hl[1] *}
    
    Esto significa:
    
    * La variable `items_t` es un `tuple` con 3 ítems, un `int`, otro `int`, y un `str`.
    * La variable `items_s` es un `set`, y cada uno de sus ítems es del tipo `bytes`.
    
    #### Dict { #dict }
    
    Para definir un `dict`, pasas 2 parámetros de tipo, separados por comas.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 16.4K bytes
    - Viewed (1)
  7. src/test/java/org/codelibs/fess/suggest/SuggesterTest.java

        }
    
        @Test
        public void test_update() throws Exception {
            SuggestItem[] items = getItemSet1();
            suggester.indexer().index(items);
            suggester.refresh();
    
            SuggestItem[] items2 = getItemSet1();
            SuggestIndexResponse response = suggester.indexer().index(items2);
    
            assertFalse(response.hasError());
    
            suggester.refresh();
    
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 37.4K bytes
    - Viewed (0)
  8. docs/uk/docs/tutorial/path-params-numeric-validations.md

    ///
    
    ## Оголошення метаданих
    
    Ви можете оголошувати всі ті ж параметри, що і для `Query`.
    
    Наприклад, щоб оголосити значення метаданих `title` для параметра шляху `item_id`, Ви можете написати:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial001_an_py310.py hl[10] *}
    
    /// note | Примітка
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Sep 20 16:27:21 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_security/test_tutorial005.py

        client = TestClient(mod.app)
        access_token = get_access_token(scope="me items", client=client)
        response = client.get(
            "/users/me/items/", headers={"Authorization": f"Bearer {access_token}"}
        )
        assert response.status_code == 200, response.text
        assert response.json() == [{"item_id": "Foo", "owner": "johndoe"}]
    
    
    def test_read_system_status(mod: ModuleType):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  10. docs/ru/docs/tutorial/path-params-numeric-validations.md

    ///
    
    ## Определите метаданные { #declare-metadata }
    
    Вы можете указать все те же параметры, что и для `Query`.
    
    Например, чтобы указать значение метаданных `title` для path-параметра `item_id`, вы можете написать:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial001_an_py310.py hl[10] *}
    
    /// note | Примечание
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 10.6K bytes
    - Viewed (0)
Back to top