- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 36 for morto (0.02 sec)
-
docs_src/bigger_applications/app_py39/routers/users.py
from fastapi import APIRouter router = APIRouter() @router.get("/users/", tags=["users"]) async def read_users(): return [{"username": "Rick"}, {"username": "Morty"}] @router.get("/users/me", tags=["users"]) async def read_user_me(): return {"username": "fakecurrentuser"} @router.get("/users/{username}", tags=["users"]) async def read_user(username: str):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 407 bytes - Viewed (0) -
tests/test_tutorial/test_path_operation_configurations/test_tutorial002b.py
assert response.json() == ["Portal gun", "Plumbus"] def test_get_users(): response = client.get("/users/") assert response.status_code == 200, response.text assert response.json() == ["Rick", "Morty"] def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == { "openapi": "3.1.0",
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 1.7K bytes - Viewed (0) -
docs_src/openapi_webhooks/tutorial001_py39.py
data to the URL that you register for the event `new-subscription` in the dashboard. """ @app.get("/users/") def read_users():Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 550 bytes - Viewed (0) -
docs_src/dependencies/tutorial008b_py39.py
from fastapi import Depends, FastAPI, HTTPException app = FastAPI() data = { "plumbus": {"description": "Freshly pickled plumbus", "owner": "Morty"}, "portal-gun": {"description": "Gun to create portals", "owner": "Rick"}, } class OwnerError(Exception): pass def get_username(): try: yield "Rick" except OwnerError as e: raise HTTPException(status_code=400, detail=f"Owner error: {e}")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 735 bytes - Viewed (0) -
tests/test_tutorial/test_dependencies/test_tutorial012.py
"X-Key": "fake-super-secret-key", }, ) assert response.status_code == 200, response.text assert response.json() == [{"username": "Rick"}, {"username": "Morty"}] def test_openapi_schema(client: TestClient): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == { "openapi": "3.1.0",Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 7.7K bytes - Viewed (0) -
docs/en/docs/tutorial/query-params-str-validations.md
For example, this is not allowed: ```Python q: Annotated[str, Query(default="rick")] = "morty" ``` ...because it's not clear if the default value should be `"rick"` or `"morty"`. So, you would use (preferably): ```Python q: Annotated[str, Query()] = "rick" ``` ...or in older code bases you will find: ```Python
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 16.7K bytes - Viewed (0) -
docs/uk/docs/tutorial/query-params-str-validations.md
Наприклад, цей варіант є некоректним: ```Python q: Annotated[str, Query(default="rick")] = "morty" ``` ...тому, що не зрозуміло, яке значення має бути значенням за замовчуванням: `"rick"` чи `"morty"`. Коректні варіанти: ```Python q: Annotated[str, Query()] = "rick" ``` ...або у старих кодових базах Ви знайдете: ```Python
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri May 30 14:17:24 UTC 2025 - 26.1K bytes - Viewed (0) -
docs/ru/docs/tutorial/query-params-str-validations.md
Например, так делать нельзя: ```Python q: Annotated[str, Query(default="rick")] = "morty" ``` ...потому что непонятно, какое значение должно быть по умолчанию: `"rick"` или `"morty"`. Следовательно, используйте (предпочтительно): ```Python q: Annotated[str, Query()] = "rick" ``` ...или в старой кодовой базе вы увидите:
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 26.2K bytes - Viewed (0) -
docs/es/docs/tutorial/metadata.md
| Parámetro | Tipo | Descripción | |------------|------|-------------| | `title` | `str` | El título de la API. | | `summary` | `str` | Un resumen corto de la API. <small>Disponible desde OpenAPI 3.1.0, FastAPI 0.99.0.</small> | | `description` | `str` | Una breve descripción de la API. Puede usar Markdown. |
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 6.4K bytes - Viewed (0) -
docs/es/docs/tutorial/body-nested-models.md
/// ## Resumen { #recap } Con **FastAPI** tienes la máxima flexibilidad proporcionada por los modelos Pydantic, manteniendo tu código simple, corto y elegante. Pero con todos los beneficios: * Soporte de editor (¡autocompletado en todas partes!) * Conversión de datos (también conocido como parsing/serialización) * Validación de datosRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 7.2K bytes - Viewed (0)