Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 501 - 510 of 1,089 for itens (0.02 seconds)

  1. docs_src/path_params_numeric_validations/tutorial003_py310.py

    from fastapi import FastAPI, Path
    
    app = FastAPI()
    
    
    @app.get("/items/{item_id}")
    async def read_items(*, item_id: int = Path(title="The ID of the item to get"), q: str):
        results = {"item_id": item_id}
        if q:
            results.update({"q": q})
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 268 bytes
    - Click Count (0)
  2. docs_src/body_multiple_params/tutorial003_py310.py

        name: str
        description: str | None = None
        price: float
        tax: float | None = None
    
    
    class User(BaseModel):
        username: str
        full_name: str | None = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item, user: User, importance: int = Body()):
        results = {"item_id": item_id, "item": item, "user": user, "importance": importance}
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri May 13 23:38:22 GMT 2022
    - 504 bytes
    - Click Count (0)
  3. docs_src/schema_extra_example/tutorial003_an_py310.py

    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(
        item_id: int,
        item: Annotated[
            Item,
            Body(
                examples=[
                    {
                        "name": "Foo",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 673 bytes
    - Click Count (0)
  4. docs_src/path_params_numeric_validations/tutorial004_py310.py

    from fastapi import FastAPI, Path
    
    app = FastAPI()
    
    
    @app.get("/items/{item_id}")
    async def read_items(
        *, item_id: int = Path(title="The ID of the item to get", ge=1), q: str
    ):
        results = {"item_id": item_id}
        if q:
            results.update({"q": q})
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 280 bytes
    - Click Count (0)
  5. docs_src/header_param_models/tutorial002_py310.py

        model_config = {"extra": "forbid"}
    
        host: str
        save_data: bool
        if_modified_since: str | None = None
        traceparent: str | None = None
        x_tag: list[str] = []
    
    
    @app.get("/items/")
    async def read_items(headers: CommonHeaders = Header()):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Sep 17 18:54:10 GMT 2024
    - 392 bytes
    - Click Count (0)
  6. docs_src/path_params_numeric_validations/tutorial005_py310.py

    from fastapi import FastAPI, Path
    
    app = FastAPI()
    
    
    @app.get("/items/{item_id}")
    async def read_items(
        *,
        item_id: int = Path(title="The ID of the item to get", gt=0, le=1000),
        q: str,
    ):
        results = {"item_id": item_id}
        if q:
            results.update({"q": q})
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 298 bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/script/groovy/GroovyEngineTest.java

            final Map<String, Object> params = new HashMap<>();
            final String[] items = { "apple", "banana", "cherry" };
            params.put("items", items);
    
            assertEquals(3, groovyEngine.evaluate("return items.length", params));
            assertEquals("banana", groovyEngine.evaluate("return items[1]", params));
        }
    
        // ===== DI Container Integration Tests =====
    
        /**
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 06:03:38 GMT 2026
    - 29.1K bytes
    - Click Count (0)
  8. docs/zh-hant/docs/tutorial/query-params-str-validations.md

    {* ../../docs_src/query_params_str_validations/tutorial015_an_py310.py ln[16:19] hl[17] *}
    
    #### 隨機項目 { #a-random-item }
    
    透過 `data.items()` 我們會得到一個包含每個字典項目鍵值對 tuple 的 <dfn title="可以用 for 迴圈遍歷的東西,例如 list、set 等等。">iterable object</dfn>。
    
    我們用 `list(data.items())` 把這個可疊代物件轉成正式的 `list`。
    
    接著用 `random.choice()` 從清單中取得一個「隨機值」,也就是一個 `(id, name)` 的 tuple。可能像是 `("imdb-tt0371724", "The Hitchhiker's Guide to the Galaxy")`。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 14.8K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/app/web/api/admin/dict/kuromoji/ApiAdminDictKuromojiAction.java

    import org.lastaflute.web.response.StreamResponse;
    
    import jakarta.annotation.Resource;
    
    /**
     * API action for admin Kuromoji dictionary management.
     * Provides REST endpoints for managing Kuromoji dictionary items in the Fess search engine.
     */
    public class ApiAdminDictKuromojiAction extends FessApiAdminAction {
    
        /**
         * Default constructor.
         */
        public ApiAdminDictKuromojiAction() {
            super();
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/app/web/admin/general/AdminGeneralAction.java

        private List<String> getDayItems() {
            final List<String> items = new ArrayList<>();
            for (int i = 0; i < 32; i++) {
                items.add(Integer.toString(i));
            }
            for (int i = 40; i < 370; i += 10) {
                items.add(Integer.toString(i));
            }
            items.add(Integer.toString(365));
            return items;
        }
    
        private boolean isRagSectionVisible() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 05:54:31 GMT 2026
    - 27.2K bytes
    - Click Count (0)
Back to Top