- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 1,515 for Portal (0.24 sec)
-
docs_src/generate_clients/tutorial002_py39.py
return {"message": "Item received"} @app.get("/items/", response_model=list[Item], tags=["items"]) async def get_items(): return [ {"name": "Plumbus", "price": 3}, {"name": "Portal Gun", "price": 9001}, ] @app.post("/users/", response_model=ResponseMessage, tags=["users"]) async def create_user(user: User):
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Mar 04 22:02:18 UTC 2022 - 730 bytes - Viewed (0) -
docs_src/generate_clients/tutorial002.py
return {"message": "Item received"} @app.get("/items/", response_model=List[Item], tags=["items"]) async def get_items(): return [ {"name": "Plumbus", "price": 3}, {"name": "Portal Gun", "price": 9001}, ] @app.post("/users/", response_model=ResponseMessage, tags=["users"]) async def create_user(user: User):
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Mar 04 22:02:18 UTC 2022 - 755 bytes - Viewed (0) -
docs_src/dependencies/tutorial008b.py
from fastapi import Depends, FastAPI, HTTPException app = FastAPI() data = { "plumbus": {"description": "Freshly pickled plumbus", "owner": "Morty"}, "portal-gun": {"description": "Gun to create portals", "owner": "Rick"}, } class OwnerError(Exception): pass def get_username(): try: yield "Rick" except OwnerError as e: raise HTTPException(status_code=400, detail=f"Owner error: {e}")
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Tue Dec 26 20:37:34 UTC 2023 - 735 bytes - Viewed (0) -
docs_src/dependencies/tutorial008b_an.py
from fastapi import Depends, FastAPI, HTTPException from typing_extensions import Annotated app = FastAPI() data = { "plumbus": {"description": "Freshly pickled plumbus", "owner": "Morty"}, "portal-gun": {"description": "Gun to create portals", "owner": "Rick"}, } class OwnerError(Exception): pass def get_username(): try: yield "Rick" except OwnerError as e:
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Tue Dec 26 20:37:34 UTC 2023 - 785 bytes - Viewed (0) -
docs_src/bigger_applications/app_an_py39/routers/items.py
prefix="/items", tags=["items"], dependencies=[Depends(get_token_header)], responses={404: {"description": "Not found"}}, ) fake_items_db = {"plumbus": {"name": "Plumbus"}, "gun": {"name": "Portal Gun"}} @router.get("/") async def read_items(): return fake_items_db @router.get("/{item_id}") async def read_item(item_id: str): if item_id not in fake_items_db:
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 1011 bytes - Viewed (0) -
pkg/volume/iscsi/disk_manager.go
options := []string{"bind"} if b.readOnly { options = append(options, "ro") } if b.iscsiDisk.InitiatorName != "" { // new iface name is <target portal>:<volume name> b.iscsiDisk.Iface = b.iscsiDisk.Portals[0] + ":" + b.iscsiDisk.VolName } globalPDPath := manager.MakeGlobalPDName(*b.iscsiDisk) mountOptions := util.JoinMountOptions(b.mountOptions, options)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 03 19:34:37 UTC 2023 - 3.4K bytes - Viewed (0) -
build-logic/publishing/build.gradle.kts
plugins { id("gradlebuild.build-logic.kotlin-dsl-gradle-plugin") } description = "Provides a plugin for publishing some of Gradle's subprojects to Artifactory or the Plugin Portal" dependencies { implementation("gradlebuild:basics") implementation("gradlebuild:module-identity") implementation(project(":integration-testing")) implementation("com.gradle.publish:plugin-publish-plugin")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Sep 30 16:17:28 UTC 2023 - 412 bytes - Viewed (0) -
tests/test_tutorial/test_dependencies/test_tutorial008b_an.py
assert response.json() == {"detail": "Owner error: Rick"} def test_get_item(): response = client.get("/items/portal-gun") assert response.status_code == 200, response.text
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Tue Dec 26 20:37:34 UTC 2023 - 700 bytes - Viewed (0) -
docs_src/dependencies/tutorial008b_an_py39.py
from typing import Annotated from fastapi import Depends, FastAPI, HTTPException app = FastAPI() data = { "plumbus": {"description": "Freshly pickled plumbus", "owner": "Morty"}, "portal-gun": {"description": "Gun to create portals", "owner": "Rick"}, } class OwnerError(Exception): pass def get_username(): try: yield "Rick" except OwnerError as e:
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Tue Dec 26 20:37:34 UTC 2023 - 775 bytes - Viewed (0) -
docs_src/response_model/tutorial001_01_py310.py
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Jan 07 13:45:48 UTC 2023 - 469 bytes - Viewed (0)