- Sort Score
- Result 10 results
- Languages All
Results 561 - 570 of 1,537 for items (0.02 sec)
-
fastapi/routing.py
from pydantic import BaseModel class Item(BaseModel): name: str description: str | None = None app = FastAPI() router = APIRouter() @router.put("/items/{item_id}") def replace_item(item_id: str, item: Item): return {"message": "Item replaced", "id": item_id} app.include_router(router)Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 12:54:56 UTC 2025 - 174.6K bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial014_an_py310.py
from typing import Annotated from fastapi import FastAPI, Query app = FastAPI() @app.get("/items/") async def read_items( hidden_query: Annotated[str | None, Query(include_in_schema=False)] = None, ): if hidden_query: return {"hidden_query": hidden_query} else:
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Mar 26 16:56:53 UTC 2024 - 331 bytes - Viewed (0) -
docs/uk/docs/tutorial/query-params-str-validations.md
## Аліаси параметрів Уявіть, що Ви хочете, щоб параметр називався `item-query`. Наприклад: ``` http://127.0.0.1:8000/items/?item-query=foobaritems ``` Але `item-query` — це некоректна назва змінної в Python. Найближчий допустимий варіант — `item_query`. Проте Вам потрібно, щоб параметр залишався саме `item-query`...
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri May 30 14:17:24 UTC 2025 - 26.1K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial004.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 13.3K bytes - Viewed (0) -
src/main/webapp/WEB-INF/view/admin/dict/mapping/admin_dict_mapping.jsp
<c:forEach var="p" varStatus="s" items="${pager.pageNumberList}"> <li <c:if test="${p == pager.currentPageNumber}">class="page-item active"</c:if>> <la:linkRegistered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Nov 13 05:54:52 UTC 2025 - 10.3K bytes - Viewed (0) -
docs_src/path_operation_configuration/tutorial001_py39.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat May 14 11:59:59 UTC 2022 - 401 bytes - Viewed (0) -
tests/test_security_scopes_sub_dependency.py
} app = FastAPI() @app.get("/") def path_operation( user_me: Annotated[dict, Depends(get_user_me)], user_items: Annotated[dict, Security(get_user_items, scopes=["items"])], ): return { "user_me": user_me, "user_items": user_items, } return app @pytest.fixture(name="client") def client_fixture(app: FastAPI):Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 2.9K bytes - Viewed (0) -
tests/test_additional_responses_custom_model_in_callback.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 5.8K bytes - Viewed (0) -
docs_src/cookie_param_models/tutorial002_py310.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Sep 17 18:54:10 UTC 2024 - 343 bytes - Viewed (0) -
docs_src/body_multiple_params/tutorial005_py39.py
from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: Union[str, None] = None price: float tax: Union[float, None] = None @app.put("/items/{item_id}") async def update_item(item_id: int, item: Item = Body(embed=True)): results = {"item_id": item_id, "item": item}
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 407 bytes - Viewed (0)