- Sort Score
- Result 10 results
- Languages All
Results 401 - 410 of 1,383 for Items (0.05 sec)
-
docs_src/separate_openapi_schemas/tutorial001.py
from pydantic import BaseModel class Item(BaseModel): name: str description: Union[str, None] = None app = FastAPI() @app.post("/items/") def create_item(item: Item): return item @app.get("/items/") def read_items() -> List[Item]: return [ Item( name="Portal Gun", description="Device to travel through the multi-rick-verse", ),
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Aug 25 19:10:22 UTC 2023 - 489 bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial010_an_py39.py
from typing import Annotated, Union from fastapi import FastAPI, Query app = FastAPI() @app.get("/items/") async def read_items( q: Annotated[ Union[str, None], Query( alias="item-query", title="Query string", description="Query string for the items to search in the database that have a good match", min_length=3, max_length=50,
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Oct 24 20:26:06 UTC 2023 - 635 bytes - Viewed (0) -
tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial001.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 1K bytes - Viewed (0) -
docs_src/python_types/tutorial006_py39.py
def process_items(items: list[str]): for item in items:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jan 07 14:11:31 UTC 2022 - 80 bytes - Viewed (0) -
common-protos/k8s.io/api/rbac/v1beta1/generated.proto
message ClusterRoleBindingList { // Standard object's metadata. // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; // Items is a list of ClusterRoleBindings repeated ClusterRoleBinding items = 2; } // ClusterRoleList is a collection of ClusterRoles. // Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoles, and will no longer be served in v1.22.
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Mon Mar 11 18:43:24 UTC 2024 - 8.6K bytes - Viewed (0) -
src/main/webapp/WEB-INF/orig/view/search.jsp
data-toggle="control-options"> <c:if test="${empty lang}"> <la:message key="labels.searchoptions_all" /> </c:if> <c:if test="${!empty lang}"> <c:forEach var="sLang" items="${lang}"> <c:forEach var="item" items="${langItems}"> <c:if test="${item.value==sLang}">${f:h(item.label)}</c:if> </c:forEach> </c:forEach> </c:if> </a></li> <c:if test="${displayLabelTypeItems}">
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Sat Oct 26 01:07:52 UTC 2024 - 6.6K bytes - Viewed (0) -
src/main/webapp/WEB-INF/view/search.jsp
data-toggle="control-options"> <c:if test="${empty lang}"> <la:message key="labels.searchoptions_all" /> </c:if> <c:if test="${!empty lang}"> <c:forEach var="sLang" items="${lang}"> <c:forEach var="item" items="${langItems}"> <c:if test="${item.value==sLang}">${f:h(item.label)}</c:if> </c:forEach> </c:forEach> </c:if> </a></li> <c:if test="${displayLabelTypeItems}">
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Sat Oct 26 01:07:52 UTC 2024 - 6.6K bytes - Viewed (0) -
docs/pt/docs/tutorial/path-params.md
``` O valor do parâmetro que foi passado à `item_id` será passado para a sua função como o argumento `item_id`. Então, se você rodar este exemplo e for até <a href="http://127.0.0.1:8000/items/foo" class="external-link" target="_blank">http://127.0.0.1:8000/items/foo</a>, você verá a seguinte resposta: ```JSON {"item_id":"foo"} ``` ## Parâmetros da rota com tipos
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.8K bytes - Viewed (0) -
tests/test_tutorial/test_dependencies/test_tutorial008b.py
from docs_src.dependencies.tutorial008b import app client = TestClient(app) def test_get_no_item(): response = client.get("/items/foo") assert response.status_code == 404, response.text assert response.json() == {"detail": "Item not found"} def test_owner_error(): response = client.get("/items/plumbus") assert response.status_code == 400, response.text assert response.json() == {"detail": "Owner error: Rick"}
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Dec 26 20:37:34 UTC 2023 - 697 bytes - Viewed (0) -
docs_src/extra_models/tutorial003.py
size: int items = { "item1": {"description": "All my friends drive a low rider", "type": "car"}, "item2": { "description": "Music is my aeroplane, it's my aeroplane", "type": "plane", "size": 5, }, } @app.get("/items/{item_id}", response_model=Union[PlaneItem, CarItem]) async def read_item(item_id: str):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 644 bytes - Viewed (0)