- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 320 for posts (0.13 sec)
-
docs_src/security/tutorial003_an_py39.py
current_user: Annotated[User, Depends(get_current_user)], ): if current_user.disabled: raise HTTPException(status_code=400, detail="Inactive user") return current_user @app.post("/token") async def login(form_data: Annotated[OAuth2PasswordRequestForm, Depends()]): user_dict = fake_users_db.get(form_data.username) if not user_dict:
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Mar 26 16:56:53 GMT 2024 - 2.5K bytes - Viewed (0) -
tests/test_tutorial/test_schema_extra_example/test_tutorial001_pv1.py
@pytest.fixture(name="client") def get_client(): from docs_src.schema_extra_example.tutorial001_pv1 import app client = TestClient(app) return client @needs_pydanticv1 def test_post_body_example(client: TestClient): response = client.put( "/items/5", json={ "name": "Foo", "description": "A very nice Item", "price": 35.4,
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 4.4K bytes - Viewed (0) -
docs/em/docs/tutorial/request-files.md
๐ฅ ๐ ๐ โ ๐ ๐ ๐ ๐ข & ๐จ ๐, ๐ณ <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST" class="external-link" target="_blank"><abbr title="Mozilla Developer Network">๐</abbr> ๐ธ ๐ฉบ <code>POST</code></a>. !!! warning ๐ ๐ช ๐ฃ ๐ `File` & `Form` ๐ข *โก ๐ ๏ธ*, โ๏ธ ๐ ๐ช ๐ซ ๐ฃ `Body` ๐ ๐ ๐ โ ๐จ ๐ป, ๐จ ๐ โ๏ธ ๐ช ๐ โ๏ธ `multipart/form-data` โฉ๏ธ `application/json`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Mar 13 19:02:19 GMT 2024 - 6.6K bytes - Viewed (0) -
docs/ko/docs/tutorial/request-files.md
ํ์ง๋ง ํ์ผ์ด ํฌํจ๋ ๊ฒฝ์ฐ, `multipart/form-data`๋ก ์ธ์ฝ๋ฉ๋ฉ๋๋ค. `File`์ ์ฌ์ฉํ์๋ค๋ฉด, **FastAPI**๋ ๋ณธ๋ฌธ์ ์ ํฉํ ๋ถ๋ถ์์ ํ์ผ์ ๊ฐ์ ธ์์ผ ํ๋ค๋ ๊ฒ์ ์ธ์งํฉ๋๋ค. ์ธ์ฝ๋ฉ๊ณผ ํผ ํ๋์ ๋ํด ๋ ์๊ณ ์ถ๋ค๋ฉด, <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST" class="external-link" target="_blank"><code>POST</code>์ ๊ดํ<abbr title="Mozilla Developer Network">MDN</abbr>์น ๋ฌธ์</a> ๋ฅผ ์ฐธ๊ณ ํ๊ธฐ ๋ฐ๋๋๋ค,. !!! warning "๊ฒฝ๊ณ "
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Mar 13 19:02:19 GMT 2024 - 8.1K bytes - Viewed (0) -
tests/test_tutorial/test_schema_extra_example/test_tutorial004_an_py310.py
from docs_src.schema_extra_example.tutorial004_an_py310 import app client = TestClient(app) return client # Test required and embedded body parameters with no bodies sent @needs_py310 def test_post_body_example(client: TestClient): response = client.put( "/items/5", json={ "name": "Foo", "description": "A very nice Item", "price": 35.4,
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 7.1K bytes - Viewed (0) -
tests/test_tutorial/test_schema_extra_example/test_tutorial005_an.py
@pytest.fixture(name="client") def get_client(): from docs_src.schema_extra_example.tutorial005_an import app client = TestClient(app) return client def test_post_body_example(client: TestClient): response = client.put( "/items/5", json={ "name": "Foo", "description": "A very nice Item", "price": 35.4,
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Aug 26 18:03:13 GMT 2023 - 6.7K bytes - Viewed (0) -
docs_src/security/tutorial004.py
async def get_current_active_user(current_user: User = Depends(get_current_user)): if current_user.disabled: raise HTTPException(status_code=400, detail="Inactive user") return current_user @app.post("/token") async def login_for_access_token( form_data: OAuth2PasswordRequestForm = Depends(), ) -> Token: user = authenticate_user(fake_users_db, form_data.username, form_data.password) if not user:
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Mar 26 16:56:53 GMT 2024 - 4K bytes - Viewed (0) -
docs_src/security/tutorial004_an.py
current_user: Annotated[User, Depends(get_current_user)], ): if current_user.disabled: raise HTTPException(status_code=400, detail="Inactive user") return current_user @app.post("/token") async def login_for_access_token( form_data: Annotated[OAuth2PasswordRequestForm, Depends()], ) -> Token: user = authenticate_user(fake_users_db, form_data.username, form_data.password) if not user:
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Mar 26 16:56:53 GMT 2024 - 4.1K bytes - Viewed (0) -
docs/zh/docs/tutorial/response-model.md
# ๅๅบๆจกๅ ไฝ ๅฏไปฅๅจไปปๆ็*่ทฏๅพๆไฝ*ไธญไฝฟ็จ `response_model` ๅๆฐๆฅๅฃฐๆ็จไบๅๅบ็ๆจกๅ๏ผ * `@app.get()` * `@app.post()` * `@app.put()` * `@app.delete()` * ็ญ็ญใ === "Python 3.10+" ```Python hl_lines="17 22 24-27" {!> ../../../docs_src/response_model/tutorial001_py310.py!} ``` === "Python 3.9+" ```Python hl_lines="17 22 24-27" {!> ../../../docs_src/response_model/tutorial001_py39.py!} ``` === "Python 3.8+"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 7.9K bytes - Viewed (0) -
docs/ja/docs/tutorial/response-model.md
# ใฌในใใณในใขใใซ *path operations* ใฎใใใใซใใใฆใใ`response_model`ใใฉใกใผใฟใไฝฟ็จใใฆใใฌในใใณในใฎใขใใซใๅฎฃ่จใใใใจใใงใใพใ: * `@app.get()` * `@app.post()` * `@app.put()` * `@app.delete()` * ใชใฉใ ```Python hl_lines="17" {!../../../docs_src/response_model/tutorial001.py!} ``` !!! note "ๅ่" `response_model`ใฏใใใณใฌใผใฟใใกใฝใใ๏ผ`get`ใ`post`ใชใฉ๏ผใฎใใฉใกใผใฟใงใใใใจใซๆณจๆใใฆใใ ใใใใในใฆใฎใใฉใกใผใฟใใใใฃใฎใใใซใ*path operation้ขๆฐ* ใฎใใฉใกใผใฟใงใฏใใใพใใใ
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.3K bytes - Viewed (0)