Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 191 - 200 of 382 for item_1 (0.1 seconds)

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

  1. docs/de/docs/tutorial/bigger-applications.md

    ## Ein weiteres Modul mit `APIRouter` { #another-module-with-apirouter }
    
    Nehmen wir an, Sie haben im Modul unter `app/routers/items.py` auch die Endpunkte, die für die Verarbeitung von Artikeln („Items“) aus Ihrer Anwendung vorgesehen sind.
    
    Sie haben *Pfadoperationen* für:
    
    * `/items/`
    * `/items/{item_id}`
    
    Es ist alles die gleiche Struktur wie bei `app/routers/users.py`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 21.9K bytes
    - Click Count (0)
  2. docs_src/security/tutorial004_py310.py

    @app.get("/users/me/")
    async def read_users_me(current_user: User = Depends(get_current_active_user)) -> User:
        return current_user
    
    
    @app.get("/users/me/items/")
    async def read_own_items(current_user: User = Depends(get_current_active_user)):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 18:10:35 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  3. docs/ko/docs/python-types.md

    대괄호 안의 내부 타입은 "type parameters"라고 부릅니다.
    
    이 경우 `str`이 `list`에 전달된 타입 매개변수입니다.
    
    ///
    
    이는 "변수 `items`는 `list`이고, 이 `list`의 각 아이템은 `str`이다"라는 뜻입니다.
    
    이렇게 하면, 에디터는 리스트의 아이템을 처리하는 동안에도 지원을 제공할 수 있습니다:
    
    <img src="/img/python-types/image05.png">
    
    타입이 없으면, 이는 거의 불가능합니다.
    
    변수 `item`이 리스트 `items`의 요소 중 하나라는 점에 주목하세요.
    
    그리고 에디터는 여전히 이것이 `str`임을 알고, 그에 대한 지원을 제공합니다.
    
    #### Tuple과 Set { #tuple-and-set }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 13K bytes
    - Click Count (0)
  4. 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}")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 4.5K bytes
    - Click Count (0)
  5. docs/en/docs/deployment/docker.md

    ```Python
    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: str | None = None):
        return {"item_id": item_id, "q": q}
    ```
    
    ### Dockerfile { #dockerfile }
    
    Now in the same project directory create a file `Dockerfile` with:
    
    ```{ .dockerfile .annotate }
    # (1)!
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 28.3K bytes
    - Click Count (1)
  6. docs/tr/docs/tutorial/bigger-applications.md

    ///
    
    ## `APIRouter` ile Başka Bir Module { #another-module-with-apirouter }
    
    Diyelim ki uygulamanızdaki "items" ile ilgili endpoint'ler de `app/routers/items.py` module’ünde olsun.
    
    Şunlar için *path operation*’larınız var:
    
    * `/items/`
    * `/items/{item_id}`
    
    Bu, `app/routers/users.py` ile aynı yapıdadır.
    
    Ancak biraz daha akıllı davranıp kodu sadeleştirmek istiyoruz.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 20.3K bytes
    - Click Count (0)
  7. docs_src/security/tutorial005_py310.py

    @app.get("/users/me/")
    async def read_users_me(current_user: User = Depends(get_current_active_user)) -> User:
        return current_user
    
    
    @app.get("/users/me/items/")
    async def read_own_items(
        current_user: User = Security(get_current_active_user, scopes=["items"]),
    ):
        return [{"item_id": "Foo", "owner": current_user.username}]
    
    
    @app.get("/status/")
    async def read_system_status(current_user: User = Depends(get_current_user)):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 18:10:35 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  8. docs/ko/docs/tutorial/bigger-applications.md

    애플리케이션의 "items"를 처리하는 전용 endpoint들도 `app/routers/items.py` 모듈에 있다고 해봅시다.
    
    여기에는 다음에 대한 *path operations*가 있습니다:
    
    * `/items/`
    * `/items/{item_id}`
    
    구조는 `app/routers/users.py`와 완전히 동일합니다.
    
    하지만 우리는 조금 더 똑똑하게, 코드를 약간 단순화하고 싶습니다.
    
    이 모듈의 모든 *path operations*에는 다음이 동일하게 적용됩니다:
    
    * 경로 `prefix`: `/items`.
    * `tags`: (태그 하나: `items`).
    * 추가 `responses`.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 21.5K bytes
    - Click Count (0)
  9. docs/pt/docs/deployment/docker.md

    ```Python
    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: str | None = None):
        return {"item_id": item_id, "q": q}
    ```
    
    ### Dockerfile { #dockerfile }
    
    Agora, no mesmo diretório do projeto, crie um arquivo `Dockerfile` com:
    
    ```{ .dockerfile .annotate }
    # (1)!
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 30.9K bytes
    - Click Count (0)
  10. docs/zh/docs/deployment/docker.md

    ```Python
    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: str | None = None):
        return {"item_id": item_id, "q": q}
    ```
    
    ### Dockerfile { #dockerfile }
    
    现在在同一个项目目录下创建 `Dockerfile` 文件:
    
    ```{ .dockerfile .annotate }
    # (1)!
    FROM python:3.14
    
    # (2)!
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 24.8K bytes
    - Click Count (0)
Back to Top