Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 30 for fixedquery (0.05 seconds)

  1. docs_src/query_params_str_validations/tutorial004_an_py310.py

    from typing import Annotated
    
    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(
        q: Annotated[
            str | None, Query(min_length=3, max_length=50, pattern="^fixedquery$")
        ] = None,
    ):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Oct 24 20:26:06 GMT 2023
    - 368 bytes
    - Click Count (0)
  2. docs_src/query_params_str_validations/tutorial010_py310.py

            alias="item-query",
            title="Query string",
            description="Query string for the items to search in the database that have a good match",
            min_length=3,
            max_length=50,
            pattern="^fixedquery$",
            deprecated=True,
        ),
    ):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Oct 24 20:26:06 GMT 2023
    - 542 bytes
    - Click Count (0)
  3. docs/ko/docs/tutorial/query-params-str-validations.md

    * `^`: 이전에 문자가 없고 뒤따르는 문자로 시작합니다.
    * `fixedquery`: 정확히 `fixedquery` 값을 갖습니다.
    * `$`: 여기서 끝나고 `fixedquery` 이후로 아무 문자도 갖지 않습니다.
    
    **"정규표현식"** 개념에 대해 상실감을 느꼈다면 걱정하지 않아도 됩니다. 많은 사람에게 어려운 주제입니다. 아직은 정규표현식 없이도 많은 작업들을 할 수 있습니다.
    
    하지만 언제든지 가서 배울수 있고, **FastAPI**에서 직접 사용할 수 있다는 사실을 알고 있어야 합니다.
    
    ## 기본값
    
    기본값으로 사용하는 첫 번째 인자로 `None`을 전달하듯이, 다른 값을 전달할 수 있습니다.
    
    `min_length`가 `3`이고, 기본값이 `"fixedquery"`인 쿼리 매개변수 `q`를 선언해봅시다:
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 9.2K bytes
    - Click Count (0)
  4. docs_src/query_params_str_validations/tutorial010_an_py39.py

                title="Query string",
                description="Query string for the items to search in the database that have a good match",
                min_length=3,
                max_length=50,
                pattern="^fixedquery$",
                deprecated=True,
            ),
        ] = None,
    ):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Oct 24 20:26:06 GMT 2023
    - 635 bytes
    - Click Count (0)
  5. docs_src/query_params_str_validations/tutorial010_py39.py

            alias="item-query",
            title="Query string",
            description="Query string for the items to search in the database that have a good match",
            min_length=3,
            max_length=50,
            pattern="^fixedquery$",
            deprecated=True,
        ),
    ):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 574 bytes
    - Click Count (0)
  6. docs/ru/docs/tutorial/query-params-str-validations.md

    Данный шаблон регулярного выражения проверяет, что полученное значение параметра:
    
    * `^`: начинается с следующих символов, до них нет символов.
    * `fixedquery`: имеет точное значение `fixedquery`.
    * `$`: заканчивается здесь, после `fixedquery` нет никаких символов.
    
    Если вы теряетесь во всех этих идеях про **«регулярные выражения»**, не переживайте. Это сложная тема для многих. Многое можно сделать и без них.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 26.2K bytes
    - Click Count (0)
  7. docs/es/docs/tutorial/query-params-str-validations.md

    Este patrón específico de expresión regular comprueba que el valor recibido del parámetro:
    
    * `^`: comienza con los siguientes caracteres, no tiene caracteres antes.
    * `fixedquery`: tiene el valor exacto `fixedquery`.
    * `$`: termina allí, no tiene más caracteres después de `fixedquery`.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 18.4K bytes
    - Click Count (0)
  8. docs/de/docs/tutorial/query-params-str-validations.md

    Dieses spezielle Suchmuster im regulären Ausdruck überprüft, dass der erhaltene Parameterwert:
    
    * `^`: mit den nachfolgenden Zeichen beginnt, keine Zeichen davor hat.
    * `fixedquery`: den exakten Text `fixedquery` hat.
    * `$`: dort endet, keine weiteren Zeichen nach `fixedquery` hat.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 24 10:28:19 GMT 2025
    - 19.1K bytes
    - Click Count (0)
  9. docs/pt/docs/tutorial/query-params-str-validations.md

    Esse padrão específico de expressão regular verifica se o valor recebido no parâmetro:
    
    * `^`: começa com os caracteres seguintes, não tem caracteres antes.
    * `fixedquery`: tem exatamente o valor `fixedquery`.
    * `$`: termina ali, não tem mais caracteres depois de `fixedquery`.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 18.2K bytes
    - Click Count (0)
  10. docs/ja/docs/tutorial/query-params-str-validations.md

    * `^`: は、これ以降の文字で始まり、これより以前には文字はありません。
    * `fixedquery`: は、正確な`fixedquery`を持っています.
    * `$`: で終わる場合、`fixedquery`以降には文字はありません.
    
    もしこれらすべての **正規表現**のアイデアについて迷っていても、心配しないでください。多くの人にとって難しい話題です。正規表現を必要としなくても、まだ、多くのことができます。
    
    しかし、あなたがそれらを必要とし、学ぶときにはすでに、 **FastAPI**で直接それらを使用することができます。
    
    ## デフォルト値
    
    第一引数に`None`を渡して、デフォルト値として使用するのと同じように、他の値を渡すこともできます。
    
    クエリパラメータ`q`の`min_length`を`3`とし、デフォルト値を`fixedquery`としてみましょう:
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 10.2K bytes
    - Click Count (0)
Back to Top