- Sort Score
- Result 10 results
- Languages All
Results 641 - 650 of 1,369 for Put (0.01 sec)
-
docs/vi/docs/index.md
* Swagger UI. * ReDoc. --- Quay trở lại ví dụ trước, **FastAPI** sẽ thực hiện: * Kiểm tra xem có một `item_id` trong đường dẫn với các request `GET` và `PUT` không? * Kiểm tra xem `item_id` có phải là kiểu `int` trong các request `GET` và `PUT` không? * Nếu không, client sẽ thấy một lỗi rõ ràng và hữu ích.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 20 19:20:23 UTC 2024 - 21.9K bytes - Viewed (0) -
docs/zh/docs/index.md
--- 回到前面的代码示例,**FastAPI** 将会: * 校验 `GET` 和 `PUT` 请求的路径中是否含有 `item_id`。 * 校验 `GET` 和 `PUT` 请求中的 `item_id` 是否为 `int` 类型。 * 如果不是,客户端将会收到清晰有用的错误信息。 * 检查 `GET` 请求中是否有命名为 `q` 的可选查询参数(比如 `http://127.0.0.1:8000/items/foo?q=somequery`)。 * 因为 `q` 被声明为 `= None`,所以它是可选的。 * 如果没有 `None` 它将会是必需的 (如 `PUT` 例子中的请求体)。 * 对于访问 `/items/{item_id}` 的 `PUT` 请求,将请求体读取为 JSON 并: * 检查是否有必需属性 `name` 并且值为 `str` 类型 。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 20 19:20:23 UTC 2024 - 18.2K bytes - Viewed (0) -
docs/bucket/versioning/README.md
When you PUT an object in a versioning-enabled bucket, the noncurrent version is not overwritten. The following figure shows that when a new version of `spark.csv` is PUT into a bucket that already contains an object with the same name, the original object (ID = `ede336f2`) remains in the bucket, MinIO generates a new version (ID = `fae684da`), and adds the newer version to the bucket.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu May 04 21:43:52 UTC 2023 - 11.9K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/esreq/AdminEsreqAction.java
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 6.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/pathmap/ApiAdminPathmapAction.java
return null; })).status(ApiResult.Status.OK).result()); } // PUT /api/admin/pathmap/setting @Execute public JsonResponse<ApiResult> put$setting(final CreateBody body) { validateApi(body, messages -> {}); body.crudMode = CrudMode.CREATE; final PathMapping entity = getPathMapping(body).orElseGet(() -> {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 5.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/relatedcontent/ApiAdminRelatedcontentAction.java
return null; })).status(Status.OK).result()); } // PUT /api/admin/relatedcontent/setting @Execute public JsonResponse<ApiResult> put$setting(final CreateBody body) { validateApi(body, messages -> {}); body.crudMode = CrudMode.CREATE;
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 6.4K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/graph/DefaultProjectDependencyGraph.java
for (int index = 0; index < sorted.size(); index++) { MavenProject project = sorted.get(index); String id = ProjectSorter.getId(project); this.projects.put(id, project); this.order.put(project, index); } } /** * @since 3.5.0 */ public List<MavenProject> getAllProjects() { return this.allProjects; }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.8K bytes - Viewed (0) -
docs_src/additional_status_codes/tutorial001.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: Union[str, None] = Body(default=None), size: Union[int, None] = Body(default=None), ): if item_id in items: item = items[item_id]
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri May 13 23:38:22 UTC 2022 - 684 bytes - Viewed (0) -
docs_src/additional_status_codes/tutorial001_an_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: Annotated[str | None, Body()] = None, size: Annotated[int | None, Body()] = None, ): if item_id in items: item = items[item_id]
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 686 bytes - Viewed (0) -
docs_src/body_multiple_params/tutorial001_an_py39.py
from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: Union[str, None] = None price: float tax: Union[float, None] = None @app.put("/items/{item_id}") async def update_item( item_id: Annotated[int, Path(title="The ID of the item to get", ge=0, le=1000)], q: Union[str, None] = None, item: Union[Item, None] = None, ):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 610 bytes - Viewed (0)