- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 507 for modAlt (0.14 sec)
-
docs/en/docs/advanced/generate-clients.md
You can see those schemas because they were declared with the models in the app. That information is available in the app's **OpenAPI schema**, and then shown in the API docs (by Swagger UI). And that same information from the models that is included in OpenAPI is what can be used to **generate the client code**. ### Generate a TypeScript Client Now that we have the app with the models, we can generate the client code for the frontend.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 10.7K bytes - Viewed (0) -
fastapi/encoders.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 21:56:59 UTC 2024 - 10.8K bytes - Viewed (0) -
docs_src/sql_databases_peewee/sql_app/main.py
import time from typing import List from fastapi import Depends, FastAPI, HTTPException from . import crud, database, models, schemas from .database import db_state_default database.db.connect() database.db.create_tables([models.User, models.Item]) database.db.close() app = FastAPI() sleep_time = 10 async def reset_db_state(): database.db._state._state.set(db_state_default.copy()) database.db._state.reset()
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Mar 26 19:09:53 UTC 2020 - 2.2K bytes - Viewed (0) -
docs/pt/docs/how-to/separate-openapi-schemas.md
### Modelo de Entrada na Documentação Você pode confirmar que na documentação, o campo `description` não tem um **asterisco vermelho**, não é marcado como obrigatório: <div class="screenshot"> <img src="/img/tutorial/separate-openapi-schemas/image01.png"> </div> ### Modelo para Saída Mas se você usar o mesmo modelo como saída, como aqui: //// tab | Python 3.10+
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Oct 24 18:52:36 UTC 2024 - 6.8K bytes - Viewed (0) -
docs/de/docs/tutorial/security/get-current-user.md
Und Sie können alle Modelle und Daten für die Sicherheitsanforderungen verwenden (in diesem Fall ein Pydantic-Modell `User`). Sie sind jedoch nicht auf die Verwendung von bestimmten Datenmodellen, Klassen, oder Typen beschränkt. Möchten Sie eine `id` und eine `email` und keinen `username` in Ihrem Modell haben? Kein Problem. Sie können dieselben Tools verwenden.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.3K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/PathType.java
* {@code {"--module-path", "dir/path1:dir/path2"}} on Unix or * {@code {"--module-path", "dir\path1;dir\path2"}} on Windows.</li> * <li>If this type was created by {@code JavaPathType.patchModule("foo.bar")}, then the method returns * {@code {"--patch-module", "foo.bar=dir/path1:dir/path2"}} on Unix or * {@code {"--patch-module", "foo.bar=dir\path1;dir\path2"}} on Windows.</li>
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Sat Sep 28 09:03:24 UTC 2024 - 5K bytes - Viewed (0) -
docs/pt/docs/deployment/manually.md
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Sep 20 11:10:02 UTC 2024 - 8.2K bytes - Viewed (0) -
docs/pl/docs/tutorial/first-steps.md
{* ../../docs_src/first_steps/tutorial001.py hl[8] *} Możesz zwrócić `dict`, `list`, pojedynczą wartość jako `str`, `int`, itp. Możesz również zwrócić modele Pydantic (więcej o tym później). Istnieje wiele innych obiektów i modeli, które zostaną automatycznie skonwertowane do formatu JSON (w tym ORM itp.). Spróbuj użyć swoich ulubionych, jest bardzo prawdopodobne, że są już obsługiwane. ## Podsumowanie
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 27 16:51:30 UTC 2024 - 9.6K bytes - Viewed (0) -
tests/test_tutorial/test_path_params/test_tutorial005.py
client = TestClient(app) def test_get_enums_alexnet(): response = client.get("/models/alexnet") assert response.status_code == 200 assert response.json() == {"model_name": "alexnet", "message": "Deep Learning FTW!"} def test_get_enums_lenet(): response = client.get("/models/lenet") assert response.status_code == 200
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Sep 28 04:14:40 UTC 2023 - 5K bytes - Viewed (0) -
docs/pt/docs/tutorial/body.md
{!../../docs_src/body/tutorial001.py!} ``` ## Crie seu modelo de dados Então você declara seu modelo de dados como uma classe que herda `BaseModel`. Utilize os tipos Python padrão para todos os atributos: ```Python hl_lines="7-11" {!../../docs_src/body/tutorial001.py!} ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.1K bytes - Viewed (0)