Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 105 for item_2 (0.08 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. 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_id
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 34.7K bytes
    - Click Count (0)
  2. 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)
  3. 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)
  4. 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)
  5. tests/test_infer_param_optionality.py

        if user_id is None:
            return [{"item_id": "i1", "user_id": "u1"}, {"item_id": "i2", "user_id": "u2"}]
        else:
            return [{"item_id": "i2", "user_id": user_id}]
    
    
    @item_router.get("/{item_id}")
    def get_item(item_id: str, user_id: str | None = None):
        if user_id is None:
            return {"item_id": item_id}
        else:
            return {"item_id": item_id, "user_id": user_id}
    
    
    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)
  6. src/test/java/org/codelibs/fess/dict/protwords/ProtwordsFileTest.java

            // Test getting non-existing item
            OptionalEntity<ProtwordsItem> item = protwordsFile.get(999);
            assertFalse(item.isPresent());
        }
    
        @Test
        public void test_get_withUnloadedData() {
            // Test getting item when data is not loaded yet
            OptionalEntity<ProtwordsItem> item = protwordsFile.get(1);
            assertTrue(item.isPresent());
            assertEquals("test1", item.get().getInput());
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 21.2K bytes
    - Click Count (0)
  7. 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)
  8. 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)
  9. docs/de/docs/tutorial/path-params.md

    Der Wert des Pfad-Parameters `item_id` wird Ihrer Funktion als das Argument `item_id` übergeben.
    
    Wenn Sie dieses Beispiel ausführen und auf [http://127.0.0.1:8000/items/foo](http://127.0.0.1:8000/items/foo) gehen, sehen Sie als <abbr title="Response – Antwort: Daten, die der Server zum anfragenden Client zurücksendet">Response</abbr>:
    
    ```JSON
    {"item_id":"foo"}
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 10K bytes
    - Click Count (0)
  10. docs/ko/docs/tutorial/path-params.md

    파이썬의 포맷 문자열 리터럴에서 사용되는 문법을 이용하여 경로 "매개변수" 또는 "변수"를 선언할 수 있습니다:
    
    {* ../../docs_src/path_params/tutorial001_py310.py hl[6:7] *}
    
    경로 매개변수 `item_id`의 값은 함수의 `item_id` 인자로 전달됩니다.
    
    그래서 이 예제를 실행하고 [http://127.0.0.1:8000/items/foo](http://127.0.0.1:8000/items/foo)로 이동하면, 다음 응답을 볼 수 있습니다:
    
    ```JSON
    {"item_id":"foo"}
    ```
    
    ## 타입이 있는 경로 매개변수 { #path-parameters-with-types }
    
    파이썬 표준 타입 어노테이션을 사용하여 함수에 있는 경로 매개변수의 타입을 선언할 수 있습니다:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 9.9K bytes
    - Click Count (0)
Back to Top