- Sort Score
- Result 10 results
- Languages All
Results 241 - 250 of 874 for tutorial001 (0.1 sec)
-
docs/de/docs/tutorial/dependencies/classes-as-dependencies.md
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 12K bytes - Viewed (0) -
docs/em/docs/tutorial/path-params.md
```Python hl_lines="16" {!../../docs_src/path_params/tutorial005.py!} ``` ### โ ๐ฉบ โฉ๏ธ ๐ช ๐ฒ *โก ๐ข* ๐ข, ๐ ๐ฉบ ๐ช ๐ฆ ๐ซ ๐: <img src="/img/tutorial/path-params/image03.png"> ### ๐ท โฎ๏ธ ๐ *๐ข* ๐ฒ *โก ๐ข* ๐ *๐ข ๐จโ๐*. #### ๐ฌ *๐ข ๐จโ๐* ๐ ๐ช ๐ฌ โซ๏ธ โฎ๏ธ *๐ข ๐จโ๐* ๐ โ ๐ข `ModelName`: ```Python hl_lines="17" {!../../docs_src/path_params/tutorial005.py!} ``` #### ๐ค *๐ข ๐ฒ*
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.7K bytes - Viewed (0) -
tests/test_tutorial/test_behind_a_proxy/test_tutorial001.py
from fastapi.testclient import TestClient from docs_src.behind_a_proxy.tutorial001 import app client = TestClient(app, root_path="/api/v1") def test_main(): response = client.get("/app") assert response.status_code == 200 assert response.json() == {"message": "Hello World", "root_path": "/api/v1"} def test_openapi(): response = client.get("/openapi.json") assert response.status_code == 200
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 1K bytes - Viewed (0) -
tests/test_tutorial/test_websockets/test_tutorial001.py
import pytest from fastapi.testclient import TestClient from fastapi.websockets import WebSocketDisconnect from docs_src.websockets.tutorial001 import app client = TestClient(app) def test_main(): response = client.get("/") assert response.status_code == 200, response.text assert b"<!DOCTYPE html>" in response.content def test_websocket(): with pytest.raises(WebSocketDisconnect):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 10 09:08:19 UTC 2020 - 822 bytes - Viewed (0) -
docs/zh/docs/advanced/custom-response.md
/// ```Python hl_lines="2 7" {!../../docs_src/custom_response/tutorial001.py!} ``` /// tip | "ๅฐ่ดดๅฃซ" `ORJSONResponse` ๅฏ่ฝๆฏไธไธชๆดๅฟซ็้ๆฉใ /// ### `RedirectResponse` ่ฟๅ HTTP ้ๅฎๅใ้ป่ฎคๆ ๅตไธไฝฟ็จ 307 ็ถๆไปฃ็ ๏ผไธดๆถ้ๅฎๅ๏ผใ ```Python hl_lines="2 9" {!../../docs_src/custom_response/tutorial006.py!} ``` ### `StreamingResponse` ้็จๅผๆญฅ็ๆๅจๆๆฎ้็ๆๅจ/่ฟญไปฃๅจ๏ผ็ถๅๆตๅผไผ ่พๅๅบไธปไฝใ
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.7K bytes - Viewed (0) -
docs/em/docs/advanced/openapi-callbacks.md
{!../../docs_src/openapi_callbacks/tutorial001.py!} ``` ### โ โฒ *โก ๐ ๏ธ* โ โฒ *โก ๐ ๏ธ* โ๏ธ ๐ `APIRouter` ๐ โ ๐. โซ๏ธ ๐ ๐ ๐ ๐ FastAPI *โก ๐ ๏ธ*: * โซ๏ธ ๐ ๐ฒ โ๏ธ ๐ ๐ช โซ๏ธ ๐ ๐จ, โ `body: InvoiceEvent`. * & โซ๏ธ ๐ช โ๏ธ ๐ ๐จ โซ๏ธ ๐ ๐จ, โ `response_model=InvoiceEventReceived`. ```Python hl_lines="16-18 21-22 28-32" {!../../docs_src/openapi_callbacks/tutorial001.py!} ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.6K bytes - Viewed (0) -
tests/test_tutorial/test_first_steps/test_tutorial001.py
import pytest from fastapi.testclient import TestClient from docs_src.first_steps.tutorial001 import app client = TestClient(app) @pytest.mark.parametrize( "path,expected_status,expected_response", [ ("/", 200, {"message": "Hello World"}), ("/nonexistent", 404, {"detail": "Not Found"}), ], ) def test_get_path(path, expected_status, expected_response): response = client.get(path)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 1.2K bytes - Viewed (0) -
docs/pt/docs/advanced/behind-a-proxy.md
Nesse caso, o caminho original `/app` seria servido em `/api/v1/app`. Embora todo o seu cรณdigo esteja escrito assumindo que existe apenas `/app`. {* ../../docs_src/behind_a_proxy/tutorial001.py hl[6] *}
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 27 15:28:18 UTC 2024 - 12.2K bytes - Viewed (0) -
docs/em/docs/tutorial/body-fields.md
## ๐ `Field` ๐ฅ, ๐ โ๏ธ ๐ โซ๏ธ: //// tab | ๐ 3๏ธโฃ.6๏ธโฃ & ๐ ```Python hl_lines="4" {!> ../../docs_src/body_fields/tutorial001.py!} ``` //// //// tab | ๐ 3๏ธโฃ.1๏ธโฃ0๏ธโฃ & ๐ ```Python hl_lines="2" {!> ../../docs_src/body_fields/tutorial001_py310.py!} ``` //// /// warning
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.2K bytes - Viewed (0) -
docs/de/docs/tutorial/response-status-code.md
Schauen wir uns das vorherige Beispiel noch einmal an: {* ../../docs_src/response_status_code/tutorial001.py hl[6] *} `201` ist der Statuscode fรผr โCreatedโ (โErzeugtโ). Aber Sie mรผssen sich nicht daran erinnern, welcher dieser Codes was bedeutet. Sie kรถnnen die Hilfsvariablen von `fastapi.status` verwenden. {* ../../docs_src/response_status_code/tutorial002.py hl[1,6] *}
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 27 16:59:43 UTC 2024 - 4.6K bytes - Viewed (0)