- Sort Score
- Num 10 results
- Language All
Results 101 - 110 of 1,543 for item (0.02 seconds)
-
docs_src/app_testing/app_b_py310/main.py
raise HTTPException(status_code=404, detail="Item not found") return fake_db[item_id] @app.post("/items/") async def create_item(item: Item, x_token: str = Header()) -> Item: if x_token != fake_secret_token: raise HTTPException(status_code=400, detail="Invalid X-Token header") if item.id in fake_db: raise HTTPException(status_code=409, detail="Item already exists") fake_db[item.id] = item.model_dump()
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Feb 04 13:32:24 GMT 2026 - 1.1K bytes - Click Count (0) -
docs_src/body_updates/tutorial001_py310.py
} @app.get("/items/{item_id}", response_model=Item) async def read_item(item_id: str): return items[item_id] @app.put("/items/{item_id}", response_model=Item) async def update_item(item_id: str, item: Item): update_item_encoded = jsonable_encoder(item) items[item_id] = update_item_encoded
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Jan 07 14:11:31 GMT 2022 - 856 bytes - Click Count (0) -
docs_src/schema_extra_example/tutorial003_an_py310.py
from fastapi import Body, FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None @app.put("/items/{item_id}") async def update_item( item_id: int, item: Annotated[ Item, Body( examples=[ { "name": "Foo",
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Jun 30 18:25:16 GMT 2023 - 673 bytes - Click Count (0) -
fastapi/.agents/skills/fastapi/SKILL.md
description: str | None = None secret_key: str class Item(BaseModel): name: str description: str | None = None @app.get("/items/me", response_model=Item) async def get_item() -> Any: item = InternalItem( name="Foo", description="A very nice Item", secret_key="supersecret" ) return item ``` ## PerformanceCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 01 10:05:57 GMT 2026 - 10.1K bytes - Click Count (0) -
docs_src/server_sent_events/tutorial004_py310.py
from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str price: float items = [ Item(name="Plumbus", price=32.99), Item(name="Portal Gun", price=999.99), Item(name="Meeseeks Box", price=49.99), ] @app.get("/items/stream", response_class=EventSourceResponse) async def stream_items(
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 01 09:21:52 GMT 2026 - 795 bytes - Click Count (0) -
src/main/webapp/WEB-INF/view/admin/dict/stopwords/admin_dict_stopwords.jsp
<ol class="breadcrumb float-sm-right"> <li class="breadcrumb-item"><la:link href="/admin/dict"> <la:message key="labels.dict_list_link"/> </la:link></li> <li class="breadcrumb-item"><la:message key="labels.dict_stopwords_list_link"/></li> </ol> </div>Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Mon Feb 23 08:03:44 GMT 2026 - 10.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/storage/StorageItemTest.java
final StorageItem item = new StorageItem(null, null, false, 0L, null, null); assertNull(item.getName()); assertNull(item.getPath()); assertFalse(item.isDirectory()); assertEquals(0L, item.getSize()); assertNull(item.getLastModified()); assertNull(item.getEncodedId()); } public void test_emptyName() {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 12:58:11 GMT 2026 - 4.6K bytes - Click Count (0) -
docs_src/pydantic_v1_in_v2/tutorial002_an_py310.py
from fastapi import FastAPI from pydantic.v1 import BaseModel class Item(BaseModel): name: str description: str | None = None size: float app = FastAPI() @app.post("/items/") async def create_item(item: Item) -> Item:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Oct 11 16:45:54 GMT 2025 - 252 bytes - Click Count (0) -
internal/store/queuestore_test.go
t.Fatalf("unable to get multiple items; %v", err) } resultItems = append(resultItems, items...) continue } item, err := store.Get(key) if err != nil { t.Fatalf("unable to get item; %v", err) } resultItems = append(resultItems, item) } if !reflect.DeepEqual(resultItems, items) { t.Fatalf("expected item list: %v; but got %v", items, resultItems) } // Delete all
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 10.2K bytes - Click Count (0) -
docs_src/schema_extra_example/tutorial004_py310.py
app = FastAPI() class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None @app.put("/items/{item_id}") async def update_item( *, item_id: int, item: Item = Body( examples=[ { "name": "Foo", "description": "A very nice Item", "price": 35.4,
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Jul 01 16:43:29 GMT 2023 - 786 bytes - Click Count (0)