Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 30 for none (0.17 sec)

  1. docs/pl/docs/index.md

    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float
        is_offer: Union[bool, None] = None
    
    
    @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):
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  2. docs/ru/docs/index.md

    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float
        is_offer: Union[bool, None] = None
    
    
    @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):
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 25.8K bytes
    - Viewed (0)
  3. docs/it/docs/index.md

    * Validerà che `item_id` sia di tipo `int` per le richieste `GET` e `PUT`.
        * Se non lo è, il client vedrà un errore chiaro e utile.
    * Controllerà se ci sia un parametro opzionale chiamato `q` (per esempio `http://127.0.0.1:8000/items/foo?q=somequery`) per le richieste `GET`.
        * Siccome il parametro `q` è dichiarato con `= None`, è opzionale.
        * Senza il `None` sarebbe stato obbligatorio (come per il body della richiesta `PUT`).
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 23:58:47 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  4. docs/fr/docs/advanced/index.md

    Dans les sections suivantes, vous verrez des options, configurations et fonctionnalités supplémentaires.
    
    !!! note "Remarque"
        Les sections de ce chapitre ne sont **pas nécessairement "avancées"**.
    
        Et il est possible que pour votre cas d'utilisation, la solution se trouve dans l'un d'entre eux.
    
    ## Lisez d'abord le didacticiel
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  5. docs/ru/docs/tutorial/index.md

    <div class="termy">
    
    ```console
    $ pip install "fastapi[all]"
    
    ---> 100%
    ```
    
    </div>
    
    ...это также включает `uvicorn`, который вы можете использовать в качестве сервера, который запускает ваш код.
    
    !!! note "Технические детали"
        Вы также можете установить его по частям.
    
        Это то, что вы, вероятно, сделаете, когда захотите развернуть свое приложение в рабочей среде:
    
        ```
        pip install fastapi
        ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Jun 24 14:47:15 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  6. docs/zh/docs/tutorial/index.md

    第一个步骤是安装 FastAPI。
    
    为了使用本教程,你可能需要安装所有的可选依赖及对应功能:
    
    <div class="termy">
    
    ```console
    $ pip install "fastapi[all]"
    
    ---> 100%
    ```
    
    </div>
    
    ......以上安装还包括了 `uvicorn`,你可以将其用作运行代码的服务器。
    
    !!! note
        你也可以分开来安装。
    
        假如你想将应用程序部署到生产环境,你可能要执行以下操作:
    
        ```
        pip install fastapi
        ```
    
        并且安装`uvicorn`来作为服务器:
    
        ```
        pip install "uvicorn[standard]"
        ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Jun 24 14:47:15 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  7. docs/en/docs/index.md

    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float
        is_offer: Union[bool, None] = None
    
    
    @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):
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  8. docs/de/docs/index.md

    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float
        is_offer: Union[bool, None] = None
    
    
    @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):
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 21.1K bytes
    - Viewed (0)
  9. docs/he/docs/index.md

    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float
        is_offer: Union[bool, None] = None
    
    
    @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):
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 23:58:47 GMT 2024
    - 21.2K bytes
    - Viewed (0)
  10. docs/ja/docs/tutorial/index.md

    チュートリアルのために、すべてのオプションの依存関係と機能をインストールしたいとき:
    
    <div class="termy">
    
    ```console
    $ pip install "fastapi[all]"
    
    ---> 100%
    ```
    
    </div>
    
    ...これには、コードを実行するサーバーとして使用できる `uvicorn`も含まれます。
    
    !!! note "備考"
        パーツ毎にインストールすることも可能です。
    
        以下は、アプリケーションを本番環境にデプロイする際に行うであろうものです:
    
        ```
        pip install fastapi
        ```
    
        また、サーバーとして動作するように`uvicorn` をインストールします:
    
        ```
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Jun 24 14:47:15 GMT 2023
    - 3.4K bytes
    - Viewed (0)
Back to top