- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 566 for Model2 (0.04 sec)
-
docs/pt/docs/tutorial/response-status-code.md
# Código de status de resposta Da mesma forma que você pode especificar um modelo de resposta, você também pode declarar o código de status HTTP usado para a resposta com o parâmetro `status_code` em qualquer uma das *operações de caminho*: * `@app.get()` * `@app.post()` * `@app.put()` * `@app.delete()` * etc. ```Python hl_lines="6" {!../../docs_src/response_status_code/tutorial001.py!} ``` /// note | "Nota"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.3K bytes - Viewed (0) -
docs_src/events/tutorial003.py
return x * 42 ml_models = {} @asynccontextmanager async def lifespan(app: FastAPI): # Load the ML model ml_models["answer_to_everything"] = fake_answer_to_everything_ml_model yield # Clean up the ML models and release the resources ml_models.clear() app = FastAPI(lifespan=lifespan) @app.get("/predict") async def predict(x: float):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Mar 07 15:46:00 UTC 2023 - 569 bytes - Viewed (0) -
docs/en/docs/advanced/settings.md
### Create the `Settings` object Import `BaseSettings` from Pydantic and create a sub-class, very much like with a Pydantic model. The same way as with Pydantic models, you declare class attributes with type annotations, and possibly default values. You can use all the same validation features and tools you use for Pydantic models, like different data types and additional validations with `Field()`. //// tab | Pydantic v2
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 12.9K bytes - Viewed (0) -
docs/pt/docs/tutorial/security/simple-oauth2.md
hashed_password = user_dict["hashed_password"], ) ``` /// info | Informação Para uma explicação mais completa de `**user_dict`, verifique [a documentação para **Extra Models**](../extra-models.md#about-user_indict){.internal-link target=_blank}. /// ## Retorne o token A resposta do endpoint `token` deve ser um objeto JSON.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Oct 31 12:17:45 UTC 2024 - 13.3K bytes - Viewed (0) -
fastapi/utils.py
"field (e.g. Union[Response, dict, None]) you can disable generating the " "response model from the type annotation with the path operation decorator " "parameter response_model=None. Read more: " "https://fastapi.tiangolo.com/tutorial/response-model/" ) from None def create_cloned_field( field: ModelField, *,
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Aug 31 23:46:03 UTC 2024 - 7.8K bytes - Viewed (0) -
docs/en/docs/tutorial/security/get-current-user.md
We are not restricted to having only one dependency that can return that type of data. /// ## Other models You can now get the current user directly in the *path operation functions* and deal with the security mechanisms at the **Dependency Injection** level, using `Depends`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.4K bytes - Viewed (0) -
compat/maven-compat/pom.xml
<artifactId>modello-maven-plugin</artifactId> <configuration> <version>1.0.0</version> <models> <model>src/main/mdo/profiles.mdo</model> <model>src/main/mdo/paramdoc.mdo</model> </models> </configuration> <executions> <execution> <id>modello</id> <goals>
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.4K bytes - Viewed (0) -
scripts/playwright/header_param_models/image01.py
page.get_by_role("button", name="GET /items/ Read Items").click() page.get_by_role("button", name="Try it out").click() # Manually add the screenshot page.screenshot(path="docs/en/docs/img/tutorial/header-param-models/image01.png") # --------------------- context.close() browser.close() process = subprocess.Popen( ["fastapi", "run", "docs_src/header_param_models/tutorial001.py"] ) try:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Sep 17 18:54:10 UTC 2024 - 1.1K bytes - Viewed (0) -
scripts/playwright/request_form_models/image01.py
page.get_by_role("button", name="POST /login/ Login").click() page.get_by_role("button", name="Try it out").click() # Manually add the screenshot page.screenshot(path="docs/en/docs/img/tutorial/request-form-models/image01.png") # --------------------- context.close() browser.close() process = subprocess.Popen( ["fastapi", "run", "docs_src/request_form_models/tutorial001.py"] ) try:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Sep 13 09:14:46 UTC 2024 - 1.1K bytes - Viewed (0) -
docs/de/docs/tutorial/testing.md
/// info Beachten Sie, dass der `TestClient` Daten empfängt, die nach JSON konvertiert werden können, keine Pydantic-Modelle. Wenn Sie ein Pydantic-Modell in Ihrem Test haben und dessen Daten während des Testens an die Anwendung senden möchten, können Sie den `jsonable_encoder` verwenden, der in [JSON-kompatibler Encoder](encoder.md){.internal-link target=_blank} beschrieben wird. ///
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.9K bytes - Viewed (0)