Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 191 - 200 of 291 for prime (0.03 seconds)

  1. docs/zh/docs/tutorial/body-nested-models.md

    然后我们可以将其用作一个属性的类型:
    
    {* ../../docs_src/body_nested_models/tutorial004_py310.py hl[18] *}
    
    这意味着 **FastAPI** 将期望类似于以下内容的请求体:
    
    ```JSON
    {
        "name": "Foo",
        "description": "The pretender",
        "price": 42.0,
        "tax": 3.2,
        "tags": ["rock", "metal", "bar"],
        "image": {
            "url": "http://example.com/baz.jpg",
            "name": "The Foo live"
        }
    }
    ```
    
    再一次,仅仅进行这样的声明,你将通过 **FastAPI** 获得:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 6.8K bytes
    - Click Count (0)
  2. docs/fr/docs/advanced/generate-clients.md

    Vous obtiendrez également l’autocomplétion pour le payload à envoyer :
    
    <img src="/img/tutorial/generate-clients/image03.png">
    
    /// tip | Astuce
    
    Remarquez l’autocomplétion pour `name` et `price`, qui a été définie dans l’application FastAPI, dans le modèle `Item`.
    
    ///
    
    Vous aurez des erreurs en ligne pour les données que vous envoyez :
    
    <img src="/img/tutorial/generate-clients/image04.png">
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 11K bytes
    - Click Count (0)
  3. docs/tr/docs/tutorial/response-model.md

    Dolayısıyla ID’si `foo` olan item için bu *path operation*’a request atarsanız, response (default değerler olmadan) şöyle olur:
    
    ```JSON
    {
        "name": "Foo",
        "price": 50.2
    }
    ```
    
    /// info | Bilgi
    
    Ayrıca şunları da kullanabilirsiniz:
    
    * `response_model_exclude_defaults=True`
    * `response_model_exclude_none=True`
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 17K bytes
    - Click Count (0)
  4. docs/zh/docs/index.md

    借助 Pydantic,使用标准的 Python 类型来声明请求体。
    
    ```Python hl_lines="2  7-10 23-25"
    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float
        is_offer: bool | None = None
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: str | None = None):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 20.7K bytes
    - Click Count (0)
  5. docs/en/data/github_sponsors.yml

        avatarUrl: https://avatars.githubusercontent.com/u/29543316?u=44357eb2a93bccf30fb9d389b8befe94a3d00985&v=4
        url: https://github.com/alixlahuec
    - - login: primer-io
        avatarUrl: https://avatars.githubusercontent.com/u/62146168?v=4
        url: https://github.com/primer-io
    - - login: upciti
        avatarUrl: https://avatars.githubusercontent.com/u/43346262?v=4
        url: https://github.com/upciti
      - login: ChargeStorm
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Jan 02 06:46:57 GMT 2026
    - 19.7K bytes
    - Click Count (0)
  6. docs/de/docs/advanced/generate-clients.md

    <img src="/img/tutorial/generate-clients/image03.png">
    
    /// tip | Tipp
    
    Beachten Sie die automatische Vervollständigung für `name` und `price`, die in der FastAPI-Anwendung im `Item`-Modell definiert wurden.
    
    ///
    
    Sie erhalten Inline-Fehlerberichte für die von Ihnen gesendeten Daten:
    
    <img src="/img/tutorial/generate-clients/image04.png">
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 11.3K bytes
    - Click Count (0)
  7. docs/de/docs/tutorial/response-model.md

    Wenn Sie also den Artikel mit der ID `foo` bei der *Pfadoperation* anfragen, wird (ohne die Defaultwerte) die Response sein:
    
    ```JSON
    {
        "name": "Foo",
        "price": 50.2
    }
    ```
    
    /// info | Info
    
    Sie können auch:
    
    * `response_model_exclude_defaults=True`
    * `response_model_exclude_none=True`
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 17.5K bytes
    - Click Count (0)
  8. docs/de/docs/index.md

    ```Python hl_lines="2  7-10 23-25"
    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float
        is_offer: bool | None = None
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: str | None = None):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 23.6K bytes
    - Click Count (1)
  9. docs/ko/docs/tutorial/body-updates.md

    `PUT`은 기존 데이터를 **대체**해야 하는 데이터를 받는 데 사용합니다.
    
    ### 대체 시 주의사항 { #warning-about-replacing }
    
    즉, `PUT`으로 항목 `bar`를 업데이트하면서 다음과 같은 body를 보낸다면:
    
    ```Python
    {
        "name": "Barz",
        "price": 3,
        "description": None,
    }
    ```
    
    이미 저장된 속성 `"tax": 20.2`가 포함되어 있지 않기 때문에, 입력 모델은 `"tax": 10.5`라는 기본값을 사용하게 됩니다.
    
    그리고 데이터는 그 “새로운” `tax` 값 `10.5`로 저장됩니다.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 4.8K bytes
    - Click Count (0)
  10. docs/ru/docs/advanced/generate-clients.md

    Вы также получите автозавершение для отправляемой полезной нагрузки:
    
    <img src="/img/tutorial/generate-clients/image03.png">
    
    /// tip | Совет
    
    Обратите внимание на автозавершение для `name` и `price`, это было определено в приложении FastAPI, в модели `Item`.
    
    ///
    
    Вы получите ошибки прямо в редакторе для отправляемых данных:
    
    <img src="/img/tutorial/generate-clients/image04.png">
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 15.5K bytes
    - Click Count (0)
Back to Top