- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 1,529 for _items (0.05 sec)
-
tests/test_tutorial/test_dependencies/test_tutorial008d.py
return client def test_get_no_item(client: TestClient): response = client.get("/items/foo") assert response.status_code == 404, response.text assert response.json() == {"detail": "Item not found, there's only a plumbus here"} def test_get(client: TestClient): response = client.get("/items/plumbus") assert response.status_code == 200, response.text assert response.json() == "plumbus"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Feb 24 23:06:37 UTC 2024 - 1.2K bytes - Viewed (0) -
docs_src/additional_responses/tutorial004.py
from pydantic import BaseModel class Item(BaseModel): id: str value: str responses = { 404: {"description": "Item not found"}, 302: {"description": "The item was moved"}, 403: {"description": "Not enough privileges"}, } app = FastAPI() @app.get( "/items/{item_id}", response_model=Item, responses={**responses, 200: {"content": {"image/png": {}}}},
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat May 14 11:59:59 UTC 2022 - 701 bytes - Viewed (0) -
tests/test_tutorial/test_extra_data_types/test_tutorial001_an_py310.py
}, }, "summary": "Read Items", "operationId": "read_items_items__item_id__put", "parameters": [ { "required": True, "schema": { "title": "Item Id", "type": "string",
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Apr 19 00:11:40 UTC 2024 - 7K bytes - Viewed (0) -
docs_src/dependencies/tutorial008b_an_py39.py
@app.get("/items/{item_id}") def get_item(item_id: str, username: Annotated[str, Depends(get_username)]): if item_id not in data: raise HTTPException(status_code=404, detail="Item not found") item = data[item_id] if item["owner"] != username: raise OwnerError(username)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Dec 26 20:37:34 UTC 2023 - 775 bytes - Viewed (0) -
src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessMultipartRequestHandler.java
showFieldLoggingTitle(); for (DiskFileItem item : items) { if (item.isFormField()) { showFormFieldParameter(item); addTextParameter(request, item); } else { showFileFieldParameter(item); final String itemName = item.getName();
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Wed Oct 23 13:27:21 UTC 2024 - 18.6K bytes - Viewed (0) -
docs/ko/docs/index.md
### 확인하기 브라우저로 <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}`는 _경로 매개변수_ `int`형 이어야 하는 `item_id`를 가지고 있습니다.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Aug 16 16:50:01 UTC 2024 - 19.4K bytes - Viewed (0) -
docs_src/body/tutorial002.py
from fastapi import FastAPI from pydantic import BaseModel class Item(BaseModel): name: str description: Union[str, None] = None price: float tax: Union[float, None] = None app = FastAPI() @app.post("/items/") async def create_item(item: Item): item_dict = item.dict() if item.tax: price_with_tax = item.price + item.tax item_dict.update({"price_with_tax": price_with_tax})
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat May 14 11:59:59 UTC 2022 - 467 bytes - Viewed (0) -
src/test/java/org/codelibs/fess/it/admin/dict/DictCrudTestBase.java
for (Map<String, String> item : dicts) { assertTrue(item.containsKey("id")); assertTrue(item.containsKey("type")); if (getDictType().equals(item.get("type"))) { dictId = item.get("id"); return; } } fail(); } @Override
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 3.3K bytes - Viewed (0) -
docs/bn/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}` _paths_ এ HTTP অনুরোধ গ্রহণ করে।
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 20 19:20:23 UTC 2024 - 30.2K bytes - Viewed (0) -
docs/hu/docs/index.md
Nyisd meg a böngésződ a következő címen: <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>. A következő JSON választ fogod látni: ```JSON {"item_id": 5, "q": "somequery"} ``` Máris létrehoztál egy API-t ami: * HTTP kéréseket fogad a `/` és `/items/{item_id}` _útvonalakon_.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 20 19:20:23 UTC 2024 - 20.2K bytes - Viewed (0)