Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 191 - 200 of 1,169 for item01 (0.04 seconds)

  1. docs_src/schema_extra_example/tutorial005_an_py310.py

    from fastapi import Body, FastAPI
    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(
                openapi_examples={
                    "normal": {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Aug 26 18:03:13 GMT 2023
    - 1.5K bytes
    - Click Count (0)
  2. docs/tr/docs/advanced/dataclasses.md

    3. `Author` dataclass'ı, `Item` dataclass'larından oluşan bir liste içerir.
    
    4. `Author` dataclass'ı, `response_model` parametresi olarak kullanılır.
    
    5. Request body olarak dataclass'larla birlikte diğer standart type annotation'ları da kullanabilirsiniz.
    
        Bu örnekte, `Item` dataclass'larından oluşan bir listedir.
    
    6. Burada `items` içeren bir dictionary döndürüyoruz; `items` bir dataclass listesi.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 4.5K bytes
    - Click Count (0)
  3. docs_src/query_params_str_validations/tutorial009_py310.py

    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(q: str | None = Query(default=None, alias="item-query")):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri May 13 23:38:22 GMT 2022
    - 281 bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/app/service/StemmerOverrideService.java

        }
    
        /**
         * Retrieves a specific stemmer override item by dictionary ID and item ID.
         *
         * @param dictId The ID of the stemmer override dictionary
         * @param id The unique ID of the stemmer override item to retrieve
         * @return An OptionalEntity containing the stemmer override item if found, empty otherwise
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  5. docs/ja/docs/tutorial/query-params.md

    この場合、以下にアクセスすると:
    
    ```
    http://127.0.0.1:8000/items/foo?short=1
    ```
    
    もしくは、
    
    ```
    http://127.0.0.1:8000/items/foo?short=True
    ```
    
    もしくは、
    
    ```
    http://127.0.0.1:8000/items/foo?short=true
    ```
    
    もしくは、
    
    ```
    http://127.0.0.1:8000/items/foo?short=on
    ```
    
    もしくは、
    
    ```
    http://127.0.0.1:8000/items/foo?short=yes
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 5.6K bytes
    - Click Count (0)
  6. docs_src/body_nested_models/tutorial007_py310.py

    class Image(BaseModel):
        url: HttpUrl
        name: str
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
        tags: set[str] = set()
        images: list[Image] | None = None
    
    
    class Offer(BaseModel):
        name: str
        description: str | None = None
        price: float
        items: list[Item]
    
    
    @app.post("/offers/")
    async def create_offer(offer: Offer):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 520 bytes
    - Click Count (0)
  7. docs/en/docs/index.md

    </details>
    
    ### Check it { #check-it }
    
    Open your browser at [http://127.0.0.1:8000/items/5?q=somequery](http://127.0.0.1:8000/items/5?q=somequery).
    
    You will see the JSON response as:
    
    ```JSON
    {"item_id": 5, "q": "somequery"}
    ```
    
    You already created an API that:
    
    * Receives HTTP requests in the _paths_ `/` and `/items/{item_id}`.
    * Both _paths_ take `GET` operations (also known as HTTP _methods_).
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 07 09:29:03 GMT 2026
    - 21.4K bytes
    - Click Count (0)
  8. docs_src/dependencies/tutorial008b_an_py310.py

    
    @app.get("/items/{item_id}")
    def get_item(item_id: str, username: Annotated[str, Depends(get_username)]):
        if item_id not in data:
            raise HTTPException(status_code=404, detail="Item not found")
        item = data[item_id]
        if item["owner"] != username:
            raise OwnerError(username)
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 775 bytes
    - Click Count (0)
  9. docs_src/dependencies/tutorial006_py310.py

        if x_key != "fake-super-secret-key":
            raise HTTPException(status_code=400, detail="X-Key header invalid")
        return x_key
    
    
    @app.get("/items/", dependencies=[Depends(verify_token), Depends(verify_key)])
    async def read_items():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 583 bytes
    - Click Count (0)
  10. docs/fr/docs/index.md

    ### Vérifier { #check-it }
    
    Ouvrez votre navigateur à l'adresse [http://127.0.0.1:8000/items/5?q=somequery](http://127.0.0.1:8000/items/5?q=somequery).
    
    Vous verrez la réponse JSON :
    
    ```JSON
    {"item_id": 5, "q": "somequery"}
    ```
    
    Vous avez déjà créé une API qui :
    
    * Reçoit des requêtes HTTP sur les _chemins_ `/` et `/items/{item_id}`.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 23.8K bytes
    - Click Count (0)
Back to Top