- Sort Score
- Result 10 results
- Languages All
Results 801 - 810 of 877 for tutorial002 (0.14 sec)
-
tests/test_tutorial/test_generate_clients/test_tutorial003.py
from fastapi.testclient import TestClient from docs_src.generate_clients.tutorial003 import app client = TestClient(app) def test_post_items(): response = client.post("/items/", json={"name": "Foo", "price": 5}) assert response.status_code == 200, response.text assert response.json() == {"message": "Item received"} def test_post_users(): response = client.post(
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 7.1K bytes - Viewed (0) -
docs/em/docs/how-to/graphql.md
โ๏ธ ๐ ๐ โ๏ธ ๐ผ, ๐ 5๏ธโฃ๐ ๐ โ๏ธ ๐ ๐, โ๏ธ ๐ฅ ๐ ๐ญ ๐ค, ๐ค ๐ ๐ฒ ๐ค ๐ ๐ **๐**. ๐ฅ ๐คช ๐ฎ โ ๐ ๐ช ๐ ๏ธ ๐ โฎ๏ธ FastAPI: ```Python hl_lines="3 22 25-26" {!../../docs_src/graphql/tutorial001.py!} ``` ๐ ๐ช ๐ก ๐ ๐ ๐ <a href="https://strawberry.rocks/" class="external-link" target="_blank">๐ ๐งพ</a>.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3K bytes - Viewed (0) -
docs/em/docs/advanced/templates.md
* ๐ฃ `Request` ๐ข *โก ๐ ๏ธ* ๐ ๐ ๐จ ๐. * โ๏ธ `templates` ๐ โ โ & ๐จ `TemplateResponse`, ๐ถโโ๏ธ `request` 1๏ธโฃ ๐-๐ฒ ๐ซ Jinja2๏ธโฃ "๐". ```Python hl_lines="4 11 15-18" {!../../docs_src/templates/tutorial001.py!} ``` /// note ๐ ๐ ๐ โ๏ธ ๐ถโโ๏ธ `request` ๐ ๐-๐ฒ ๐ซ ๐ Jinja2๏ธโฃ. , ๐ โ๏ธ ๐ฃ โซ๏ธ ๐ *โก ๐ ๏ธ*. /// /// tip ๐ฃ `response_class=HTMLResponse` ๐ฉบ ๐ ๐ ๐ช ๐ญ ๐ ๐จ ๐ ๐ธ. ///
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.1K bytes - Viewed (0) -
docs/em/docs/advanced/using-request-directly.md
โ๏ธ ๐ค ๐ฏ ๐ผ ๐โ โซ๏ธ โ ๐ค `Request` ๐. ## โ๏ธ `Request` ๐ ๐ โก๏ธ ๐ ๐ ๐ ๐ค ๐ฉโ๐ป ๐ข ๐ข/๐ฆ ๐ ๐ *โก ๐ ๏ธ ๐ข*. ๐ ๐ ๐ช ๐ ๐จ ๐. ```Python hl_lines="1 7-8" {!../../docs_src/using_request_directly/tutorial001.py!} ``` ๐ฃ *โก ๐ ๏ธ ๐ข* ๐ข โฎ๏ธ ๐ โ `Request` **FastAPI** ๐ ๐ญ ๐ถโโ๏ธ `Request` ๐ ๐ข. /// tip ๐ ๐ ๐ ๐ผ, ๐ฅ ๐ฃ โก ๐ข โคด๏ธ ๐จ ๐ข. , โก ๐ข ๐ โ, โ, ๐ โ ๐ & โ โฎ๏ธ ๐.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.8K bytes - Viewed (0) -
docs/zh/docs/tutorial/static-files.md
# ้ๆๆไปถ ๆจๅฏไปฅไฝฟ็จ `StaticFiles`ไป็ฎๅฝไธญ่ชๅจๆไพ้ๆๆไปถใ ## ไฝฟ็จ`StaticFiles` * ๅฏผๅ ฅ`StaticFiles`ใ * "ๆ่ฝฝ"(Mount) ไธไธช `StaticFiles()` ๅฎไพๅฐไธไธชๆๅฎ่ทฏๅพใ ```Python hl_lines="2 6" {!../../docs_src/static_files/tutorial001.py!} ``` /// note | "ๆๆฏ็ป่" ไฝ ไนๅฏไปฅ็จ `from starlette.staticfiles import StaticFiles`ใ **FastAPI** ๆไพไบๅ `starlette.staticfiles` ็ธๅ็ `fastapi.staticfiles` ๏ผๅชๆฏไธบไบๆนไพฟไฝ ๏ผๅผๅ่ ใไฝๅฎ็กฎๅฎๆฅ่ชStarletteใ /// ### ไปไนๆฏ"ๆ่ฝฝ"(Mounting)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.4K bytes - Viewed (0) -
docs/em/docs/tutorial/cors.md
๐ ๐ช โ ๐ฅ ๐ ๐ฉโ๐ป โ: * ๐ (โ ๐, ๐ช, โ๏ธ). * ๐ฏ ๐บ๐ธ๐ ๐ฉโ๐ฌ (`POST`, `PUT`) โ๏ธ ๐ ๐ซ โฎ๏ธ ๐ `"*"`. * ๐ฏ ๐บ๐ธ๐ ๐ โ๏ธ ๐ ๐ซ โฎ๏ธ ๐ `"*"`. ```Python hl_lines="2 6-11 13-19" {!../../docs_src/cors/tutorial001.py!} ``` ๐ข ๐ข โ๏ธ `CORSMiddleware` ๐ ๏ธ ๐ซ ๐ข, ๐ ๐ ๐ช ๐ฏ ๐ ๏ธ ๐ฏ ๐จ๐ณ, ๐ฉโ๐ฌ, โ๏ธ ๐, โ ๐ฅ โ โ๏ธ ๐ซ โ๏ธ-๐ ๐. ๐ โ ๐โ๐ฆบ:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.1K bytes - Viewed (0) -
docs/zh/docs/advanced/using-request-directly.md
ไธ่ฟ๏ผไปๅฏไปฅ้ช่ฏใ่ฝฌๆขไธๆณจ้๏ผไฝฟ็จ Pydantic ๆจกๅ็่ฏทๆฑไฝ็ญ๏ผๅ ถๅฎๆญฃๅธธๅฃฐๆ็ๅๆฐใ ไฝๅจๆไบ็นๅฎๆ ๅตไธ๏ผ่ฟๆฏ้่ฆๆๅ `Request` ๅฏน่ฑกใ ## ็ดๆฅไฝฟ็จ `Request` ๅฏน่ฑก ๅ่ฎพ่ฆๅจ*่ทฏๅพๆไฝๅฝๆฐ*ไธญ่ทๅๅฎขๆท็ซฏ IP ๅฐๅๅไธปๆบใ ๆญคๆถ๏ผ้่ฆ็ดๆฅ่ฎฟ้ฎ่ฏทๆฑใ ```Python hl_lines="1 7-8" {!../../docs_src/using_request_directly/tutorial001.py!} ``` ๆ*่ทฏๅพๆไฝๅฝๆฐ*็ๅๆฐ็ฑปๅๅฃฐๆไธบ `Request`๏ผ**FastAPI** ๅฐฑ่ฝๆ `Request` ไผ ้ๅฐๅๆฐ้ใ /// tip | "ๆ็คบ" ๆณจๆ๏ผๆฌไพ้คไบๅฃฐๆ่ฏทๆฑๅๆฐไนๅค๏ผ่ฟๅฃฐๆไบ่ทฏๅพๅๆฐใ ๅ ๆญค๏ผ่ฝๅคๆๅใ้ช่ฏ่ทฏๅพๅๆฐใๅนถ่ฝฌๆขไธบๆๅฎ็ฑปๅ๏ผ่ฟๅฏไปฅ็จ OpenAPI ๆณจ้ใ ๅๆ ท๏ผๆจไนๅฏไปฅๆญฃๅธธๅฃฐๆๅ ถๅฎๅๆฐ๏ผ่ไธ่ฟๅฏไปฅๆๅ `Request`ใ
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2K bytes - Viewed (0) -
docs/ko/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` ๋ฅผ ์ฌ์ฉํ ์๋ ์์ต๋๋ค.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2K bytes - Viewed (0) -
docs/pt/docs/how-to/conditional-openapi.md
Vocรช pode usar facilmente as mesmas configuraรงรตes do Pydantic para configurar sua OpenAPI gerada e as interfaces de usuรกrio de documentos. Por exemplo: ```Python hl_lines="6 11" {!../../docs_src/conditional_openapi/tutorial001.py!} ``` Aqui declaramos a configuraรงรฃo `openapi_url` com o mesmo padrรฃo de `"/openapi.json"`. E entรฃo o usamos ao criar o aplicativo `FastAPI`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.6K bytes - Viewed (0) -
docs/en/docs/tutorial/debugging.md
## Call `uvicorn` In your FastAPI application, import and run `uvicorn` directly: ```Python hl_lines="1 15" {!../../docs_src/debugging/tutorial001.py!} ``` ### About `__name__ == "__main__"` The main purpose of the `__name__ == "__main__"` is to have some code that is executed when your file is called with: <div class="termy"> ```console
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.4K bytes - Viewed (0)