Search Options

Results per page
Sort
Preferred Languages
Advance

Results 311 - 320 of 1,333 for item01 (0.1 sec)

  1. docs_src/schema_extra_example/tutorial004_an.py

    from typing_extensions import Annotated
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(
        *,
        item_id: int,
        item: Annotated[
            Item,
            Body(
                examples=[
                    {
                        "name": "Foo",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Jul 01 16:43:29 UTC 2023
    - 965 bytes
    - Viewed (0)
  2. docs_src/body_fields/tutorial001_an_py39.py

    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = Field(
            default=None, title="The description of the item", max_length=300
        )
        price: float = Field(gt=0, description="The price must be greater than zero")
        tax: Union[float, None] = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Annotated[Item, Body(embed=True)]):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 582 bytes
    - Viewed (0)
  3. docs_src/body_nested_models/tutorial004.py

        url: str
        name: str
    
    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
        tags: Set[str] = set()
        image: Union[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 Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 504 bytes
    - Viewed (0)
  4. src/main/webapp/WEB-INF/view/admin/searchlist/admin_searchlist.jsp

                                                               items="${pageNumberList}">
                                                        <li
                                                                <c:if test="${pageNumber == currentPageNumber}">class="page-item active"</c:if>>
                                                            <la:link
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Sep 24 13:09:22 UTC 2020
    - 20K bytes
    - Viewed (0)
  5. src/main/webapp/WEB-INF/view/admin/dict/protwords/admin_dict_protwords.jsp

                                                <c:forEach var="p" varStatus="s"
                                                           items="${pager.pageNumberList}">
                                                    <li
                                                            <c:if test="${p == pager.currentPageNumber}">class="page-item active"</c:if>>
                                                        <la:link
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 13 07:47:04 UTC 2020
    - 9.9K bytes
    - Viewed (0)
  6. docs_src/body_multiple_params/tutorial003.py

    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        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()):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 548 bytes
    - Viewed (0)
  7. docs_src/body_multiple_params/tutorial003_an.py

    from typing_extensions import Annotated
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        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: Annotated[int, Body()]
    ):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 604 bytes
    - Viewed (0)
  8. docs/ko/docs/index.md

    ### 확인하기
    
    브라우저로 <a href="http://127.0.0.1:8000/items/5?q=somequery" class="external-link" target="_blank">http://127.0.0.1:8000/items/5?q=somequery</a>를 열어보십시오.
    
    아래의 JSON 응답을 볼 수 있습니다:
    
    ```JSON
    {"item_id": 5, "q": "somequery"}
    ```
    
    여러분은 벌써 API를 만들었습니다:
    
    * _경로_ `/` 및 `/items/{item_id}`에서 HTTP 요청 받기.
    * 두 _경로_ 모두 `GET` 연산(HTTP _메소드_ 로 알려진)을 받습니다.
    * _경로_ `/items/{item_id}`는 _경로 매개변수_ `int`형 이어야 하는 `item_id`를 가지고 있습니다.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Aug 16 16:50:01 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  9. src/main/webapp/WEB-INF/view/common/admin/crud/pagination.jsp

    			<c:forEach var="p" varStatus="s"
    				items="${pager.pageNumberList}">
    				<li
    					<c:if test="${p == pager.currentPageNumber}">class="page-item active"</c:if>><la:link
    						styleClass="page-link"
    						href="list/${p}">${p}</la:link></li>
    			</c:forEach>
    			<c:if test="${pager.existNextPage}">
    				<li class="page-item"><la:link
    						styleClass="page-link"
    						href="list/${pager.currentPageNumber + 1}">
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Feb 07 10:28:50 UTC 2020
    - 1.5K bytes
    - Viewed (0)
  10. docs_src/query_params_str_validations/tutorial010_an_py39.py

    from typing import Annotated, Union
    
    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(
        q: Annotated[
            Union[str, None],
            Query(
                alias="item-query",
                title="Query string",
                description="Query string for the items to search in the database that have a good match",
                min_length=3,
                max_length=50,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 24 20:26:06 UTC 2023
    - 635 bytes
    - Viewed (0)
Back to top