- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 292 for tutorial003_an_py310 (0.09 sec)
-
docs/zh/docs/tutorial/body-multiple-params.md
例如,为了扩展先前的模型,你可能决定除了 `item` 和 `user` 之外,还想在同一请求体中具有另一个键 `importance`。 如果你就按原样声明它,因为它是一个单一值,**FastAPI** 将假定它是一个查询参数。 但是你可以使用 `Body` 指示 **FastAPI** 将其作为请求体的另一个键进行处理。 {* ../../docs_src/body_multiple_params/tutorial003_an_py310.py hl[23] *} 在这种情况下,**FastAPI** 将期望像这样的请求体: ```JSON { "item": { "name": "Foo", "description": "The pretender", "price": 42.0, "tax": 3.2 },Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 4.7K bytes - Viewed (0) -
docs/zh/docs/tutorial/schema-extra-example.md
请记住,传递的那些额外参数不会添加任何验证,只会添加注释,用于文档的目的。 /// ## `Body` 额外参数 你可以通过传递额外信息给 `Field` 同样的方式操作`Path`, `Query`, `Body`等。 比如,你可以将请求体的一个 `example` 传递给 `Body`: {* ../../docs_src/schema_extra_example/tutorial003_an_py310.py hl[22:27] *} ## 文档 UI 中的例子 使用上面的任何方法,它在 `/docs` 中看起来都是这样的: <img src="/img/tutorial/body-fields/image01.png"> ## 技术细节 关于 `example` 和 `examples`...Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 2.4K bytes - Viewed (0) -
docs/pt/docs/tutorial/schema-extra-example.md
### `Body` com `examples` { #body-with-examples } Aqui passamos `examples` contendo um exemplo dos dados esperados em `Body()`: {* ../../docs_src/schema_extra_example/tutorial003_an_py310.py hl[22:29] *} ### Exemplo na UI da documentação { #example-in-the-docs-ui } Com qualquer um dos métodos acima, ficaria assim em `/docs`: <img src="/img/tutorial/body-fields/image01.png">Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Nov 12 16:23:57 UTC 2025 - 10.3K bytes - Viewed (0) -
docs/es/docs/tutorial/schema-extra-example.md
### `Body` con `examples` { #body-with-examples } Aquí pasamos `examples` que contiene un ejemplo de los datos esperados en `Body()`: {* ../../docs_src/schema_extra_example/tutorial003_an_py310.py hl[22:29] *} ### Ejemplo en la interfaz de documentación { #example-in-the-docs-ui } Con cualquiera de los métodos anteriores se vería así en los `/docs`: <img src="/img/tutorial/body-fields/image01.png">Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 16 16:33:45 UTC 2025 - 10.3K bytes - Viewed (0) -
docs/ru/docs/tutorial/schema-extra-example.md
### `Body` с `examples` { #body-with-examples } Здесь мы передаём `examples`, содержащий один пример данных, ожидаемых в `Body()`: {* ../../docs_src/schema_extra_example/tutorial003_an_py310.py hl[22:29] *} ### Пример в UI документации { #example-in-the-docs-ui } С любым из перечисленных выше методов это будет выглядеть так в `/docs`: <img src="/img/tutorial/body-fields/image01.png">Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Sep 30 11:24:39 UTC 2025 - 14.8K bytes - Viewed (0) -
docs/en/docs/tutorial/query-params-str-validations.md
{* ../../docs_src/query_params_str_validations/tutorial003_an_py310.py hl[10] *} ## Add regular expressions { #add-regular-expressions } You can define a <abbr title="A regular expression, regex or regexp is a sequence of characters that define a search pattern for strings.">regular expression</abbr> `pattern` that the parameter should match: {* ../../docs_src/query_params_str_validations/tutorial004_an_py310.py hl[11] *}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/ru/docs/tutorial/query-params-str-validations.md
/// Можно задать `title`: {* ../../docs_src/query_params_str_validations/tutorial007_an_py310.py hl[10] *} И `description`: {* ../../docs_src/query_params_str_validations/tutorial008_an_py310.py hl[14] *} ## Псевдонимы параметров { #alias-parameters } Представьте, что вы хотите, чтобы параметр назывался `item-query`. Например: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/de/docs/tutorial/schema-extra-example.md
### `Body` mit `examples` { #body-with-examples } Hier übergeben wir `examples`, welches ein einzelnes Beispiel für die in `Body()` erwarteten Daten enthält: {* ../../docs_src/schema_extra_example/tutorial003_an_py310.py hl[22:29] *} ### Beispiel in der Dokumentations-Benutzeroberfläche { #example-in-the-docs-ui } Mit jeder der oben genannten Methoden würde es in `/docs` so aussehen:Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 24 10:28:19 UTC 2025 - 10.6K bytes - Viewed (0) -
docs/en/docs/tutorial/schema-extra-example.md
### `Body` with `examples` { #body-with-examples } Here we pass `examples` containing one example of the data expected in `Body()`: {* ../../docs_src/schema_extra_example/tutorial003_an_py310.py hl[22:29] *} ### Example in the docs UI { #example-in-the-docs-ui } With any of the methods above it would look like this in the `/docs`: <img src="/img/tutorial/body-fields/image01.png">Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 8.9K bytes - Viewed (0) -
docs/uk/docs/tutorial/query-params-str-validations.md
{* ../../docs_src/query_params_str_validations/tutorial003_an_py310.py hl[10] *} ## Додавання регулярних виразів Ви можете визначити <abbr title="Регулярний вираз (regex або regexp) — це послідовність символів, яка визначає шаблон для пошуку в рядках.">регулярний вираз</abbr> pattern, якому має відповідати параметр: {* ../../docs_src/query_params_str_validations/tutorial004_an_py310.py hl[11] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri May 30 14:17:24 UTC 2025 - 26.1K bytes - Viewed (0)