Search Options

Results per page
Sort
Preferred Languages
Advance

Results 301 - 310 of 493 for sltr (0.02 sec)

  1. docs/en/docs/tutorial/query-params.md

    But when you want to make a query parameter required, you can just not declare any default value:
    
    {* ../../docs_src/query_params/tutorial005.py hl[6:7] *}
    
    Here the query parameter `needy` is a required query parameter of type `str`.
    
    If you open in your browser a URL like:
    
    ```
    http://127.0.0.1:8000/items/foo-item
    ```
    
    ...without adding the required parameter `needy`, you will see an error like:
    
    ```JSON
    {
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:29:01 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  2. docs/es/docs/tutorial/body-updates.md

    Puedes usar el `jsonable_encoder` para convertir los datos de entrada en datos que se puedan almacenar como JSON (por ejemplo, con una base de datos NoSQL). Por ejemplo, convirtiendo `datetime` a `str`.
    
    {* ../../docs_src/body_updates/tutorial001_py310.py hl[28:33] *}
    
    `PUT` se usa para recibir datos que deben reemplazar los datos existentes.
    
    ### Advertencia sobre el reemplazo
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. docs/es/docs/tutorial/query-params.md

    {* ../../docs_src/query_params/tutorial005.py hl[6:7] *}
    
    Aquí el parámetro de query `needy` es un parámetro de query requerido de tipo `str`.
    
    Si abres en tu navegador una URL como:
    
    ```
    http://127.0.0.1:8000/items/foo-item
    ```
    
    ...sin agregar el parámetro requerido `needy`, verás un error como:
    
    ```JSON
    {
      "detail": [
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:29:01 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  4. docs/de/docs/tutorial/body-multiple-params.md

    Da einfache Werte standardmäßig als Query-Parameter interpretiert werden, müssen Sie `Query` nicht explizit hinzufügen, Sie können einfach schreiben:
    
    ```Python
    q: Union[str, None] = None
    ```
    
    Oder in Python 3.10 und darüber:
    
    ```Python
    q: str | None = None
    ```
    
    Zum Beispiel:
    
    {* ../../docs_src/body_multiple_params/tutorial004_an_py310.py hl[27] *}
    
    /// info
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Nov 09 16:39:20 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. docs/de/docs/tutorial/body-updates.md

    Sie können den `jsonable_encoder` verwenden, um die empfangenen Daten in etwas zu konvertieren, das als JSON gespeichert werden kann (in z. B. einer NoSQL-Datenbank). Zum Beispiel, um ein `datetime` in einen `str` zu konvertieren.
    
    {* ../../docs_src/body_updates/tutorial001_py310.py hl[28:33] *}
    
    `PUT` wird verwendet, um Daten zu empfangen, die die existierenden Daten ersetzen sollen.
    
    ### Warnung bezüglich des Ersetzens
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/body-multiple-params.md

    As, by default, singular values are interpreted as query parameters, you don't have to explicitly add a `Query`, you can just do:
    
    ```Python
    q: Union[str, None] = None
    ```
    
    Or in Python 3.10 and above:
    
    ```Python
    q: str | None = None
    ```
    
    For example:
    
    {* ../../docs_src/body_multiple_params/tutorial004_an_py310.py hl[28] *}
    
    
    /// info
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  7. docs/ko/docs/tutorial/path-operation-configuration.md

    /// note | 기술적 세부사항
    
    다음과 같이 임포트하셔도 좋습니다. `from starlette import status`.
    
    **FastAPI**는 개발자 여러분의 편의를 위해서 `starlette.status`와 동일한 `fastapi.status`를 제공합니다. 하지만 Starlette에서 직접 온 것입니다.
    
    ///
    
    ## 태그
    
    (보통 단일 `str`인) `str`로 구성된 `list`와 함께 매개변수 `tags`를 전달하여, `경로 작동`에 태그를 추가할 수 있습니다:
    
    {* ../../docs_src/path_operation_configuration/tutorial002.py hl[17,22,27] *}
    
    전달된 태그들은 OpenAPI의 스키마에 추가되며, 자동 문서 인터페이스에서 사용됩니다:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  8. docs/pt/docs/tutorial/query-params.md

    {* ../../docs_src/query_params/tutorial005.py hl[6:7] *}
    
    Aqui o parâmetro de consulta `needy` é um valor obrigatório, do tipo `str`.
    
    Se você abrir no seu navegador a URL:
    
    ```
    http://127.0.0.1:8000/items/foo-item
    ```
    
    ... sem adicionar o parâmetro obrigatório `needy`, você verá um erro como:
    
    ```JSON
    {
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  9. README.md

    from pydantic import BaseModel
    
    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}")
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 15:19:49 UTC 2025
    - 24.3K bytes
    - Viewed (0)
  10. docs/vi/docs/features.md

    ```Python
    from datetime import date
    
    from pydantic import BaseModel
    
    # Declare a variable as a str
    # and get editor support inside the function
    def main(user_id: str):
        return user_id
    
    
    # A Pydantic model
    class User(BaseModel):
        id: int
        name: str
        joined: date
    ```
    
    Sau đó có thể được sử dụng:
    
    ```Python
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 11.5K bytes
    - Viewed (0)
Back to top