Search Options

Results per page
Sort
Preferred Languages
Advance

Results 441 - 450 of 1,638 for item2 (0.05 sec)

  1. docs_src/path_params_numeric_validations/tutorial002_an.py

    from fastapi import FastAPI, Path
    from typing_extensions import Annotated
    
    app = FastAPI()
    
    
    @app.get("/items/{item_id}")
    async def read_items(
        q: str, item_id: Annotated[int, Path(title="The ID of the item to get")]
    ):
        results = {"item_id": item_id}
        if q:
            results.update({"q": q})
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 321 bytes
    - Viewed (0)
  2. docs_src/dependencies/tutorial012_an_py39.py

        return x_key
    
    
    app = FastAPI(dependencies=[Depends(verify_token), Depends(verify_key)])
    
    
    @app.get("/items/")
    async def read_items():
        return [{"item": "Portal Gun"}, {"item": "Plumbus"}]
    
    
    @app.get("/users/")
    async def read_users():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 756 bytes
    - Viewed (0)
  3. README.md

    ### Check it
    
    Open your browser at <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>.
    
    You will see the JSON response as:
    
    ```JSON
    {"item_id": 5, "q": "somequery"}
    ```
    
    You already created an API that:
    
    * Receives HTTP requests in the _paths_ `/` and `/items/{item_id}`.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Oct 31 09:13:26 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/handling-errors.md

    ```JSON
    {
      "item": "The Foo Wrestlers"
    }
    ```
    
    But if the client requests `http://example.com/items/bar` (a non-existent `item_id` `"bar"`), that client will receive an HTTP status code of 404 (the "not found" error), and a JSON response of:
    
    ```JSON
    {
      "detail": "Item not found"
    }
    ```
    
    /// tip
    
    When raising an `HTTPException`, you can pass any value that can be converted to JSON as the parameter `detail`, not only `str`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  5. docs_src/sql_databases_peewee/sql_app/schemas.py

    class ItemCreate(ItemBase):
        pass
    
    
    class Item(ItemBase):
        id: int
        owner_id: int
    
        class Config:
            orm_mode = True
            getter_dict = PeeweeGetterDict
    
    
    class UserBase(BaseModel):
        email: str
    
    
    class UserCreate(UserBase):
        password: str
    
    
    class User(UserBase):
        id: int
        is_active: bool
        items: List[Item] = []
    
        class Config:
            orm_mode = True
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 868 bytes
    - Viewed (0)
  6. src/main/webapp/WEB-INF/view/admin/elevateword/admin_elevateword_details.jsp

                                            <td><c:forEach var="l" varStatus="s"
                                                           items="${labelTypeItems}">
                                                <c:forEach var="ltid" varStatus="s"
                                                           items="${labelTypeIds}">
                                                    <c:if test="${ltid==l.id}">
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 13 07:47:04 UTC 2020
    - 8.3K bytes
    - Viewed (0)
  7. docs/es/docs/python-types.md

    ```Python hl_lines="4"
    {!../../docs_src/python_types/tutorial006.py!}
    ```
    
    Esto significa: la variable `items` es una `list` y cada uno de los ítems en esta lista es un `str`.
    
    Con esta declaración tu editor puede proveerte soporte inclusive mientras está procesando ítems de la lista.
    
    Sin tipos el auto-completado en este tipo de estructura es casi imposible de lograr:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  8. src/main/webapp/WEB-INF/view/header.jsp

    												<la:message key="labels.profile" />
    											</la:link>
    										</c:if>
    										<c:if test="${adminUser == true}">
    											<la:link href="/admin" styleClass="dropdown-item">
    												<la:message key="labels.administration" />
    											</la:link>
    										</c:if>
    										<la:link href="/logout/" styleClass="dropdown-item">
    											<la:message key="labels.logout" />
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 24 03:00:28 UTC 2020
    - 4.2K bytes
    - Viewed (0)
  9. src/main/webapp/WEB-INF/orig/view/header.jsp

    												<la:message key="labels.profile" />
    											</la:link>
    										</c:if>
    										<c:if test="${adminUser == true}">
    											<la:link href="/admin" styleClass="dropdown-item">
    												<la:message key="labels.administration" />
    											</la:link>
    										</c:if>
    										<la:link href="/logout/" styleClass="dropdown-item">
    											<la:message key="labels.logout" />
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 24 03:00:28 UTC 2020
    - 4.2K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_extra_data_types/test_tutorial001_py310.py

                            },
                        },
                        "summary": "Read Items",
                        "operationId": "read_items_items__item_id__put",
                        "parameters": [
                            {
                                "required": True,
                                "schema": {
                                    "title": "Item Id",
                                    "type": "string",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Apr 19 00:11:40 UTC 2024
    - 7K bytes
    - Viewed (0)
Back to top