- Sort Score
- Num 10 results
- Language All
Results 271 - 280 of 543 for item_d (0.19 seconds)
-
docs/uk/docs/tutorial/handling-errors.md
Якщо клієнт робить запит за шляхом `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 { "detail": "Item not found" } ``` /// tip | Порада
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Oct 11 17:48:49 GMT 2025 - 13.9K bytes - Click Count (0) -
docs/es/docs/tutorial/bigger-applications.md
/// ## Otro módulo con `APIRouter` { #another-module-with-apirouter } Digamos que también tienes los endpoints dedicados a manejar "items" de tu aplicación en el módulo `app/routers/items.py`. Tienes *path operations* para: * `/items/` * `/items/{item_id}` Es toda la misma estructura que con `app/routers/users.py`. Pero queremos ser más inteligentes y simplificar un poco el código.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Dec 16 16:33:45 GMT 2025 - 19.6K bytes - Click Count (0) -
docs/pt/docs/tutorial/bigger-applications.md
{* ../../docs_src/bigger_applications/app_an_py39/routers/items.py hl[5:10,16,21] title["app/routers/items.py"] *} Como o caminho de cada *operação de rota* deve começar com `/`, como em: ```Python hl_lines="1" @router.get("/{item_id}") async def read_item(item_id: str): ... ``` ...o prefixo não deve incluir um `/` final. Então, o prefixo neste caso é `/items`.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Dec 16 20:32:40 GMT 2025 - 19.7K bytes - Click Count (0) -
tests/test_tutorial/test_events/test_tutorial001.py
}, "summary": "Read Items", "operationId": "read_items_items__item_id__get", "parameters": [ { "required": True, "schema": {"title": "Item Id", "type": "string"}, "name": "item_id", "in": "path",Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 3.6K bytes - Click Count (0) -
tests/test_tutorial/test_schema_extra_example/test_tutorial001.py
"info": {"title": "FastAPI", "version": "0.1.0"}, "paths": { "/items/{item_id}": { "put": { "summary": "Update Item", "operationId": "update_item_items__item_id__put", "parameters": [ { "name": "item_id", "in": "path", "required": True,
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 4.8K bytes - Click Count (0) -
tests/test_tutorial/test_schema_extra_example/test_tutorial002.py
"info": {"title": "FastAPI", "version": "0.1.0"}, "paths": { "/items/{item_id}": { "put": { "summary": "Update Item", "operationId": "update_item_items__item_id__put", "parameters": [ { "name": "item_id", "in": "path", "required": True,
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 4.9K bytes - Click Count (0) -
tests/test_tutorial/test_handling_errors/test_tutorial002.py
assert response.json() == {"detail": "Item not found"} def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == { "openapi": "3.1.0", "info": {"title": "FastAPI", "version": "0.1.0"}, "paths": { "/items-header/{item_id}": { "get": { "responses": {
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 3.3K bytes - Click Count (0) -
tests/test_tutorial/test_schema_extra_example/test_tutorial004.py
"paths": { "/items/{item_id}": { "put": { "summary": "Update Item", "operationId": "update_item_items__item_id__put", "parameters": [ { "required": True, "schema": {"title": "Item Id", "type": "integer"},
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 5.4K bytes - Click Count (0) -
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] *} /// noteCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Nov 09 16:39:20 GMT 2024 - 6.9K bytes - Click Count (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 | NotaCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 6.7K bytes - Click Count (0)