- Sort Score
- Result 10 results
- Languages All
Results 301 - 310 of 1,721 for item (0.07 sec)
-
docs/vi/docs/index.md
Chỉ cần sử dụng các chuẩn của **Python**. Ví dụ, với một tham số kiểu `int`: ```Python item_id: int ``` hoặc với một model `Item` phức tạp hơn: ```Python item: Item ``` ...và với định nghĩa đơn giản đó, bạn có được: * Sự hỗ trợ từ các trình soạn thảo, bao gồm: * Completion. * Kiểm tra kiểu dữ liệu. * Kiểm tra kiểu dữ liệu:
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
</details> ### 检查 使用浏览器访问 <a href="http://127.0.0.1:8000/items/5?q=somequery" class="external-link" target="_blank">http://127.0.0.1:8000/items/5?q=somequery</a>。 你将会看到如下 JSON 响应: ```JSON {"item_id": 5, "q": "somequery"} ``` 你已经创建了一个具有以下功能的 API: * 通过 _路径_ `/` 和 `/items/{item_id}` 接受 HTTP 请求。 * 以上 _路径_ 都接受 `GET` 操作(也被称为 HTTP _方法_)。 * `/items/{item_id}` _路径_ 有一个 _路径参数_ `item_id` 并且应该为 `int` 类型。
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_src/query_params/tutorial005.py
from fastapi import FastAPI app = FastAPI() @app.get("/items/{item_id}") async def read_user_item(item_id: str, needy: str): item = {"item_id": item_id, "needy": needy}
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Mar 26 19:09:53 UTC 2020 - 192 bytes - Viewed (0) -
docs_src/schema_extra_example/tutorial004_an.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Jul 01 16:43:29 UTC 2023 - 965 bytes - Viewed (0) -
docs_src/body_fields/tutorial001_an_py39.py
app = FastAPI() class Item(BaseModel): name: str description: Union[str, None] = Field( default=None, title="The description of the item", max_length=300 ) price: float = Field(gt=0, description="The price must be greater than zero") tax: Union[float, None] = None @app.put("/items/{item_id}") async def update_item(item_id: int, item: Annotated[Item, Body(embed=True)]):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 582 bytes - Viewed (0) -
docs_src/body_nested_models/tutorial007.py
url: HttpUrl name: str class Item(BaseModel): name: str description: Union[str, None] = None price: float tax: Union[float, None] = None tags: Set[str] = set() images: Union[List[Image], None] = None class Offer(BaseModel): name: str description: Union[str, None] = None price: float items: List[Item] @app.post("/offers/")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat May 14 11:59:59 UTC 2022 - 581 bytes - Viewed (0) -
tests/test_tutorial/test_handling_errors/test_tutorial002.py
client = TestClient(app) def test_get_item_header(): response = client.get("/items-header/foo") assert response.status_code == 200, response.text assert response.json() == {"item": "The Foo Wrestlers"} def test_get_item_not_found_header(): response = client.get("/items-header/bar") assert response.status_code == 404, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 3.3K bytes - Viewed (0) -
src/main/webapp/WEB-INF/view/admin/reqheader/admin_reqheader_edit.jsp
styleClass="form-control"> <c:forEach var="item" items="${webConfigItems}"> <la:option value="${f:u(item.value)}">${f:h(item.label)}</la:option> </c:forEach> </la:select>
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 13 07:47:04 UTC 2020 - 5.1K bytes - Viewed (0) -
docs_src/query_params/tutorial006_py310.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jan 07 14:11:31 UTC 2022 - 269 bytes - Viewed (0) -
docs_src/generate_clients/tutorial003_py39.py
class Item(BaseModel): name: str price: float class ResponseMessage(BaseModel): message: str class User(BaseModel): username: str email: str @app.post("/items/", response_model=ResponseMessage, tags=["items"]) async def create_item(item: Item): return {"message": "Item received"} @app.get("/items/", response_model=list[Item], tags=["items"])
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Mar 04 22:02:18 UTC 2022 - 914 bytes - Viewed (0)