- Sort Score
- Result 10 results
- Languages All
Results 1881 - 1890 of 1,929 for FastAPI (0.12 sec)
-
docs/en/docs/tutorial/security/get-current-user.md
This will help us inside of the function with all the completion and type checks. /// tip You might remember that request bodies are also declared with Pydantic models. Here **FastAPI** won't get confused because you are using `Depends`. /// /// check The way this dependency system is designed allows us to have different dependencies (different "dependables") that all return a `User` model.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.4K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial005_an_py310.py
import pytest from dirty_equals import IsDict, IsOneOf from fastapi.testclient import TestClient from ...utils import needs_py310 @pytest.fixture(name="client") def get_client(): from docs_src.security.tutorial005_an_py310 import app client = TestClient(app) return client def get_access_token( *, username="johndoe", password="secret", scope=None, client: TestClient ):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Mar 13 19:07:10 UTC 2024 - 16.3K bytes - Viewed (0) -
tests/test_tutorial/test_sql_databases/test_tutorial002.py
import importlib import warnings import pytest from dirty_equals import IsDict, IsInt from fastapi.testclient import TestClient from inline_snapshot import snapshot from sqlalchemy import StaticPool from sqlmodel import SQLModel, create_engine from sqlmodel.main import default_registry from tests.utils import needs_py39, needs_py310 def clear_sqlmodel(): # Clear the tables in the metadata for the default base model
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Oct 09 19:44:42 UTC 2024 - 19.9K bytes - Viewed (0) -
docs/em/docs/how-to/conditional-openapi.md
๐ผ: ```Python hl_lines="6 11" {!../../docs_src/conditional_openapi/tutorial001.py!} ``` ๐ฅ ๐ฅ ๐ฃ โ `openapi_url` โฎ๏ธ ๐ ๐ข `"/openapi.json"`. & โคด๏ธ ๐ฅ โ๏ธ โซ๏ธ ๐โ ๐ `FastAPI` ๐ฑ. โคด๏ธ ๐ ๐ช โ ๐ (โ ๐ ๐ฉบ) โ ๐ ๐ข `OPENAPI_URL` ๐ ๐ป, ๐: <div class="termy"> ```console $ OPENAPI_URL= uvicorn main:app
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/advanced/response-change-status-code.md
```Python hl_lines="1 9 12" {!../../docs_src/response_change_status_code/tutorial001.py!} ``` ๊ทธ๋ฆฌ๊ณ ํ์์ฒ๋ผ ์ํ๋ ๊ฐ์ฒด(`dict`, ๋ฐ์ดํฐ๋ฒ ์ด์ค ๋ชจ๋ธ ๋ฑ)๋ฅผ ๋ฐํํ ์ ์์ต๋๋ค. `response_model`์ ์ ์ธํ๋ค๋ฉด ๋ฐํ๋ ๊ฐ์ฒด๋ ์ฌ์ ํ ํํฐ๋ง๋๊ณ ๋ณํ๋ฉ๋๋ค. **FastAPI**๋ ์ด *์์* ์๋ต ๊ฐ์ฒด์์ ์ํ ์ฝ๋(์ฟ ํค์ ํค๋ ํฌํจ)๋ฅผ ์ถ์ถํ์ฌ, `response_model`๋ก ํํฐ๋ง๋ ๋ฐํ ๊ฐ์ ์ต์ข ์๋ต์ ๋ฃ์ต๋๋ค.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 27 22:01:39 UTC 2024 - 1.8K bytes - Viewed (0) -
tests/test_tutorial/test_bigger_applications/test_main_an_py39.py
import pytest from dirty_equals import IsDict from fastapi.testclient import TestClient from ...utils import needs_py39 @pytest.fixture(name="client") def get_client(): from docs_src.bigger_applications.app_an_py39.main import app client = TestClient(app) return client @needs_py39 def test_users_token_jessica(client: TestClient): response = client.get("/users?token=jessica")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 24.9K bytes - Viewed (0) -
tests/test_tutorial/test_bigger_applications/test_main_an.py
import pytest from dirty_equals import IsDict from fastapi.testclient import TestClient @pytest.fixture(name="client") def get_client(): from docs_src.bigger_applications.app_an.main import app client = TestClient(app) return client def test_users_token_jessica(client: TestClient): response = client.get("/users?token=jessica") assert response.status_code == 200
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 24.6K bytes - Viewed (0) -
docs/pt/docs/deployment/https.md
prรกtica comum ter um programa/servidor HTTP em execuรงรฃo no servidor (mรกquina, host, etc.) e gerenciar todas as partes HTTPS: enviando as solicitaรงรตes HTTP descriptografadas para o aplicativo HTTP real em execuรงรฃo no mesmo servidor (a aplicaรงรฃo **FastAPI**, neste caso), pegue a resposta HTTP do aplicativo, criptografe-a usando o certificado apropriado e envie-a de volta ao cliente usando HTTPS. Este servidor รฉ frequentemente chamado de <a href="https://en.wikipedia.org/wiki/TLS_termination_proxy"...
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Aug 06 04:48:30 UTC 2024 - 3.9K bytes - Viewed (0) -
docs/ru/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md
## ะะปะพะฑะฐะปัะฝัะน Dependencies
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.4K bytes - Viewed (0) -
docs/en/docs/how-to/conditional-openapi.md
For example: {* ../../docs_src/conditional_openapi/tutorial001.py hl[6,11] *} Here we declare the setting `openapi_url` with the same default of `"/openapi.json"`. And then we use it when creating the `FastAPI` app. Then you could disable OpenAPI (including the UI docs) by setting the environment variable `OPENAPI_URL` to the empty string, like: <div class="termy"> ```console $ OPENAPI_URL= uvicorn main:app
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon Oct 28 11:21:54 UTC 2024 - 2.3K bytes - Viewed (0)