Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for ge (0.04 sec)

  1. tests/main.py

        return item_id
    
    
    @app.get("/path/param-ge-int/{item_id}")
    def get_path_param_ge_int(item_id: int = Path(ge=3)):
        return item_id
    
    
    @app.get("/path/param-lt-gt-int/{item_id}")
    def get_path_param_lt_gt_int(item_id: int = Path(lt=3, gt=1)):
        return item_id
    
    
    @app.get("/path/param-le-ge-int/{item_id}")
    def get_path_param_le_ge_int(item_id: int = Path(le=3, ge=1)):
        return item_id
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 21:56:59 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. .gitignore

    # Thread dumps for troubleshooting
    *.threaddump
    # ps output for cleaning up leaking Java processes
    *.psoutput
    
    # oh-my-zsh gradle plugin
    .gradletasknamecache
    
    # Added GE support maven support to the maven build in .teamcity, per the GE docs, this dir is NOT to be committed
    .teamcity/.mvn/.develocity/
    /discoclient.properties
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Oct 16 09:50:46 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  3. docs/em/docs/tutorial/path-params-numeric-validations.md

    ```Python hl_lines="7"
    {!../../docs_src/path_params_numeric_validations/tutorial003.py!}
    ```
    
    ## ๐Ÿ”ข ๐Ÿ”ฌ: ๐Ÿ‘‘ ๐ŸŒ˜ โš–๏ธ ๐ŸŒ“
    
    โฎ๏ธ `Query` & `Path` (& ๐ŸŽ ๐Ÿ‘† ๐Ÿ”œ ๐Ÿ‘€ โช) ๐Ÿ‘† ๐Ÿ’ช ๐Ÿ“ฃ ๐Ÿ”ข โš›.
    
    ๐Ÿ“ฅ, โฎ๏ธ `ge=1`, `item_id` ๐Ÿ”œ ๐Ÿ’ช ๐Ÿ”ข ๐Ÿ”ข "`g`๐Ÿ…พ ๐ŸŒ˜ โš–๏ธ `e`๐Ÿ…พ" `1`.
    
    ```Python hl_lines="8"
    {!../../docs_src/path_params_numeric_validations/tutorial004.py!}
    ```
    
    ## ๐Ÿ”ข ๐Ÿ”ฌ: ๐ŸŒ˜ ๐ŸŒ˜ & ๐ŸŒ˜ ๐ŸŒ˜ โš–๏ธ ๐ŸŒ“
    
    ๐ŸŽ โœ”:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. docs_src/query_param_models/tutorial002_an_py310.py

    from pydantic import BaseModel, Field
    
    app = FastAPI()
    
    
    class FilterParams(BaseModel):
        model_config = {"extra": "forbid"}
    
        limit: int = Field(100, gt=0, le=100)
        offset: int = Field(0, ge=0)
        order_by: Literal["created_at", "updated_at"] = "created_at"
        tags: list[str] = []
    
    
    @app.get("/items/")
    async def read_items(filter_query: Annotated[FilterParams, Query()]):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 483 bytes
    - Viewed (0)
  5. docs_src/path_params_numeric_validations/tutorial006_an.py

    from typing_extensions import Annotated
    
    app = FastAPI()
    
    
    @app.get("/items/{item_id}")
    async def read_items(
        *,
        item_id: Annotated[int, Path(title="The ID of the item to get", ge=0, le=1000)],
        q: str,
        size: Annotated[float, Query(gt=0, lt=10.5)],
    ):
        results = {"item_id": item_id}
        if q:
            results.update({"q": q})
        if size:
            results.update({"size": size})
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Aug 28 23:39:15 UTC 2024
    - 457 bytes
    - Viewed (0)
  6. docs_src/query_param_models/tutorial002_pv1_an.py

    from typing_extensions import Annotated, Literal
    
    app = FastAPI()
    
    
    class FilterParams(BaseModel):
        class Config:
            extra = "forbid"
    
        limit: int = Field(100, gt=0, le=100)
        offset: int = Field(0, ge=0)
        order_by: Literal["created_at", "updated_at"] = "created_at"
        tags: List[str] = []
    
    
    @app.get("/items/")
    async def read_items(filter_query: Annotated[FilterParams, Query()]):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 522 bytes
    - Viewed (0)
  7. docs_src/body_multiple_params/tutorial001_an_py310.py

        name: str
        description: str | None = None
        price: float
        tax: float | None = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(
        item_id: Annotated[int, Path(title="The ID of the item to get", ge=0, le=1000)],
        q: str | None = None,
        item: Item | None = None,
    ):
        results = {"item_id": item_id}
        if q:
            results.update({"q": q})
        if item:
            results.update({"item": item})
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 579 bytes
    - Viewed (0)
  8. docs/ko/docs/tutorial/path-params-numeric-validations.md

    ```Python hl_lines="7"
    {!../../docs_src/path_params_numeric_validations/tutorial003.py!}
    ```
    
    ## ์ˆซ์ž ๊ฒ€์ฆ: ํฌ๊ฑฐ๋‚˜ ๊ฐ™์Œ
    
    `Query`์™€ `Path`(๋‚˜์ค‘์— ๋ณผ ๋‹ค๋ฅธ ๊ฒƒ๋“ค๋„)๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋ฌธ์ž์—ด ๋ฟ๋งŒ ์•„๋‹ˆ๋ผ ์ˆซ์ž์˜ ์ œ์•ฝ์„ ์„ ์–ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
    
    ์—ฌ๊ธฐ์„œ `ge=1`์ธ ๊ฒฝ์šฐ, `item_id`๋Š” `1`๋ณด๋‹ค "ํฌ๊ฑฐ๋‚˜(`g`reater) ๊ฐ™์€(`e`qual)" ์ •์ˆ˜ํ˜• ์ˆซ์ž์—ฌ์•ผ ํ•ฉ๋‹ˆ๋‹ค.
    
    ```Python hl_lines="8"
    {!../../docs_src/path_params_numeric_validations/tutorial004.py!}
    ```
    
    ## ์ˆซ์ž ๊ฒ€์ฆ: ํฌ๊ฑฐ๋‚˜ ๊ฐ™์Œ ๋ฐ ์ž‘๊ฑฐ๋‚˜ ๊ฐ™์Œ
    
    ๋™์ผํ•˜๊ฒŒ ์ ์šฉ๋ฉ๋‹ˆ๋‹ค:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  9. docs_src/body_multiple_params/tutorial001_an_py39.py

        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(
        item_id: Annotated[int, Path(title="The ID of the item to get", ge=0, le=1000)],
        q: Union[str, None] = None,
        item: Union[Item, None] = None,
    ):
        results = {"item_id": item_id}
        if q:
            results.update({"q": q})
        if item:
            results.update({"item": item})
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 610 bytes
    - Viewed (0)
  10. docs/zh/docs/tutorial/path-params-numeric-validations.md

    ```Python hl_lines="7"
    {!../../docs_src/path_params_numeric_validations/tutorial003.py!}
    ```
    
    ## ๆ•ฐๅ€ผๆ ก้ชŒ๏ผšๅคงไบŽ็ญ‰ไบŽ
    
    ไฝฟ็”จ `Query` ๅ’Œ `Path`๏ผˆไปฅๅŠไฝ ๅฐ†ๅœจๅŽ้ข็œ‹ๅˆฐ็š„ๅ…ถไป–็ฑป๏ผ‰ๅฏไปฅๅฃฐๆ˜Žๅญ—็ฌฆไธฒ็บฆๆŸ๏ผŒไฝ†ไนŸๅฏไปฅๅฃฐๆ˜Žๆ•ฐๅ€ผ็บฆๆŸใ€‚
    
    ๅƒไธ‹้ข่ฟ™ๆ ท๏ผŒๆทปๅŠ  `ge=1` ๅŽ๏ผŒ`item_id` ๅฐ†ๅฟ…้กปๆ˜ฏไธ€ไธชๅคงไบŽ๏ผˆ`g`reater than๏ผ‰ๆˆ–็ญ‰ไบŽ๏ผˆ`e`qual๏ผ‰`1` ็š„ๆ•ดๆ•ฐใ€‚
    
    ```Python hl_lines="8"
    {!../../docs_src/path_params_numeric_validations/tutorial004.py!}
    ```
    
    ## ๆ•ฐๅ€ผๆ ก้ชŒ๏ผšๅคงไบŽๅ’ŒๅฐไบŽ็ญ‰ไบŽ
    
    ๅŒๆ ท็š„่ง„ๅˆ™้€‚็”จไบŽ๏ผš
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top