Search Options

Results per page
Sort
Preferred Languages
Advance

Results 821 - 830 of 1,383 for Items (0.02 sec)

  1. docs_src/body_multiple_params/tutorial004.py

        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
    
    
    class User(BaseModel):
        username: str
        full_name: Union[str, None] = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(
        *,
        item_id: int,
        item: Item,
        user: User,
        importance: int = Body(gt=0),
        q: Union[str, None] = None,
    ):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Mar 10 18:49:18 UTC 2023
    - 653 bytes
    - Viewed (0)
  2. docs_src/dependencies/tutorial008d.py

        pass
    
    
    def get_username():
        try:
            yield "Rick"
        except InternalError:
            print("We don't swallow the internal error here, we raise again 😎")
            raise
    
    
    @app.get("/items/{item_id}")
    def get_item(item_id: str, username: str = Depends(get_username)):
        if item_id == "portal-gun":
            raise InternalError(
                f"The portal gun is too dangerous to be owned by {username}"
            )
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 694 bytes
    - Viewed (0)
  3. docs_src/sql_databases_peewee/sql_app/models.py

        class Meta:
            database = db
    
    
    class Item(peewee.Model):
        title = peewee.CharField(index=True)
        description = peewee.CharField(index=True)
        owner = peewee.ForeignKeyField(User, backref="items")
    
        class Meta:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 465 bytes
    - Viewed (0)
  4. docs/em/docs/tutorial/handling-errors.md

    ```Python hl_lines="11"
    {!../../docs_src/handling_errors/tutorial001.py!}
    ```
    
    ### πŸ“‰ πŸ“¨
    
    πŸš₯ πŸ‘©β€πŸ’» πŸ“¨ `http://example.com/items/foo` ( `item_id` `"foo"`), πŸ‘ˆ πŸ‘©β€πŸ’» πŸ”œ πŸ“¨ πŸ‡ΊπŸ‡ΈπŸ” πŸ‘” πŸ“Ÿ 2️⃣0️⃣0️⃣, & 🎻 πŸ“¨:
    
    ```JSON
    {
      "item": "The Foo Wrestlers"
    }
    ```
    
    βœ‹οΈ πŸš₯ πŸ‘©β€πŸ’» πŸ“¨ `http://example.com/items/bar` (🚫-🚫 `item_id` `"bar"`), πŸ‘ˆ πŸ‘©β€πŸ’» πŸ”œ πŸ“¨ πŸ‡ΊπŸ‡ΈπŸ” πŸ‘” πŸ“Ÿ 4️⃣0️⃣4️⃣ ("🚫 πŸ”Ž" ❌), & 🎻 πŸ“¨:
    
    ```JSON
    {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  5. docs/ko/docs/tutorial/first-steps.md

    ```
    
    </div>
    
    ### 3 단계: *경둜 μž‘λ™* 생성
    
    #### 경둜
    
    μ—¬κΈ°μ„œ "경둜"λŠ” 첫 번째 `/`λΆ€ν„° μ‹œμž‘ν•˜λŠ” URL의 뒷뢀뢄을 μ˜λ―Έν•©λ‹ˆλ‹€.
    
    κ·ΈλŸ¬λ―€λ‘œ μ•„λž˜μ™€ 같은 URLμ—μ„œ:
    
    ```
    https://example.com/items/foo
    ```
    
    ...κ²½λ‘œλŠ” λ‹€μŒκ³Ό κ°™μŠ΅λ‹ˆλ‹€:
    
    ```
    /items/foo
    ```
    
    /// info | "정보"
    
    "경둜"λŠ” 일반적으둜 "μ—”λ“œν¬μΈνŠΈ" λ˜λŠ” "라우트"라고도 λΆˆλ¦½λ‹ˆλ‹€.
    
    ///
    
    APIλ₯Ό 섀계할 λ•Œ "경둜"λŠ” "관심사"와 "λ¦¬μ†ŒμŠ€"λ₯Ό λΆ„λ¦¬ν•˜κΈ° μœ„ν•œ μ£Όμš”ν•œ λ°©λ²•μž…λ‹ˆλ‹€.
    
    #### μž‘λ™
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  6. docs/en/docs/css/custom.css

    a.announce-link:visited {
      color: #fff;
    }
    
    a.announce-link:hover {
      color: var(--md-accent-fg-color);
    }
    
    .announce-wrapper {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      align-items: center;
    }
    
    .announce-wrapper div.item {
      display: none;
    }
    
    .announce-wrapper .sponsor-badge {
      display: block;
      position: absolute;
      top: -10px;
      right: 0;
      font-size: 0.5rem;
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Jul 17 02:12:29 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  7. tests/test_filter_pydantic_sub_model_pv2.py

                        "properties": {
                            "detail": {
                                "title": "Detail",
                                "type": "array",
                                "items": {"$ref": "#/components/schemas/ValidationError"},
                            }
                        },
                    },
                    "ModelA": {
                        "title": "ModelA",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_request_form_models/test_tutorial002_pv1_an.py

                        "properties": {
                            "loc": {
                                "title": "Location",
                                "type": "array",
                                "items": {
                                    "anyOf": [{"type": "string"}, {"type": "integer"}]
                                },
                            },
                            "msg": {"title": "Message", "type": "string"},
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 06 17:31:18 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_request_files/test_tutorial001_02_py310.py

                        "properties": {
                            "detail": {
                                "title": "Detail",
                                "type": "array",
                                "items": {"$ref": "#/components/schemas/ValidationError"},
                            }
                        },
                    },
                    "ValidationError": {
                        "title": "ValidationError",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  10. tests/test_response_class_no_mediatype.py

                        "properties": {
                            "errors": {
                                "title": "Errors",
                                "type": "array",
                                "items": {"$ref": "#/components/schemas/Error"},
                            }
                        },
                    },
                }
            },
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 3.3K bytes
    - Viewed (0)
Back to top