- Sort Score
- Result 10 results
- Languages All
Results 291 - 300 of 348 for item_id (0.04 sec)
-
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) -
tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial002.py
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() == { "openapi": "3.1.0",
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 1K bytes - Viewed (0) -
docs/en/docs/tutorial/query-params.md
In this case, the function parameter `q` will be optional, and will be `None` by default. /// check Also notice that **FastAPI** is smart enough to notice that the path parameter `item_id` is a path parameter and `q` is not, so, it's a query parameter. /// ## Query parameter type conversion { #query-parameter-type-conversion } You can also declare `bool` types, and they will be converted:
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 4.5K bytes - Viewed (0) -
docs/ru/docs/tutorial/query-params.md
В этом случае, параметр `q` будет не обязательным и будет иметь значение `None` по умолчанию. /// check | Важно Также обратите внимание, что **FastAPI** достаточно умён чтобы заметить, что параметр `item_id` является path-параметром, а `q` нет, поэтому, это параметр запроса. /// ## Преобразование типа параметра запроса { #query-parameter-type-conversion }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 7.8K bytes - Viewed (0) -
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) -
tests/test_tutorial/test_extra_models/test_tutorial003.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 6K bytes - Viewed (0) -
tests/test_tutorial/test_custom_response/test_tutorial001.py
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 assert response.json() == { "openapi": "3.1.0",
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 1.3K bytes - Viewed (0) -
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) -
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) -
docs/en/docs/tutorial/bigger-applications.md
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 10 08:55:32 UTC 2025 - 18.6K bytes - Viewed (0)