Search Options

Results per page
Sort
Preferred Languages
Advance

Results 311 - 320 of 378 for item_2 (0.04 sec)

  1. tests/test_tutorial/test_query_params_str_validations/test_tutorial006.py

        response = client.get("/items/", params={"q": "fixedquery"})
        assert response.status_code == 200
        assert response.json() == {
            "items": [{"item_id": "Foo"}, {"item_id": "Bar"}],
            "q": "fixedquery",
        }
    
    
    def test_query_params_str_validations_q_fixedquery_too_short(client: TestClient):
        response = client.get("/items/", params={"q": "fa"})
        assert response.status_code == 422
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  2. docs/uk/docs/tutorial/path-params-numeric-validations.md

    ///
    
    ## Оголошення метаданих
    
    Ви можете оголошувати всі ті ж параметри, що і для `Query`.
    
    Наприклад, щоб оголосити значення метаданих `title` для параметра шляху `item_id`, Ви можете написати:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial001_an_py310.py hl[10] *}
    
    /// note | Примітка
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Sep 20 16:27:21 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial002.py

    from docs_src.path_operation_advanced_configuration.tutorial002_py39 import app
    
    client = TestClient(app)
    
    
    def test_get():
        response = client.get("/items/")
        assert response.status_code == 200, response.text
        assert response.json() == [{"item_id": "Foo"}]
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 1K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/query-params.md

    http://127.0.0.1:8000/items/foo?short=True
    ```
    
    or
    
    ```
    http://127.0.0.1:8000/items/foo?short=true
    ```
    
    or
    
    ```
    http://127.0.0.1:8000/items/foo?short=on
    ```
    
    or
    
    ```
    http://127.0.0.1:8000/items/foo?short=yes
    ```
    
    or any other case variation (uppercase, first letter in uppercase, etc), your function will see the parameter `short` with a `bool` value of `True`. Otherwise as `False`.
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  5. docs/ru/docs/tutorial/query-params.md

    В этом случае, если вы сделаете запрос:
    
    ```
    http://127.0.0.1:8000/items/foo?short=1
    ```
    
    или
    
    ```
    http://127.0.0.1:8000/items/foo?short=True
    ```
    
    или
    
    ```
    http://127.0.0.1:8000/items/foo?short=true
    ```
    
    или
    
    ```
    http://127.0.0.1:8000/items/foo?short=on
    ```
    
    или
    
    ```
    http://127.0.0.1:8000/items/foo?short=yes
    ```
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  6. docs/ja/docs/tutorial/path-params-numeric-validations.md

    ## Pathのインポート
    
    まず初めに、`fastapi`から`Path`をインポートします:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial001.py hl[1] *}
    
    ## メタデータの宣言
    
    パラメータは`Query`と同じものを宣言することができます。
    
    例えば、パスパラメータ`item_id`に対して`title`のメタデータを宣言するには以下のようにします:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial001.py hl[8] *}
    
    /// note | 備考
    
    パスの一部でなければならないので、パスパラメータは常に必須です。
    
    そのため、`...`を使用して必須と示す必要があります。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Jan 04 10:53:58 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_custom_response/test_tutorial001.py

        client = TestClient(mod.app)
        return client
    
    
    def test_get_custom_response(client: TestClient):
        response = client.get("/items/")
        assert response.status_code == 200, response.text
        assert response.json() == [{"item_id": "Foo"}]
    
    
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  8. docs/ru/docs/tutorial/path-params-numeric-validations.md

    ///
    
    ## Определите метаданные { #declare-metadata }
    
    Вы можете указать все те же параметры, что и для `Query`.
    
    Например, чтобы указать значение метаданных `title` для path-параметра `item_id`, вы можете написать:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial001_an_py310.py hl[10] *}
    
    /// note | Примечание
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  9. docs/de/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md

    {* ../../docs_src/pydantic_v1_in_v2/tutorial003_an_py310.py hl[2:3,6,12,21:22] *}
    
    Im obigen Beispiel ist das Eingabemodell ein Pydantic‑v1‑Modell, und das Ausgabemodell (definiert in `response_model=ItemV2`) ist ein Pydantic‑v2‑Modell.
    
    ### Pydantic v1 Parameter { #pydantic-v1-parameters }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 24 10:28:19 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  10. docs_src/path_operation_advanced_configuration/tutorial003_py39.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/items/", include_in_schema=False)
    async def read_items():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 148 bytes
    - Viewed (0)
Back to top