- Sort Score
- Result 10 results
- Languages All
Results 211 - 220 of 1,721 for item (0.03 sec)
-
docs/ko/docs/tutorial/body-multiple-params.md
/// ## 단일 본문 매개변수 삽입하기 Pydantic 모델 `Item`의 `item`을 본문 매개변수로 오직 한개만 갖고있다고 하겠습니다. 기본적으로 **FastAPI**는 직접 본문으로 예측할 것입니다. 하지만, 만약 모델 내용에 `item `키를 가진 JSON으로 예측하길 원한다면, 추가적인 본문 매개변수를 선언한 것처럼 `Body`의 특별한 매개변수인 `embed`를 사용할 수 있습니다: ```Python hl_lines="17" {!../../docs_src/body_multiple_params/tutorial005.py!} ``` 아래 처럼: ```Python item: Item = Body(..., embed=True) ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.2K bytes - Viewed (0) -
docs_src/schema_extra_example/tutorial004.py
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: int, item: Item = Body( examples=[ { "name": "Foo", "description": "A very nice Item", "price": 35.4,
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Jul 01 16:43:29 UTC 2023 - 824 bytes - Viewed (0) -
docs_src/path_operation_configuration/tutorial002_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 tags: set[str] = set() @app.post("/items/", response_model=Item, tags=["items"]) async def create_item(item: Item): return item @app.get("/items/", tags=["items"]) async def read_items():
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat May 14 11:59:59 UTC 2022 - 575 bytes - Viewed (0) -
docs_src/additional_responses/tutorial002.py
from fastapi.responses import FileResponse from pydantic import BaseModel class Item(BaseModel): id: str value: str app = FastAPI() @app.get( "/items/{item_id}", response_model=Item, responses={ 200: { "content": {"image/png": {}}, "description": "Return the JSON item or an image.", } }, )
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat May 14 11:59:59 UTC 2022 - 628 bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/index/contents/DefaultContentsParserTest.java
List<SuggestItem> items = defaultContentsParser.parseQueryLog(queryLog, supportedFields, tagFieldNames, roleFieldName, createDefaultReadingConverter(), createDefaultNormalizer()); SuggestItem item = items.get(0); assertEquals("検索エンジン", item.getText()); assertEquals(SuggestItem.Kind.QUERY, item.getKinds()[0]); assertEquals(1, item.getQueryFreq()); }
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:54 UTC 2024 - 3.4K bytes - Viewed (0) -
docs/uk/docs/index.md
Використовуючи стандартний **Python**. Наприклад, для `int`: ```Python item_id: int ``` або для більш складної моделі `Item`: ```Python item: Item ``` ...і з цим єдиним оголошенням Ви отримуєте: * Підтримку редактора, включаючи: * Варіанти заповнення. * Перевірку типів. * Перевірку даних:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 20 19:20:23 UTC 2024 - 24.2K bytes - Viewed (0) -
tests/test_tutorial/test_additional_responses/test_tutorial004.py
"openapi": "3.1.0", "info": {"title": "FastAPI", "version": "0.1.0"}, "paths": { "/items/{item_id}": { "get": { "responses": { "404": {"description": "Item not found"}, "302": {"description": "The item was moved"}, "403": {"description": "Not enough privileges"}, "200": {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 4.8K bytes - Viewed (0) -
tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial004.py
}, "summary": "Create an item", "description": "Create an item with all the information:\n\n- **name**: each item must have a name\n- **description**: a long description\n- **price**: required\n- **tax**: if the item doesn't have tax, you can omit this\n- **tags**: a set of unique tag strings for this item", "operationId": "create_item_items__post",
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Sep 28 04:14:40 UTC 2023 - 8.7K bytes - Viewed (0) -
docs/ru/docs/tutorial/body-multiple-params.md
Предположим, у вас есть только один body-параметр `item` из Pydantic модели `Item`. По умолчанию, **FastAPI** ожидает получить тело запроса напрямую. Но если вы хотите чтобы он ожидал JSON с ключом `item` с содержимым модели внутри, также как это происходит при объявлении дополнительных body-параметров, вы можете использовать специальный параметр `embed` у типа `Body`: ```Python item: Item = Body(embed=True) ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 11.6K bytes - Viewed (0) -
tests/test_tutorial/test_body_updates/test_tutorial001.py
} }, "required": True, }, }, } }, "components": { "schemas": { "Item": { "type": "object", "title": "Item", "properties": {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Sep 28 04:14:40 UTC 2023 - 11.8K bytes - Viewed (0)