Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 161 - 170 of 1,267 for item (0.02 seconds)

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

  1. docs_src/query_params/tutorial003_py310.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/items/{item_id}")
    async def read_item(item_id: str, q: str | None = None, short: bool = False):
        item = {"item_id": item_id}
        if q:
            item.update({"q": q})
        if not short:
            item.update(
                {"description": "This is an amazing item that has a long description"}
            )
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 374 bytes
    - Click Count (0)
  2. .ci/os.ps1

    $ErrorActionPreference="Stop"
    $gradleInit = "C:\Users\$env:username\.gradle\init.d\"
    echo "Remove $gradleInit"
    Remove-Item -Recurse -Force $gradleInit -ErrorAction Ignore
    New-Item -ItemType directory -Path $gradleInit
    echo "Copy .ci/init.gradle to $gradleInit"
    Copy-Item .ci/init.gradle -Destination $gradleInit
    
    [Environment]::SetEnvironmentVariable("JAVA_HOME", $null, "Machine")
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Wed Jul 08 20:49:46 GMT 2020
    - 1.3K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/app/web/api/admin/dict/synonym/ApiAdminDictSynonymAction.java

        }
    
        /**
         * Retrieves a specific synonym dictionary item by ID.
         *
         * @param dictId the dictionary ID
         * @param id the ID of the synonym item to retrieve
         * @return JSON response containing the synonym dictionary item
         */
        // GET /api/admin/dict/synonym/setting/{dictId}/{id}
        @Execute
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  4. tests/test_response_model_as_return_annotation.py

    )
    def response_model_model1_annotation_model2_return_invalid_dict() -> Item:
        return {"name": "John"}
    
    
    @app.get(
        "/response_model_model1-annotation_model2-return_invalid_model", response_model=User
    )
    def response_model_model1_annotation_model2_return_invalid_model() -> Item:
        return Item(name="Foo", price=42.0)
    
    
    @app.get(
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 50.3K bytes
    - Click Count (0)
  5. tests/test_dump_json_fast_path.py

    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    
    class Item(BaseModel):
        name: str
        price: float
    
    
    app = FastAPI()
    
    
    @app.get("/default")
    def get_default() -> Item:
        return Item(name="widget", price=9.99)
    
    
    @app.get("/explicit", response_class=JSONResponse)
    def get_explicit() -> Item:
        return Item(name="widget", price=9.99)
    
    
    client = TestClient(app)
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 22 16:07:19 GMT 2026
    - 1.4K bytes
    - Click Count (0)
  6. tests/test_stream_json_validation_error.py

    from pydantic import BaseModel
    
    
    class Item(BaseModel):
        name: str
        price: float
    
    
    app = FastAPI()
    
    
    @app.get("/items/stream-invalid")
    async def stream_items_invalid() -> AsyncIterable[Item]:
        yield {"name": "valid", "price": 1.0}
        yield {"name": "invalid", "price": "not-a-number"}
    
    
    @app.get("/items/stream-invalid-sync")
    def stream_items_invalid_sync() -> Iterable[Item]:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 27 18:56:47 GMT 2026
    - 991 bytes
    - Click Count (0)
  7. docs_src/query_params/tutorial006_py310.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/items/{item_id}")
    async def read_user_item(
        item_id: str, needy: str, skip: int = 0, limit: int | None = None
    ):
        item = {"item_id": item_id, "needy": needy, "skip": skip, "limit": limit}
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 269 bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/app/web/api/admin/dict/stemmeroverride/ApiAdminDictStemmeroverrideAction.java

        }
    
        /**
         * Retrieves a specific stemmer override dictionary item by ID.
         *
         * @param dictId the dictionary ID
         * @param id the ID of the stemmer override item to retrieve
         * @return JSON response containing the stemmer override dictionary item
         */
        // GET /api/admin/dict/stemmerOverride/setting/{dictId}/{id}
        @Execute
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 9.8K bytes
    - Click Count (0)
  9. tests/test_pydanticv2_dataclasses_uuid_stringified_annotations.py

    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    
    @dataclass
    class Item:
        id: uuid.UUID
        name: str
        price: float
        tags: list[str] = field(default_factory=list)
        description: str | None = None
        tax: float | None = None
    
    
    app = FastAPI()
    
    
    @app.get("/item", response_model=Item)
    async def read_item():
        return {
            "id": uuid.uuid4(),
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Mar 16 10:16:48 GMT 2026
    - 1.1K bytes
    - Click Count (0)
  10. src/main/webapp/WEB-INF/view/admin/dict/synonym/admin_dict_synonym.jsp

                            <ol class="breadcrumb float-sm-right">
                                <li class="breadcrumb-item"><la:link href="/admin/dict">
                                    <la:message key="labels.dict_list_link"/>
                                </la:link></li>
                                <li class="breadcrumb-item"><la:message key="labels.dict_synonym_list_link"/></li>
                            </ol>
                        </div>
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Feb 23 08:03:44 GMT 2026
    - 10.2K bytes
    - Click Count (0)
Back to Top