- Sort Score
- Result 10 results
- Languages All
Results 561 - 570 of 2,167 for myitem (0.04 sec)
-
docs_src/body_updates/tutorial002_py39.py
} @app.get("/items/{item_id}", response_model=Item) async def read_item(item_id: str): return items[item_id] @app.patch("/items/{item_id}", response_model=Item) async def update_item(item_id: str, item: Item): stored_item_data = items[item_id] stored_item_model = Item(**stored_item_data) update_data = item.model_dump(exclude_unset=True)
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 1K bytes - Viewed (0) -
docs_src/additional_status_codes/tutorial001_py39.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 684 bytes - Viewed (0) -
docs_src/body_multiple_params/tutorial001_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 = Path(title="The ID of the item to get", ge=0, le=1000), q: Union[str, None] = None, item: Union[Item, None] = None, ): results = {"item_id": item_id}
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 596 bytes - Viewed (0) -
tests/test_openapi_separate_input_output_schemas.py
@app.post("/items/", responses={402: {"model": Item}}) def create_item(item: Item) -> Item: return item @app.post("/items-list/") def create_item_list(item: list[Item]): return item @app.get("/items/") def read_items() -> list[Item]: return [ Item( name="Portal Gun",Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 26.6K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/Hashing.java
* dependent on the hash codes they produce will fail sooner. */ @SuppressWarnings("GoodTime") // reading system time without TimeSource static final int GOOD_FAST_HASH_SEED = (int) System.currentTimeMillis(); /** * Returns a hash function implementing the <a * href="https://github.com/aappleby/smhasher/blob/master/src/MurmurHash3.cpp">32-bit murmur3Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 29.8K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/AbstractFutureState.java
static final boolean GENERATE_CANCELLATION_CAUSES; static { // System.getProperty may throw if the security policy does not permit access. boolean generateCancellationCauses; try { generateCancellationCauses = parseBoolean(System.getProperty("guava.concurrent.generate_cancellation_cause", "false")); } catch (SecurityException e) {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 34.8K bytes - Viewed (0) -
docs/es/docs/tutorial/body-multiple-params.md
Supongamos que solo tienes un único parámetro de cuerpo `item` de un modelo Pydantic `Item`. Por defecto, **FastAPI** esperará su cuerpo directamente. Pero si deseas que espere un JSON con una clave `item` y dentro de ella los contenidos del modelo, como lo hace cuando declaras parámetros de cuerpo extra, puedes usar el parámetro especial `Body` `embed`: ```Python item: Item = Body(embed=True) ``` como en:
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 16 16:33:45 UTC 2025 - 5.2K bytes - Viewed (0) -
docs/en/overrides/main.html
<div class="announce-wrapper"> <div id="announce-left"> <div class="item"> <a class="announce-link" href="https://fastapicloud.com" target="_blank"> <span class="twemoji"> {% include ".icons/material/cloud-arrow-up.svg" %} </span> Join the <strong>FastAPI Cloud</strong> waiting list 🚀 </a> </div> <div class="item"> <a class="announce-link" href="https://x.com/fastapi" target="_blank">Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Dec 01 20:06:57 UTC 2025 - 5.5K bytes - Viewed (0) -
docs_src/body_updates/tutorial002_py310.py
} @app.get("/items/{item_id}", response_model=Item) async def read_item(item_id: str): return items[item_id] @app.patch("/items/{item_id}", response_model=Item) async def update_item(item_id: str, item: Item): stored_item_data = items[item_id] stored_item_model = Item(**stored_item_data) update_data = item.model_dump(exclude_unset=True)
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 1022 bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java
void testReadDataWireFormatWithOffset() { byte[] fullBuffer = new byte[200]; byte[] dfsData = createValidDfsReferralBuffer(); int offset = 50; System.arraycopy(dfsData, 0, fullBuffer, offset, dfsData.length); int bytesRead = response.readDataWireFormat(fullBuffer, offset, dfsData.length); assertTrue(bytesRead > 0);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0)