- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for List (0.18 sec)
-
docs/ko/docs/tutorial/query-params-str-validations.md
``` http://localhost:8000/items/?q=foo&q=bar ``` 여러 `q` *쿼리 매개변수* 값들을 (`foo` 및 `bar`) 파이썬 `list`로 *경로 작동 함수* 내 *함수 매개변수* `q`로 전달 받습니다. 따라서 해당 URL에 대한 응답은 다음과 같습니다: ```JSON { "q": [ "foo", "bar" ] } ``` !!! tip "팁" 위의 예와 같이 `list` 자료형으로 쿼리 매개변수를 선언하려면 `Query`를 명시적으로 사용해야 합니다. 그렇지 않으면 요청 본문으로 해석됩니다. 대화형 API 문서는 여러 값을 허용하도록 수정 됩니다:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sun Feb 11 13:48:31 GMT 2024 - 9.6K bytes - Viewed (0) -
docs/en/docs/tutorial/query-params-str-validations.md
``` the default of `q` will be: `["foo", "bar"]` and your response will be: ```JSON { "q": [ "foo", "bar" ] } ``` #### Using `list` You can also use `list` directly instead of `List[str]` (or `list[str]` in Python 3.9+): === "Python 3.9+" ```Python hl_lines="9" {!> ../../../docs_src/query_params_str_validations/tutorial013_an_py39.py!} ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 25.7K bytes - Viewed (0) -
docs/fr/docs/tutorial/query-params-str-validations.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Jul 27 18:53:21 GMT 2023 - 9.8K bytes - Viewed (0) -
docs/ja/docs/tutorial/query-params-str-validations.md
``` http://localhost:8000/items/?q=foo&q=bar ``` 複数の*クエリパラメータ*の値`q`(`foo`と`bar`)を*path operation関数*内で*関数パラメータ*`q`としてPythonの`list`を受け取ることになります。 そのため、このURLのレスポンスは以下のようになります: ```JSON { "q": [ "foo", "bar" ] } ``` !!! tip "豆知識" 上述の例のように、`list`型のクエリパラメータを宣言するには明示的に`Query`を使用する必要があります。そうしない場合、リクエストボディと解釈されます。 対話的APIドキュメントは複数の値を許可するために自動的に更新されます。
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat May 14 11:59:59 GMT 2022 - 10.5K bytes - Viewed (1) -
docs/em/docs/tutorial/query-params-str-validations.md
"foo", "bar" ] } ``` #### ⚙️ `list` 👆 💪 ⚙️ `list` 🔗 ↩️ `List[str]` (⚖️ `list[str]` 🐍 3️⃣.9️⃣ ➕): ```Python hl_lines="7" {!../../../docs_src/query_params_str_validations/tutorial013.py!} ``` !!! note ✔️ 🤯 👈 👉 💼, FastAPI 🏆 🚫 ✅ 🎚 📇. 🖼, `List[int]` 🔜 ✅ (& 📄) 👈 🎚 📇 🔢. ✋️ `list` 😞 🚫🔜. ## 📣 🌅 🗃 👆 💪 🚮 🌅 ℹ 🔃 🔢.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 11.9K bytes - Viewed (0) -
docs/pt/docs/tutorial/query-params-str-validations.md
"bar" ] } ``` #### Usando `list` Você também pode utilizar o tipo `list` diretamente em vez de `List[str]`: ```Python hl_lines="7" {!../../../docs_src/query_params_str_validations/tutorial013.py!} ``` !!! note "Observação" Tenha em mente que neste caso, o FastAPI não irá validar os conteúdos da lista.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat May 14 11:59:59 GMT 2022 - 9.3K bytes - Viewed (0) -
docs/zh/docs/tutorial/query-params-str-validations.md
### 具有默认值的查询参数列表 / 多个值 你还可以定义在没有任何给定值时的默认 `list` 值: ```Python hl_lines="9" {!../../../docs_src/query_params_str_validations/tutorial012.py!} ``` 如果你访问: ``` http://localhost:8000/items/ ``` `q` 的默认值将为:`["foo", "bar"]`,你的响应会是: ```JSON { "q": [ "foo", "bar" ] } ``` #### 使用 `list` 你也可以直接使用 `list` 代替 `List [str]`: ```Python hl_lines="7"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.2K bytes - Viewed (0) -
docs/de/docs/tutorial/query-params-str-validations.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 17:58:59 GMT 2024 - 27.7K bytes - Viewed (0) -
docs/ru/docs/tutorial/query-params-str-validations.md
значение по умолчанию для `q` будет: `["foo", "bar"]` и ответом для вас будет: ```JSON { "q": [ "foo", "bar" ] } ``` #### Использование `list` Вы также можете использовать `list` напрямую вместо `List[str]` (или `list[str]` в Python 3.9+): === "Python 3.9+" ```Python hl_lines="9" {!> ../../../docs_src/query_params_str_validations/tutorial013_an_py39.py!} ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 38K bytes - Viewed (0)