- Sort Score
- Result 10 results
- Languages All
Results 251 - 260 of 348 for item_id (0.1 sec)
-
docs/fr/docs/tutorial/path-params-numeric-validations.md
/// ## Déclarer des métadonnées Vous pouvez déclarer les mêmes paramètres que pour `Query`. Par exemple, pour déclarer une valeur de métadonnée `title` pour le paramètre de chemin `item_id`, vous pouvez écrire : {* ../../docs_src/path_params_numeric_validations/tutorial001_an_py310.py hl[10] *} /// noteRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Nov 09 16:39:20 UTC 2024 - 6.9K bytes - Viewed (0) -
docs/pt/docs/tutorial/path-params-numeric-validations.md
/// ## Declare metadados { #declare-metadata } Você pode declarar todos os mesmos parâmetros que em `Query`. Por exemplo, para declarar um valor de metadado `title` para o parâmetro de path `item_id` você pode digitar: {* ../../docs_src/path_params_numeric_validations/tutorial001_an_py310.py hl[10] *} /// note | NotaRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 6.7K bytes - Viewed (0) -
docs/ja/docs/tutorial/path-params.md
Pythonのformat文字列と同様のシンタックスで「パスパラメータ」や「パス変数」を宣言できます: {* ../../docs_src/path_params/tutorial001.py hl[6,7] *} パスパラメータ `item_id` の値は、引数 `item_id` として関数に渡されます。 しがたって、この例を実行して <a href="http://127.0.0.1:8000/items/foo" class="external-link" target="_blank">http://127.0.0.1:8000/items/foo</a> にアクセスすると、次のレスポンスが表示されます。 ```JSON {"item_id":"foo"} ``` ## パスパラメータと型 標準のPythonの型アノテーションを使用して、関数内のパスパラメータの型を宣言できます:Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 10.4K bytes - Viewed (0) -
tests/test_tutorial/test_body_fields/test_tutorial001.py
def test_items_5(client: TestClient): response = client.put("/items/5", json={"item": {"name": "Foo", "price": 3.0}}) assert response.status_code == 200 assert response.json() == { "item_id": 5, "item": {"name": "Foo", "price": 3.0, "description": None, "tax": None}, } def test_items_6(client: TestClient): response = client.put( "/items/6", json={
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 6.3K bytes - Viewed (0) -
docs/ru/docs/tutorial/handling-errors.md
### Возвращаемый ответ { #the-resulting-response } Если клиент запросит `http://example.com/items/foo` (`item_id` `"foo"`), то он получит статус-код 200 и ответ в формате JSON: ```JSON { "item": "The Foo Wrestlers" } ``` Но если клиент запросит `http://example.com/items/bar` (несуществующий `item_id` `"bar"`), то он получит статус-код 404 (ошибка "не найдено") и JSON-ответ в виде: ```JSON {Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 14.1K bytes - Viewed (0) -
tests/test_tutorial/test_body_multiple_params/test_tutorial005.py
}, "openapi": "3.1.0", "paths": { "/items/{item_id}": { "put": { "operationId": "update_item_items__item_id__put", "parameters": [ { "in": "path", "name": "item_id", "required": True, "schema": {Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 8.2K bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial003_py310.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri May 13 23:38:22 UTC 2022 - 290 bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial003_an_py39.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Mar 26 16:56:53 UTC 2024 - 343 bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial007_an_py39.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Mar 26 16:56:53 UTC 2024 - 350 bytes - Viewed (0) -
tests/test_tutorial/test_bigger_applications/test_main.py
response = client.get( "/items/plumbus?token=jessica", headers={"X-Token": "fake-super-secret-token"} ) assert response.status_code == 200 assert response.json() == {"name": "Plumbus", "item_id": "plumbus"} def test_items_bar_token_jessica(client: TestClient): response = client.get( "/items/bar?token=jessica", headers={"X-Token": "fake-super-secret-token"} )
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 21.3K bytes - Viewed (0)