- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 295 for declarar (0.12 sec)
-
docs/pt/docs/tutorial/dependencies/sub-dependencies.md
``` //// Esse código declara um parâmetro de consulta opcional, `q`, com o tipo `str`, e então retorna esse parâmetro. Isso é bastante simples (e não muito útil), mas irá nos ajudar a focar em como as subdependências funcionam. ## Segunda dependência, "injetável" e "dependente"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.9K bytes - Viewed (0) -
docs/en/docs/tutorial/response-model.md
## `response_model` Parameter There are some cases where you need or want to return some data that is not exactly what the type declares. For example, you could want to **return a dictionary** or a database object, but **declare it as a Pydantic model**. This way the Pydantic model would do all the data documentation, validation, etc. for the object that you returned (e.g. a dictionary or database object).
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 18.1K bytes - Viewed (0) -
docs/fr/docs/tutorial/query-params-str-validations.md
```Python q: str ``` à la place de : ```Python q: Union[str, None] = None ``` Mais maintenant, on déclare `q` avec `Query`, comme ceci : ```Python q: Union[str, None] = Query(default=None, min_length=3) ``` Donc pour déclarer une valeur comme requise tout en utilisant `Query`, il faut utiliser `...` comme premier argument :
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 27 17:14:38 UTC 2024 - 9.5K bytes - Viewed (0) -
docs/en/docs/advanced/security/oauth2-scopes.md
It will always have the security scopes declared in the current `Security` dependencies and all the dependants for **that specific** *path operation* and **that specific** dependency tree. Because the `SecurityScopes` will have all the scopes declared by dependants, you can use it to verify that a token has the required scopes in a central dependency function, and then declare different scope requirements in different *path operations*.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Oct 29 11:02:16 UTC 2024 - 13.1K bytes - Viewed (0) -
docs/fr/docs/tutorial/path-params.md
vous verrez comme réponse : ```JSON {"item_id":"foo"} ``` ## Paramètres de chemin typés Vous pouvez déclarer le type d'un paramètre de chemin dans la fonction, en utilisant les annotations de type Python : ```Python hl_lines="7" {!../../docs_src/path_params/tutorial002.py!} ``` Ici, `item_id` est déclaré comme `int`. /// check | "vérifier"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 10K bytes - Viewed (0) -
docs/fr/docs/alternatives.md
Hug a contribué à inspirer **FastAPI** pour utiliser les type hints Python pour déclarer les paramètres, et pour générer automatiquement un schéma définissant l'API. Hug a inspiré **FastAPI** pour déclarer un paramètre `response` dans les fonctions pour définir les en-têtes et les cookies. ///
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 20 19:20:23 UTC 2024 - 27.6K bytes - Viewed (0) -
docs/fr/docs/tutorial/path-params-numeric-validations.md
/// ## Déclarer des métadonnées Vous pouvez déclarer les mêmes paramètres que pour `Query`. Par exemple, pour déclarer une valeur de métadonnée `title` pour le paramètre de chemin `item_id`, vous pouvez écrire :
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon Oct 28 10:32:37 UTC 2024 - 6.9K bytes - Viewed (0) -
docs/en/docs/tutorial/security/simple-oauth2.md
Each "scope" is just a string (without spaces). They are normally used to declare specific security permissions, for example: * `users:read` or `users:write` are common examples. * `instagram_basic` is used by Facebook / Instagram. * `https://www.googleapis.com/auth/drive` is used by Google. /// info In OAuth2 a "scope" is just a string that declares a specific permission required.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 12.3K bytes - Viewed (0) -
docs/pt/docs/tutorial/security/first-steps.md
Esse parâmetro não cria um endpoint / *path operation*, mas declara que a URL `/token` vai ser aquela que o client deve usar para obter o token. Essa informação é usada no OpenAPI, e depois na API Interativa de documentação de sistemas. Em breve também criaremos o atual path operation.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.4K bytes - Viewed (0) -
docs/en/docs/tutorial/path-params-numeric-validations.md
/// ## Declare metadata You can declare all the same parameters as for `Query`. For example, to declare a `title` metadata value for the path parameter `item_id` you can type: //// tab | Python 3.10+ ```Python hl_lines="10"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.8K bytes - Viewed (0)