- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 42 for create_items (0.14 seconds)
-
fastapi/.agents/skills/fastapi/SKILL.md
@app.post("/items/") async def create_item(item: Item, project_id: Annotated[int, Query()]): ... ``` instead of this: ```python # DO NOT DO THIS class Item(BaseModel): name: str = ... description: str | None = None price: float = Field(..., gt=0) app = FastAPI() @app.post("/items/") async def create_item(item: Item, project_id: Annotated[int, Query(...)]): ...
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 01 10:05:57 GMT 2026 - 10.1K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/admin/systeminfo/AdminSysteminfoAction.java
return createItem(key, System.getProperty(key)); } /** * Creates a key-value item map for display. * * @param label the item label * @param value the item value * @return map containing the formatted key-value pair */ protected static Map<String, String> createItem(final Object label, final Object value) {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 9.7K bytes - Click Count (0) -
docs_src/response_status_code/tutorial001_py310.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 145 bytes - Click Count (0) -
docs_src/strict_content_type/tutorial001_py310.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Feb 23 17:45:20 GMT 2026 - 231 bytes - Click Count (0) -
docs_src/response_model/tutorial001_01_py310.py
app = FastAPI() class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None tags: list[str] = [] @app.post("/items/") async def create_item(item: Item) -> Item: return item @app.get("/items/") async def read_items() -> list[Item]: return [ Item(name="Portal Gun", price=42.0), Item(name="Plumbus", price=32.0),
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Jan 07 13:45:48 GMT 2023 - 469 bytes - Click Count (0) -
docs_src/path_operation_advanced_configuration/tutorial006_py310.py
"description": {"type": "string"}, }, } } }, "required": True, }, }, ) async def create_item(request: Request): raw_body = await request.body() data = magic_data_reader(raw_body)
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 1K bytes - Click Count (0) -
docs_src/handling_errors/tutorial005_py310.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 626 bytes - Click Count (0) -
docs_src/path_operation_advanced_configuration/tutorial007_py310.py
@app.post( "/items/", openapi_extra={ "requestBody": { "content": {"application/x-yaml": {"schema": Item.model_json_schema()}}, "required": True, }, }, ) async def create_item(request: Request): raw_body = await request.body() try: data = yaml.safe_load(raw_body) except yaml.YAMLError: raise HTTPException(status_code=422, detail="Invalid YAML") try:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 797 bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/admin/webauth/AdminWebauthAction.java
itemList.add(createItem(ComponentUtil.getMessageManager().getMessage(locale, "labels.webauth_scheme_basic"), Constants.BASIC)); itemList.add(createItem(ComponentUtil.getMessageManager().getMessage(locale, "labels.webauth_scheme_digest"), Constants.DIGEST)); itemList.add(createItem(ComponentUtil.getMessageManager().getMessage(locale, "labels.webauth_scheme_ntlm"), Constants.NTLM));
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Nov 20 13:56:35 GMT 2025 - 19.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/dict/stopwords/StopwordsItemTest.java
@Test public void test_createMode() { // Test special behavior when id is 0 (create mode) StopwordsItem createItem = new StopwordsItem(0, "newword"); assertTrue(createItem.isUpdated()); assertEquals("newword", createItem.getNewInput()); assertEquals("newword", createItem.toLineString()); // Non-zero id should not auto-set newInputCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 11.4K bytes - Click Count (0)