- Sort Score
- Result 10 results
- Languages All
Results 531 - 540 of 964 for fooz (0.02 sec)
-
docs_src/additional_status_codes/tutorial001_py310.py
from fastapi import Body, FastAPI, status from fastapi.responses import JSONResponse app = FastAPI() items = {"foo": {"name": "Fighters", "size": 6}, "bar": {"name": "Tenders", "size": 3}} @app.put("/items/{item_id}") async def upsert_item( item_id: str, name: str | None = Body(default=None), size: int | None = Body(default=None), ): if item_id in items: item = items[item_id] item["name"] = name
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 646 bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial010_py310.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Oct 24 20:26:06 UTC 2023 - 542 bytes - Viewed (0) -
docs_src/schema_extra_example/tutorial002_py310.py
from fastapi import FastAPI from pydantic import BaseModel, Field app = FastAPI() class Item(BaseModel): name: str = Field(examples=["Foo"]) description: str | None = Field(default=None, examples=["A very nice Item"]) price: float = Field(examples=[35.4]) tax: float | None = Field(default=None, examples=[3.2]) @app.put("/items/{item_id}") async def update_item(item_id: int, item: Item):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 479 bytes - Viewed (0) -
tests/test_tutorial/test_response_change_status_code/test_tutorial001.py
from fastapi.testclient import TestClient from docs_src.response_change_status_code.tutorial001 import app client = TestClient(app) def test_path_operation(): response = client.put("/get-or-create-task/foo") print(response.content) assert response.status_code == 200, response.text assert response.json() == "Listen to the Bar Fighters" response = client.put("/get-or-create-task/bar")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Jul 09 18:06:12 UTC 2020 - 521 bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial006b_an_py39.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 300 bytes - Viewed (0) -
tests/test_tutorial/test_dataclasses/test_tutorial003.py
client = TestClient(app) def test_post_authors_item(): response = client.post( "/authors/foo/items/", json=[{"name": "Bar"}, {"name": "Baz", "description": "Drop the Baz"}], ) assert response.status_code == 200 assert response.json() == { "name": "foo", "items": [ {"name": "Bar", "description": None}, {"name": "Baz", "description": "Drop the Baz"},
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Jul 31 14:09:15 UTC 2024 - 12.1K bytes - Viewed (0) -
docs/iam/access-management-plugin.md
```sh mc alias set myminio http://localhost:9000 minio minio123 mc ls myminio mc mb myminio/test mc cp /etc/issue myminio/test mc admin user add myminio foo foobar123 export MC_HOST_foo=http://foo:foobar123@localhost:9000 mc ls foo mc cp /etc/issue myminio/test/issue2 ``` Only the last operation would fail with a permissions error. ## Configuration
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Dec 13 22:28:48 UTC 2022 - 4.4K bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial005_an_py39.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 309 bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial007_py310.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Mar 26 16:56:53 UTC 2024 - 304 bytes - Viewed (0) -
src/main/webapp/WEB-INF/view/admin/wizard/admin_wizard_start.jsp
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 13 07:47:04 UTC 2020 - 4K bytes - Viewed (0)