- Sort Score
- Result 10 results
- Languages All
Results 371 - 380 of 1,333 for item01 (0.09 sec)
-
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) -
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) -
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) -
docs_src/path_params_numeric_validations/tutorial003.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri May 13 23:38:22 UTC 2022 - 268 bytes - Viewed (0) -
docs_src/path_params_numeric_validations/tutorial002_an_py39.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 311 bytes - Viewed (0) -
docs_src/path_params_numeric_validations/tutorial003_an_py39.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 311 bytes - Viewed (0) -
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) -
fastapi/routing.py
from pydantic import BaseModel class Item(BaseModel): name: str description: str | None = None app = FastAPI() router = APIRouter() @router.put("/items/{item_id}") def replace_item(item_id: str, item: Item): return {"message": "Item replaced", "id": item_id} app.include_router(router)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Oct 12 09:44:57 UTC 2024 - 172.1K bytes - Viewed (0) -
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) -
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)