Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 301 - 305 of 305 for item_1 (0.05 seconds)

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

  1. fastapi/applications.py

            from pydantic import BaseModel
    
            class Item(BaseModel):
                name: str
                description: str | None = None
    
            app = FastAPI()
    
            @app.put("/items/{item_id}")
            def replace_item(item_id: str, item: Item):
                return {"message": "Item replaced", "id": item_id}
            ```
            """
            return self.router.put(
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 176.3K bytes
    - Click Count (0)
  2. docs/ja/docs/deployment/docker.md

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: Union[str, None] = None):
        return {"item_id": item_id, "q": q}
    ```
    
    ### Dockerfile
    
    同じプロジェクト・ディレクトリに`Dockerfile`というファイルを作成します:
    
    ```{ .dockerfile .annotate }
    # (1)
    FROM python:3.9
    
    # (2)
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Aug 12 21:47:53 GMT 2024
    - 44.3K bytes
    - Click Count (0)
  3. tests/associations_has_many_test.go

    	tx := DB.Session(&gorm.Session{})
    	tx.Migrator().DropTable(&ItemContent{}, &Item{})
    	tx.AutoMigrate(&ItemContent{}, &Item{})
    
    	item := Item{
    		Logo: "logo",
    		Contents: []ItemContent{
    			{Name: "name", LanguageCode: "en"},
    			{Name: "ar name", LanguageCode: "ar"},
    		},
    	}
    	if err := tx.Create(&item).Error; err != nil {
    		t.Fatalf("failed to create items, got error: %v", err)
    	}
    
    	// test Replace
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Fri Sep 12 04:33:27 GMT 2025
    - 16.3K bytes
    - Click Count (0)
  4. docs/changelogs/changelog_2x.md

     * Add ALPN support. Maven will use ALPN on OpenJDK 8.
     * Update NPN dependency to target `jdk7u60-b13` and `Oracle jdk7u55-b13`.
     * Ensure SPDY variants support zero-length DELETE and POST.
     * Prevent leaking a cache item's InputStreams when metadata read fails.
     * Use a string to identify TLS versions in routes.
     * Add frame logger for HTTP/2.
     * Replacing `httpMinorVersion` with `Protocol`. Expose HTTP/1.0 as a potential protocol.
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 26.6K bytes
    - Click Count (0)
  5. docs/en/docs/release-notes.md

    
    @app.get("/items/")
    def read_items(user: CurrentUser):
        ...
    
    
    @app.post("/items/")
    def create_item(user: CurrentUser, item: Item):
        ...
    
    
    @app.get("/items/{item_id}")
    def read_item(user: CurrentUser, item_id: int):
        ...
    
    
    @app.delete("/items/{item_id}")
    def delete_item(user: CurrentUser, item_id: int):
        ...
    ```
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 19:06:15 GMT 2025
    - 586.7K bytes
    - Click Count (0)
Back to Top