- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 834 for ITEM (0.03 sec)
-
tests/test_tutorial/test_path_operation_configurations/test_tutorial005.py
}, "summary": "Create an item", "description": "Create an item with all the information:\n\n- **name**: each item must have a name\n- **description**: a long description\n- **price**: required\n- **tax**: if the item doesn't have tax, you can omit this\n- **tags**: a set of unique tag strings for this item", "operationId": "create_item_items__post",
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Sep 28 04:14:40 UTC 2023 - 8.7K bytes - Viewed (0) -
docs_src/path_operation_configuration/tutorial005.py
app = FastAPI() class Item(BaseModel): name: str description: Union[str, None] = None price: float tax: Union[float, None] = None tags: Set[str] = set() @app.post( "/items/", response_model=Item, summary="Create an item", response_description="The created item", ) async def create_item(item: Item): """ Create an item with all the information:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat May 14 11:59:59 UTC 2022 - 741 bytes - Viewed (0) -
internal/store/queuestore.go
} buf.Reset() if err != nil { return err } // Increment the item count. store.entries[key.String()] = time.Now().UnixNano() return } // write - writes an item to the directory. func (store *QueueStore[I]) write(key Key, item I) error { // Marshalls the item. eventData, err := json.Marshal(item) if err != nil { return err } return store.writeBytes(key, eventData) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 23:06:30 UTC 2024 - 8.6K bytes - Viewed (0) -
tests/test_tutorial/test_body_multiple_params/test_tutorial003_an.py
"title": "Body_update_item_items__item_id__put", "required": ["item", "user", "importance"], "type": "object", "properties": { "item": {"$ref": "#/components/schemas/Item"}, "user": {"$ref": "#/components/schemas/User"},
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 9.4K bytes - Viewed (0) -
tests/test_tutorial/test_body_multiple_params/test_tutorial003_an_py310.py
"title": "Body_update_item_items__item_id__put", "required": ["item", "user", "importance"], "type": "object", "properties": { "item": {"$ref": "#/components/schemas/Item"}, "user": {"$ref": "#/components/schemas/User"},
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 9.5K bytes - Viewed (0) -
tests/test_tutorial/test_body_multiple_params/test_tutorial003_an_py39.py
"title": "Body_update_item_items__item_id__put", "required": ["item", "user", "importance"], "type": "object", "properties": { "item": {"$ref": "#/components/schemas/Item"}, "user": {"$ref": "#/components/schemas/User"},
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 9.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/dict/kuromoji/KuromojiFile.java
return new KuromojiItem(item.getId(), item.getNewToken(), item.getNewSegmentation(), item.getNewReading(), item.getNewPos()); } return null; } finally { item.setNewToken(null); } } catch (final IOException e) {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:11:58 UTC 2024 - 9.7K bytes - Viewed (0) -
docs_src/app_testing/app_b_an/main.py
raise HTTPException(status_code=404, detail="Item not found") return fake_db[item_id] @app.post("/items/", response_model=Item) async def create_item(item: Item, x_token: Annotated[str, Header()]): 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
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Aug 15 22:31:16 UTC 2024 - 1.2K 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 Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Oct 12 09:44:57 UTC 2024 - 19.7K bytes - Viewed (0) -
tests/test_tutorial/test_schema_extra_example/test_tutorial004_an.py
], "title": "Item", "examples": [ { "name": "Foo", "description": "A very nice Item",
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 6.9K bytes - Viewed (0)