Search Options

Results per page
Sort
Preferred Languages
Advance

Results 681 - 690 of 1,205 for itens (0.02 sec)

  1. docs_src/path_operation_advanced_configuration/tutorial006_py39.py

            "size": len(raw_body),
            "content": {
                "name": "Maaaagic",
                "price": 42,
                "description": "Just kiddin', no magic here. ✨",
            },
        }
    
    
    @app.post(
        "/items/",
        openapi_extra={
            "requestBody": {
                "content": {
                    "application/json": {
                        "schema": {
                            "required": ["name", "price"],
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 1K bytes
    - Viewed (0)
  2. docs_src/body_nested_models/tutorial006_py39.py

    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
        tags: set[str] = set()
        images: Union[list[Image], None] = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item):
        results = {"item_id": item_id, "item": item}
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 519 bytes
    - Viewed (0)
  3. docs_src/body_nested_models/tutorial007_py310.py

        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):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Jan 07 14:11:31 UTC 2022
    - 520 bytes
    - Viewed (0)
  4. docs_src/extra_data_types/tutorial001_py39.py

    from datetime import datetime, time, timedelta
    from typing import Union
    from uuid import UUID
    
    from fastapi import Body, FastAPI
    
    app = FastAPI()
    
    
    @app.put("/items/{item_id}")
    async def read_items(
        item_id: UUID,
        start_datetime: datetime = Body(),
        end_datetime: datetime = Body(),
        process_after: timedelta = Body(),
        repeat_at: Union[time, None] = Body(default=None),
    ):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 755 bytes
    - Viewed (0)
  5. tests/test_additional_responses_response_class.py

                        "properties": {
                            "errors": {
                                "title": "Errors",
                                "type": "array",
                                "items": {"$ref": "#/components/schemas/Error"},
                            }
                        },
                    },
                }
            },
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  6. docs_src/dependencies/tutorial008c_py39.py

    
    class InternalError(Exception):
        pass
    
    
    def get_username():
        try:
            yield "Rick"
        except InternalError:
            print("Oops, we didn't raise again, Britney 😱")
    
    
    @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 Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 660 bytes
    - Viewed (0)
  7. src/main/webapp/WEB-INF/view/advance.jsp

    				<div class="container">
    					<la:link styleClass="navbar-brand d-inline-flex" href="/">
    						<img src="${fe:url('/images/logo-head.png')}"
    							alt="<la:message key="labels.header_brand_name" />"
    							class="align-items-center" />
    					</la:link>
    					<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar"
    						aria-expanded="false" aria-label="Toggle navigation">
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Nov 13 05:54:52 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  8. docs/zh-hant/docs/tutorial/first-steps.md

    這將是你建立所有 API 的主要互動點。
    
    ### 第三步:建立一個 *路徑操作*
    
    #### 路徑
    
    這裡的「路徑」指的是 URL 中自第一個 `/` 以後的部分。
    
    例如,在 URL 中:
    
    ```
    https://example.com/items/foo
    ```
    
    ……的路徑將會是:
    
    ```
    /items/foo
    ```
    
    /// info
    
    「路徑」也常被稱為「端點 endpoint」或「路由 route」。
    
    ///
    
    在建置 API 時,「路徑」是分離「關注點」和「資源」的主要方式。
    
    #### 操作
    
    這裡的「操作」指的是 HTTP 的「方法」之一。
    
    其中包括:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  9. docs/ko/docs/tutorial/first-steps.md

    ```
    
    </div>
    
    ### 3 단계: *경로 작동* 생성
    
    #### 경로
    
    여기서 "경로"는 첫 번째 `/`부터 시작하는 URL의 뒷부분을 의미합니다.
    
    그러므로 아래와 같은 URL에서:
    
    ```
    https://example.com/items/foo
    ```
    
    ...경로는 다음과 같습니다:
    
    ```
    /items/foo
    ```
    
    /// info | 정보
    
    "경로"는 일반적으로 "엔드포인트" 또는 "라우트"라고도 불립니다.
    
    ///
    
    API를 설계할 때 "경로"는 "관심사"와 "리소스"를 분리하기 위한 주요한 방법입니다.
    
    #### 작동
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  10. docs_src/additional_responses/tutorial004_py310.py

    responses = {
        404: {"description": "Item not found"},
        302: {"description": "The item was moved"},
        403: {"description": "Not enough privileges"},
    }
    
    
    app = FastAPI()
    
    
    @app.get(
        "/items/{item_id}",
        response_model=Item,
        responses={**responses, 200: {"content": {"image/png": {}}}},
    )
    async def read_item(item_id: str, img: bool | None = None):
        if img:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 08:55:32 UTC 2025
    - 669 bytes
    - Viewed (0)
Back to top