- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 146 for item_1 (0.05 seconds)
-
tests/test_schema_extra_examples.py
@app.get("/path_example/{item_id}") def path_example( item_id: str = Path( example="item_1", ), ): return item_id @app.get("/path_examples/{item_id}") def path_examples( item_id: str = Path( examples=["item_1", "item_2"], ), ): return item_idCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 34.7K bytes - Click Count (0) -
tests/test_openapi_examples.py
"description": "Path One Description", "value": "item_1", }, "Path Two": { "value": "item_2", }, }, ), ): return item_id @app.get("/query_examples/") def query_examples( data: str | None = Query( default=None, examples=[ "json_schema_query1",
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 16.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/crawler/transformer/FessTransformerTest.java
List<String> initialList = new ArrayList<>(); initialList.add("item1"); initialList.add("item2"); dataMap.put("items", initialList); // Add a new value transformer.putResultDataBody(dataMap, "items", "item3"); Object result = dataMap.get("items"); assertTrue(result instanceof Object[]); Object[] resultArray = (Object[]) result;
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 10.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/dict/stopwords/StopwordsItemTest.java
StopwordsItem item3 = new StopwordsItem(1, "word"); // Two items with null input should be equal assertTrue(item1.equals(item2)); // Item with null input should not equal item with non-null input assertFalse(item3.equals(item1)); assertFalse(item1.equals(item3)); // Symmetry assertTrue(item1.equals(item2));
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 11.4K bytes - Click Count (0) -
tests/test_infer_param_optionality.py
assert response.json() == [{"item_id": "i2", "user_id": "abc123"}] def test_get_item_1(): """Check that /items/{item_id} returns expected data""" response = client.get("/items/item01") assert response.status_code == 200, response.text assert response.json() == {"item_id": "item01"} def test_get_item_2(): """Check that /items/{item_id} returns expected data with user_id specified"""
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 13.2K bytes - Click Count (0) -
docs/bucket/replication/setup_ilm_expiry_replication.sh
chmod +x mc fi minio server --address 127.0.0.1:9001 "http://127.0.0.1:9001/tmp/multisitea/data/disterasure/xl{1...4}" \ "http://127.0.0.1:9002/tmp/multisitea/data/disterasure/xl{5...8}" >/tmp/sitea_1.log 2>&1 & minio server --address 127.0.0.1:9002 "http://127.0.0.1:9001/tmp/multisitea/data/disterasure/xl{1...4}" \ "http://127.0.0.1:9002/tmp/multisitea/data/disterasure/xl{5...8}" >/tmp/sitea_2.log 2>&1 &Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Sep 06 09:42:21 GMT 2024 - 12.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/dict/protwords/ProtwordsItemTest.java
assertTrue(item1.equals(item2)); // Item with null input should not equal item with non-null input assertFalse(item3.equals(item1)); assertFalse(item1.equals(item3)); // Symmetry assertTrue(item1.equals(item2)); assertTrue(item2.equals(item1)); } @Test public void test_toString() { // Test toString method
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 10.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/script/ScriptEngineTest.java
public void test_evaluate_withArrayParameter() { String template = "Items: ${items}"; Map<String, Object> paramMap = new HashMap<>(); String[] items = { "item1", "item2", "item3" }; paramMap.put("items", items); Object result = scriptEngine.evaluate(template, paramMap); assertTrue(result.toString().contains("item1")); } // Test evaluate method returns different object type
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 12.5K bytes - Click Count (0) -
docs/uk/docs/index.md
app = FastAPI() class Item(BaseModel): name: str price: float is_offer: bool | None = None @app.get("/") def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_id: int, q: str | None = None): return {"item_id": item_id, "q": q} @app.put("/items/{item_id}") def update_item(item_id: int, item: Item):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:27:41 GMT 2026 - 29.1K bytes - Click Count (0) -
docs/zh/docs/index.md
用浏览器打开 [http://127.0.0.1:8000/items/5?q=somequery](http://127.0.0.1:8000/items/5?q=somequery)。 你会看到如下 JSON 响应: ```JSON {"item_id": 5, "q": "somequery"} ``` 你已经创建了一个 API,它可以: * 在路径 `/` 和 `/items/{item_id}` 接收 HTTP 请求。 * 以上两个路径都接受 `GET` 操作(也称为 HTTP 方法)。 * 路径 `/items/{item_id}` 有一个应为 `int` 的路径参数 `item_id`。 * 路径 `/items/{item_id}` 有一个可选的 `str` 类型查询参数 `q`。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 20.7K bytes - Click Count (0)