- Sort Score
- Result 10 results
- Languages All
Results 661 - 670 of 1,205 for itens (0.03 sec)
-
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) -
docs_src/encoder/tutorial001_py39.py
from pydantic import BaseModel fake_db = {} class Item(BaseModel): title: str timestamp: datetime description: Union[str, None] = None app = FastAPI() @app.put("/items/{id}") def update_item(id: str, item: Item): json_compatible_item_data = jsonable_encoder(item)Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 461 bytes - Viewed (0) -
docs_src/query_params/tutorial004_py310.py
from fastapi import FastAPI app = FastAPI() @app.get("/users/{user_id}/items/{item_id}") async def read_user_item( user_id: int, item_id: str, q: str | None = None, short: bool = False ): item = {"item_id": item_id, "owner_id": user_id} if q: item.update({"q": q}) if not short: item.update( {"description": "This is an amazing item that has a long description"} )
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Jan 07 14:11:31 UTC 2022 - 436 bytes - Viewed (0) -
docs_src/body_multiple_params/tutorial005_an_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: Annotated[Item, Body(embed=True)]): results = {"item_id": item_id, "item": item}
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 428 bytes - Viewed (0) -
docs_src/dependencies/tutorial005_py39.py
def query_or_cookie_extractor( q: str = Depends(query_extractor), last_query: Union[str, None] = Cookie(default=None), ): if not q: return last_query return q @app.get("/items/") async def read_query(query_or_default: str = Depends(query_or_cookie_extractor)):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 486 bytes - Viewed (0) -
cmd/api-response.go
VersionID string `xml:"VersionId"` } // Metadata metadata items implemented to ensure XML marshaling works. type Metadata struct { Items []struct { Key string Value string } } // Set add items, duplicate items get replaced. func (s *Metadata) Set(k, v string) { for i, item := range s.Items { if item.Key == k { s.Items[i] = struct { Key string Value string }{
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Oct 24 04:05:19 UTC 2025 - 35K bytes - Viewed (0) -
docs/uk/docs/tutorial/metadata.md
* `url` (**обов'язково**): `str`з URL-адресою зовнішньої документації. ### Створення метаданих для тегів Спробуймо це на прикладі з тегами для `users` та `items`. Створіть метадані для своїх тегів і передайте їх у параметр `openapi_tags`: {* ../../docs_src/metadata/tutorial004.py hl[3:16,18] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Mar 19 17:09:57 UTC 2025 - 8.4K bytes - Viewed (0) -
docs_src/response_directly/tutorial001_py39.py
from pydantic import BaseModel class Item(BaseModel): title: str timestamp: datetime description: Union[str, None] = None app = FastAPI() @app.put("/items/{id}") def update_item(id: str, item: Item): json_compatible_item_data = jsonable_encoder(item)
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 505 bytes - Viewed (0) -
docs_src/path_params_numeric_validations/tutorial006_py39.py
from fastapi import FastAPI, Path, Query app = FastAPI() @app.get("/items/{item_id}") async def read_items( *, item_id: int = Path(title="The ID of the item to get", ge=0, le=1000), q: str, size: float = Query(gt=0, lt=10.5), ): results = {"item_id": item_id} if q: results.update({"q": q}) if size: results.update({"size": size})
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 397 bytes - Viewed (0) -
docs_src/query_param_models/tutorial002_an_py310.py
limit: int = Field(100, gt=0, le=100) offset: int = Field(0, ge=0) order_by: Literal["created_at", "updated_at"] = "created_at" tags: list[str] = [] @app.get("/items/") async def read_items(filter_query: Annotated[FilterParams, Query()]):Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Sep 17 18:54:10 UTC 2024 - 483 bytes - Viewed (0)