Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for 49 (0.13 sec)

  1. docs/ru/docs/tutorial/schema-extra-example.md

    === "Python 3.10+"
    
        ```Python hl_lines="23-49"
        {!> ../../../docs_src/schema_extra_example/tutorial004_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="23-49"
        {!> ../../../docs_src/schema_extra_example/tutorial004_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="24-50"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  2. docs/pl/docs/index.md

    ## Aktualizacja przykładu
    
    Zmodyfikuj teraz plik `main.py`, aby otrzmywał treść (body) żądania `PUT`.
    
    Zadeklaruj treść żądania, używając standardowych typów w Pythonie dzięki Pydantic.
    
    ```Python hl_lines="4  9-12  25-27"
    from typing import Union
    
    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float
    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)
  3. docs/ru/docs/index.md

    ## Пример обновления
    
    Теперь измените файл `main.py`, чтобы получить тело ответа из `PUT` запроса.
    
    Объявите тело, используя стандартную типизацию Python, спасибо Pydantic.
    
    ```Python hl_lines="4  9-12  25-27"
    from typing import Union
    
    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float
    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)
  4. docs/zh/docs/index.md

    ![ReDoc](https://fastapi.tiangolo.com/img/index/index-02-redoc-simple.png)
    
    ## 示例升级
    
    现在修改 `main.py` 文件来从 `PUT` 请求中接收请求体。
    
    我们借助 Pydantic 来使用标准的 Python 类型声明请求体。
    
    ```Python hl_lines="4  9-12  25-27"
    from typing import Union
    
    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 18.2K bytes
    - Viewed (0)
  5. docs/ko/docs/tutorial/schema-extra-example.md

    이를 다음과 같이 사용할 수 있습니다:
    
    === "Python 3.10+"
    
        ```Python hl_lines="23-49"
        {!> ../../../docs_src/schema_extra_example/tutorial005_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="23-49"
        {!> ../../../docs_src/schema_extra_example/tutorial005_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="24-50"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Feb 09 12:35:46 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  6. docs/de/docs/tutorial/schema-extra-example.md

    Sie können es so verwenden:
    
    === "Python 3.10+"
    
        ```Python hl_lines="23-49"
        {!> ../../../docs_src/schema_extra_example/tutorial005_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="23-49"
        {!> ../../../docs_src/schema_extra_example/tutorial005_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="24-50"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:19:53 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/schema-extra-example.md

    You can use it like this:
    
    === "Python 3.10+"
    
        ```Python hl_lines="23-49"
        {!> ../../../docs_src/schema_extra_example/tutorial005_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="23-49"
        {!> ../../../docs_src/schema_extra_example/tutorial005_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="24-50"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  8. docs/hu/docs/index.md

    ## Példa frissítése
    
    Módosítsuk a `main.py` fájlt, hogy `PUT` kérések esetén tudjon body-t fogadni.
    
    Deklaráld a body-t standard Python típusokkal, a Pydantic-nak köszönhetően.
    
    ```Python hl_lines="4  9-12  25-27"
    from typing import Union
    
    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 20.2K bytes
    - Viewed (0)
  9. docs/pt/docs/tutorial/handling-errors.md

    Do mesmo modo, você pode sobreescrever o `HTTPException`.
    
    Por exemplo, você pode querer retornar uma *response* em *plain text* ao invés de um JSON para os seguintes erros:
    
    ```Python hl_lines="3-4  9-11  22"
    {!../../../docs_src/handling_errors/tutorial004.py!}
    ```
    
    !!! note "Detalhes Técnicos"
        Você pode usar `from starlette.responses import PlainTextResponse`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 10K bytes
    - Viewed (0)
  10. docs/bn/docs/index.md

    ## উদাহরণস্বরূপ আপগ্রেড
    
    এখন `main.py` ফাইলটি পরিবর্তন করুন যেন এটি `PUT` রিকুয়েস্ট থেকে বডি পেতে পারে।
    
    Python স্ট্যান্ডার্ড লাইব্রেরি, Pydantic এর সাহায্যে বডি ঘোষণা করুন।
    
    ```Python hl_lines="4  9-12  25-27"
    from typing import Union
    
    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 23:58:47 GMT 2024
    - 30.2K bytes
    - Viewed (0)
Back to top