- Sort Score
- Result 10 results
- Languages All
Results 281 - 290 of 1,038 for Body (0.04 sec)
-
tests/test_get_request_body.py
@app.get("/product") async def create_item(product: Product): return product client = TestClient(app) def test_get_with_body(): body = {"name": "Foo", "description": "Some description", "price": 5.5} response = client.request("GET", "/product", json=body) assert response.json() == body def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 3.7K bytes - Viewed (0) -
docs_src/body_multiple_params/tutorial005.py
from typing import Union from fastapi import Body, FastAPI 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: int, item: Item = Body(embed=True)): results = {"item_id": item_id, "item": item}
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri May 13 23:38:22 UTC 2022 - 407 bytes - Viewed (0) -
src/main/webapp/js/login.js
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Wed Sep 12 06:47:49 UTC 2018 - 1.3K bytes - Viewed (0) -
docs_src/websockets/tutorial001.py
from fastapi import FastAPI, WebSocket from fastapi.responses import HTMLResponse app = FastAPI() html = """ <!DOCTYPE html> <html> <head> <title>Chat</title> </head> <body> <h1>WebSocket Chat</h1> <form action="" onsubmit="sendMessage(event)"> <input type="text" id="messageText" autocomplete="off"/> <button>Send</button> </form> <ul id='messages'>
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Mar 26 19:09:53 UTC 2020 - 1.4K bytes - Viewed (0) -
docs/ko/docs/tutorial/schema-extra-example.md
//// ## JSON Schema에서의 `examples` - OpenAPI 이들 중에서 사용합니다: * `Path()` * `Query()` * `Header()` * `Cookie()` * `Body()` * `Form()` * `File()` **OpenAPI**의 **JSON 스키마**에 추가될 부가적인 정보를 포함한 `examples` 모음을 선언할 수 있습니다. ### `examples`를 포함한 `Body` 여기, `Body()`에 예상되는 예제 데이터 하나를 포함한 `examples`를 넘겼습니다: //// tab | Python 3.10+ ```Python hl_lines="22-29"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 13.5K bytes - Viewed (0) -
docs/zh/docs/tutorial/schema-extra-example.md
{!> ../../docs_src/schema_extra_example/tutorial002.py!} ``` //// /// warning 请记住,传递的那些额外参数不会添加任何验证,只会添加注释,用于文档的目的。 /// ## `Body` 额外参数 你可以通过传递额外信息给 `Field` 同样的方式操作`Path`, `Query`, `Body`等。 比如,你可以将请求体的一个 `example` 传递给 `Body`: //// tab | Python 3.10+ ```Python hl_lines="22-27" {!> ../../docs_src/schema_extra_example/tutorial003_an_py310.py!} ``` ////
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.5K bytes - Viewed (0) -
test-site/app/views/main.scala.html
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Mon Apr 20 08:41:37 UTC 2015 - 450 bytes - Viewed (0) -
src/main/webapp/WEB-INF/view/admin/scheduler/admin_scheduler_details.jsp
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Wed Feb 12 20:25:27 UTC 2020 - 12K bytes - Viewed (0) -
src/main/webapp/WEB-INF/view/admin/log/admin_log.jsp
<title><la:message key="labels.admin_brand_title"/> | <la:message key="labels.log_configuration"/></title> <jsp:include page="/WEB-INF/view/common/admin/head.jsp"></jsp:include> </head> <body class="hold-transition sidebar-mini"> <div class="wrapper"> <jsp:include page="/WEB-INF/view/common/admin/header.jsp"></jsp:include> <jsp:include page="/WEB-INF/view/common/admin/sidebar.jsp">
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Wed Feb 12 20:25:27 UTC 2020 - 4K bytes - Viewed (0) -
docs_src/response_directly/tutorial002.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Mar 26 19:09:53 UTC 2020 - 354 bytes - Viewed (0)