Search Options

Results per page
Sort
Preferred Languages
Advance

Results 481 - 490 of 1,417 for itemId (0.06 sec)

  1. fastapi/param_functions.py

        from typing import Annotated
    
        from fastapi import FastAPI, Path
    
        app = FastAPI()
    
    
        @app.get("/items/{item_id}")
        async def read_items(
            item_id: Annotated[int, Path(title="The ID of the item to get")],
        ):
            return {"item_id": item_id}
        ```
        """
        return params.Path(
            default=default,
            default_factory=default_factory,
            alias=alias,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 23 18:30:18 UTC 2024
    - 62.5K bytes
    - Viewed (0)
  2. docs_src/query_params_str_validations/tutorial008_py310.py

    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(
        q: str | None = Query(
            default=None,
            title="Query string",
            description="Query string for the items to search in the database that have a good match",
            min_length=3,
        ),
    ):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 24 20:26:06 UTC 2023
    - 434 bytes
    - Viewed (0)
  3. 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)
  4. docs/em/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 .annotate }
    # (1)
    FROM python:3.9
    
    # (2)
    WORKDIR /code
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Aug 12 21:47:53 UTC 2024
    - 27.9K 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/security/tutorial005.py

    async def read_users_me(current_user: User = Depends(get_current_active_user)):
        return current_user
    
    
    @app.get("/users/me/items/")
    async def read_own_items(
        current_user: User = Security(get_current_active_user, scopes=["items"]),
    ):
        return [{"item_id": "Foo", "owner": current_user.username}]
    
    
    @app.get("/status/")
    async def read_system_status(current_user: User = Depends(get_current_user)):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  7. docs_src/security/tutorial005_an.py

        current_user: Annotated[User, Depends(get_current_active_user)],
    ):
        return current_user
    
    
    @app.get("/users/me/items/")
    async def read_own_items(
        current_user: Annotated[User, Security(get_current_active_user, scopes=["items"])],
    ):
        return [{"item_id": "Foo", "owner": current_user.username}]
    
    
    @app.get("/status/")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  8. docs_src/query_params_str_validations/tutorial008_an.py

    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(
        q: Annotated[
            Union[str, None],
            Query(
                title="Query string",
                description="Query string for the items to search in the database that have a good match",
                min_length=3,
            ),
        ] = None,
    ):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 24 20:26:06 UTC 2023
    - 540 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/additional_responses/tutorial002.py

    from pydantic import BaseModel
    
    
    class Item(BaseModel):
        id: str
        value: str
    
    
    app = FastAPI()
    
    
    @app.get(
        "/items/{item_id}",
        response_model=Item,
        responses={
            200: {
                "content": {"image/png": {}},
                "description": "Return the JSON item or an image.",
            }
        },
    )
    async def read_item(item_id: str, img: Union[bool, None] = None):
        if img:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 628 bytes
    - Viewed (0)
Back to top