Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 1,529 for _items (0.05 sec)

  1. 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)
  2. docs_src/sql_databases_peewee/sql_app/models.py

        is_active = peewee.BooleanField(default=True)
    
        class Meta:
            database = db
    
    
    class Item(peewee.Model):
        title = peewee.CharField(index=True)
        description = peewee.CharField(index=True)
        owner = peewee.ForeignKeyField(User, backref="items")
    
        class Meta:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 465 bytes
    - Viewed (0)
  3. docs_src/path_params_numeric_validations/tutorial006_an.py

    from fastapi import FastAPI, Path, Query
    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:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Aug 28 23:39:15 UTC 2024
    - 457 bytes
    - Viewed (0)
  4. docs_src/dependencies/tutorial008c_an.py

    
    @app.get("/items/{item_id}")
    def get_item(item_id: str, username: Annotated[str, Depends(get_username)]):
        if item_id == "portal-gun":
            raise InternalError(
                f"The portal gun is too dangerous to be owned by {username}"
            )
        if item_id != "plumbus":
            raise HTTPException(
                status_code=404, detail="Item not found, there's only a plumbus here"
            )
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 710 bytes
    - Viewed (0)
  5. src/main/webapp/css/bootstrap.min.css.map

    !important;\n  justify-content: space-around !important;\n}\n\n.align-items-start {\n  -ms-flex-align: start !important;\n  align-items: flex-start !important;\n}\n\n.align-items-end {\n  -ms-flex-align: end !important;\n  align-items: flex-end !important;\n}\n\n.align-items-center {\n  -ms-flex-align: center !important;\n  align-items: center !important;\n}\n\n.align-items-baseline {\n  -ms-flex-align: baseline !important;\n  align-items: baseline !important;\n}\n\n.align-items-stretch {\n  -ms-flex-align:...
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 13 04:21:06 UTC 2020
    - 626.8K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/handling-errors.md

    ```
    {
      "item": "The Foo Wrestlers"
    }
    ```
    
    Mas se o cliente faz uma requisição para `http://example.com/items/bar` (ou seja, um não existente `item_id "bar"`), esse cliente receberá um HTTP status code 404 (o erro "não encontrado" — *not found error*), e uma resposta JSON:
    
    ```JSON
    {
      "detail": "Item not found"
    }
    ```
    
    /// tip | "Dica"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10K bytes
    - Viewed (0)
  7. docs_src/path_params_numeric_validations/tutorial004_an.py

    from fastapi import FastAPI, Path
    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=1)], q: str
    ):
        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
    - 327 bytes
    - Viewed (0)
  8. docs_src/path_params_numeric_validations/tutorial005_an.py

    from fastapi import FastAPI, Path
    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", gt=0, le=1000)],
        q: str,
    ):
        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
    - 341 bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top