- Sort Score
- Result 10 results
- Languages All
Results 321 - 330 of 871 for tutorial001 (0.66 sec)
-
docs/en/docs/tutorial/dependencies/index.md
``` //// //// tab | Python 3.8+ non-Annotated /// tip Prefer to use the `Annotated` version if possible. /// ```Python hl_lines="8-11" {!> ../../docs_src/dependencies/tutorial001.py!} ``` //// That's it. **2 lines**. And it has the same shape and structure that all your *path operation functions* have.
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 11.5K bytes - Viewed (0) -
docs/en/docs/advanced/wsgi.md
## Using `WSGIMiddleware` You need to import `WSGIMiddleware`. Then wrap the WSGI (e.g. Flask) app with the middleware. And then mount that under a path. ```Python hl_lines="2-3 23" {!../../docs_src/wsgi/tutorial001.py!} ``` ## Check it Now, every request under the path `/v1/` will be handled by the Flask application. And the rest will be handled by **FastAPI**.
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.1K bytes - Viewed (0) -
tests/test_tutorial/test_configure_swagger_ui/test_tutorial001.py
from fastapi.testclient import TestClient from docs_src.configure_swagger_ui.tutorial001 import app client = TestClient(app) def test_swagger_ui(): response = client.get("/docs") assert response.status_code == 200, response.text assert ( '"syntaxHighlight": false' in response.text ), "syntaxHighlight should be included and converted to JSON" assert ( '"dom_id": "#swagger-ui"' in response.text
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sat Aug 19 19:54:04 UTC 2023 - 1.4K bytes - Viewed (0) -
tests/test_tutorial/test_sub_applications/test_tutorial001.py
from fastapi.testclient import TestClient from docs_src.sub_applications.tutorial001 import app client = TestClient(app) openapi_schema_main = { "openapi": "3.1.0", "info": {"title": "FastAPI", "version": "0.1.0"}, "paths": { "/app": { "get": { "responses": { "200": { "description": "Successful Response",
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 1.9K bytes - Viewed (0) -
docs/em/docs/tutorial/static-files.md
# ๐ป ๐ ๐ ๐ช ๐ฆ ๐ป ๐ ๐ โช๏ธโก๏ธ ๐ โ๏ธ `StaticFiles`. ## โ๏ธ `StaticFiles` * ๐ `StaticFiles`. * "๐ป" `StaticFiles()` ๐ ๐ฏ โก. ```Python hl_lines="2 6" {!../../docs_src/static_files/tutorial001.py!} ``` /// note | "๐ก โน" ๐ ๐ช โ๏ธ `from starlette.staticfiles import StaticFiles`. **FastAPI** ๐ ๐ `starlette.staticfiles` `fastapi.staticfiles` ๐ช ๐, ๐ฉโ๐ป. โ๏ธ โซ๏ธ ๐ค ๐ ๐ โช๏ธโก๏ธ ๐. /// ### โซ๏ธโ "๐"
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.3K bytes - Viewed (0) -
docs/em/docs/tutorial/encoder.md
๐ ๐ช โ๏ธ `jsonable_encoder` ๐. โซ๏ธ ๐จ ๐, ๐ Pydantic ๐ท, & ๐จ ๐ป ๐ โฌ: //// tab | ๐ 3๏ธโฃ.6๏ธโฃ & ๐ ```Python hl_lines="5 22" {!> ../../docs_src/encoder/tutorial001.py!} ``` //// //// tab | ๐ 3๏ธโฃ.1๏ธโฃ0๏ธโฃ & ๐ ```Python hl_lines="4 21" {!> ../../docs_src/encoder/tutorial001_py310.py!} ``` ////
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.5K bytes - Viewed (0) -
docs/em/docs/tutorial/body-nested-models.md
โฎ๏ธ **FastAPI**, ๐ ๐ช ๐ฌ, โ, ๐, & โ๏ธ ๐ฒ ๐ ๐ฆ ๐ท (๐ Pydantic). ## ๐ ๐ ๐ ๐ช ๐ฌ ๐ข ๐พ. ๐ผ, ๐ `list`: //// tab | ๐ 3๏ธโฃ.6๏ธโฃ & ๐ ```Python hl_lines="14" {!> ../../docs_src/body_nested_models/tutorial001.py!} ``` //// //// tab | ๐ 3๏ธโฃ.1๏ธโฃ0๏ธโฃ & ๐ ```Python hl_lines="12" {!> ../../docs_src/body_nested_models/tutorial001_py310.py!} ``` //// ๐ ๐ โ `tags` ๐, ๐ โซ๏ธ ๐ซ ๐ฃ ๐ ๐ฃ ๐.
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.1K bytes - Viewed (0) -
docs/zh/docs/tutorial/handling-errors.md
```Python hl_lines="14" {!../../docs_src/handling_errors/tutorial002.py!} ``` ## ๅฎ่ฃ ่ชๅฎไนๅผๅธธๅค็ๅจ ๆทปๅ ่ชๅฎไนๅค็ๅจ๏ผ่ฆไฝฟ็จ [Starlette ็ๅผๅธธๅทฅๅ ท](https://www.starlette.io/exceptions/)ใ ๅ่ฎพ่ฆ่งฆๅ็่ชๅฎไนๅผๅธธๅซไฝ `UnicornException`ใ ไธ้่ฆ FastAPI ๅฎ็ฐๅ จๅฑๅค็่ฏฅๅผๅธธใ ๆญคๆถ๏ผๅฏไปฅ็จ `@app.exception_handler()` ๆทปๅ ่ชๅฎไนๅผๅธธๆงๅถๅจ๏ผ ```Python hl_lines="5-7 13-18 24" {!../../docs_src/handling_errors/tutorial003.py!} ```
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.4K bytes - Viewed (0) -
docs/pt/docs/tutorial/schema-extra-example.md
```Python hl_lines="15-23" {!../../docs_src/schema_extra_example/tutorial001.py!} ``` Essas informaรงรตes extras serรฃo adicionadas como se encontram no **JSON Schema** de resposta desse modelo e serรฃo usadas na documentaรงรฃo da API. /// tip | "Dica"
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.1K bytes - Viewed (0) -
docs/ko/docs/tutorial/request-files.md
/// ## `File` ์ํฌํธ `fastapi` ์์ `File` ๊ณผ `UploadFile` ์ ์ํฌํธ ํฉ๋๋ค: ```Python hl_lines="1" {!../../docs_src/request_files/tutorial001.py!} ``` ## `File` ๋งค๊ฐ๋ณ์ ์ ์ `Body` ๋ฐ `Form` ๊ณผ ๋์ผํ ๋ฐฉ์์ผ๋ก ํ์ผ์ ๋งค๊ฐ๋ณ์๋ฅผ ์์ฑํฉ๋๋ค: ```Python hl_lines="7" {!../../docs_src/request_files/tutorial001.py!} ``` /// info | "์ ๋ณด" `File` ์ `Form` ์ผ๋ก๋ถํฐ ์ง์ ์์๋ ํด๋์ค์ ๋๋ค.
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.1K bytes - Viewed (0)