- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 251 for declare (0.17 sec)
-
android/guava/src/com/google/common/collect/Platform.java
* @param reference any array of the desired type * @param length the length of the new array */ /* * The new array contains nulls, even if the old array did not. If we wanted to be accurate, we * would declare a return type of `@Nullable T[]`. However, we've decided not to think too hard * about arrays for now, as they're a mess. (We previously discussed this in the review of * ObjectArrays, which is the main caller of this method.)
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 21:19:52 GMT 2024 - 4.9K bytes - Viewed (0) -
docs/pt/docs/tutorial/body-multiple-params.md
## Declare um único parâmetro de corpo indicando sua chave Suponha que você tem um único parâmetro de corpo `item`, a partir de um modelo Pydantic `Item`. Por padrão, o **FastAPI** esperará que seu conteúdo venha no corpo diretamente.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 6K bytes - Viewed (0) -
docs/en/docs/advanced/dataclasses.md
# Using Dataclasses FastAPI is built on top of **Pydantic**, and I have been showing you how to use Pydantic models to declare requests and responses. But FastAPI also supports using <a href="https://docs.python.org/3/library/dataclasses.html" class="external-link" target="_blank">`dataclasses`</a> the same way: ```Python hl_lines="1 7-12 19-20" {!../../../docs_src/dataclasses/tutorial001.py!} ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 4.1K bytes - Viewed (0) -
docs/en/docs/tutorial/bigger-applications.md
```Python hl_lines="1 3" title="app/routers/users.py" {!../../../docs_src/bigger_applications/app/routers/users.py!} ``` ### *Path operations* with `APIRouter` And then you use it to declare your *path operations*. Use it the same way you would use the `FastAPI` class: ```Python hl_lines="6 11 16" title="app/routers/users.py" {!../../../docs_src/bigger_applications/app/routers/users.py!} ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 18.6K bytes - Viewed (0) -
docs/en/docs/how-to/conditional-openapi.md
You can easily use the same Pydantic settings to configure your generated OpenAPI and the docs UIs. For example: ```Python hl_lines="6 11" {!../../../docs_src/conditional_openapi/tutorial001.py!} ``` Here we declare the setting `openapi_url` with the same default of `"/openapi.json"`. And then we use it when creating the `FastAPI` app.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Aug 19 19:54:04 GMT 2023 - 2.3K bytes - Viewed (0) -
docs/pt/docs/advanced/templates.md
<div class="termy"> ```console $ pip install jinja2 ``` </div> ## Usando `Jinja2Templates` * Importe `Jinja2Templates`. * Crie um `templates` que você possa reutilizar posteriormente. * Declare um parâmetro `Request` no *path operation* que retornará um template.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Mar 28 04:05:17 GMT 2024 - 3.4K bytes - Viewed (0) -
docs/pt/docs/advanced/events.md
Essas funções podem ser declaradas com `async def` ou `def` normal. ### Evento `startup` Para adicionar uma função que deve rodar antes da aplicação iniciar, declare-a com o evento `"startup"`: ```Python hl_lines="8" {!../../../docs_src/events/tutorial001.py!} ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 8.6K bytes - Viewed (0) -
docs/pt/docs/tutorial/body-nested-models.md
```Python hl_lines="1" {!../../../docs_src/body_nested_models/tutorial002.py!} ``` ### Declare a `List` com um parâmetro de tipo Para declarar tipos que têm parâmetros de tipo(tipos internos), como `list`, `dict`, `tuple`: * Importe os do modulo `typing` * Passe o(s) tipo(s) interno(s) como "parâmetros de tipo" usando colchetes: `[` e `]` ```Python from typing import List my_list: List[str] ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 7.4K bytes - Viewed (0) -
docs/en/docs/advanced/behind-a-proxy.md
And it's also used internally when mounting sub-applications. ## Proxy with a stripped path prefix Having a proxy with a stripped path prefix, in this case, means that you could declare a path at `/app` in your code, but then, you add a layer on top (the proxy) that would put your **FastAPI** application under a path like `/api/v1`. In this case, the original path `/app` would actually be served at `/api/v1/app`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 02 22:37:31 GMT 2024 - 11.6K bytes - Viewed (2) -
ci/official/utilities/setup.sh
echo 'If you have not, you will see a lot of undefined variable errors.' else FROM_ENV=$(mktemp) # "export -p" prints a list of environment values in a safe-to-source format, # e.g. `declare -x TFCI_BAZEL_COMMON_ARGS="list of args"` for bash. export -p | grep TFCI > "$FROM_ENV" # Source the default ci values source ./ci/official/envs/ci_default # TODO(angerson) write this documentation
Shell Script - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri Jan 26 00:33:34 GMT 2024 - 5.2K bytes - Viewed (1)