- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for _id (0.14 sec)
-
docs/ja/docs/tutorial/query-params.md
同様に、デフォルト値を `None` とすることで、オプショナルなクエリパラメータを宣言できます: ```Python hl_lines="9" {!../../../docs_src/query_params/tutorial002.py!} ``` この場合、関数パラメータ `q` はオプショナルとなり、デフォルトでは `None` になります。 !!! check "確認" パスパラメータ `item_id` はパスパラメータであり、`q` はそれとは違ってクエリパラメータであると判別できるほど**FastAPI** が賢いということにも注意してください。 ## クエリパラメータの型変換 `bool` 型も宣言できます。これは以下の様に変換されます: ```Python hl_lines="9" {!../../../docs_src/query_params/tutorial003.py!} ```
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 5.6K bytes - Viewed (0) -
docs/ko/docs/tutorial/query-params.md
같은 방법으로 기본값을 `None`으로 설정하여 선택적 매개변수를 선언할 수 있습니다: ```Python hl_lines="9" {!../../../docs_src/query_params/tutorial002.py!} ``` 이 경우 함수 매개변수 `q`는 선택적이며 기본값으로 `None` 값이 됩니다. !!! check "확인" **FastAPI**는 `item_id`가 경로 매개변수이고 `q`는 경로 매개변수가 아닌 쿼리 매개변수라는 것을 알 정도로 충분히 똑똑합니다. !!! note "참고" FastAPI는 `q`가 `= None`이므로 선택적이라는 것을 인지합니다.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 5.3K bytes - Viewed (0) -
docs/zh/docs/tutorial/query-params.md
=== "Python 3.8+" ```Python hl_lines="9" {!> ../../../docs_src/query_params/tutorial002.py!} ``` 本例中,查询参数 `q` 是可选的,默认值为 `None`。 !!! check "检查" 注意,**FastAPI** 可以识别出 `item_id` 是路径参数,`q` 不是路径参数,而是查询参数。 !!! note "笔记" 因为默认值为 `= None`,FastAPI 把 `q` 识别为可选参数。 FastAPI 不使用 `Optional[str]` 中的 `Optional`(只使用 `str`),但 `Optional[str]` 可以帮助编辑器发现代码中的错误。 ## 查询参数类型转换
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 4.6K bytes - Viewed (0) -
docs/fr/docs/tutorial/query-params.md
``` Ici, le paramètre `q` sera optionnel, et aura `None` comme valeur par défaut. !!! check "Remarque" On peut voir que **FastAPI** est capable de détecter que le paramètre de chemin `item_id` est un paramètre de chemin et que `q` n'en est pas un, c'est donc un paramètre de requête. !!! note **FastAPI** saura que `q` est optionnel grâce au `=None`.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Wed Sep 27 20:52:31 GMT 2023 - 5.8K bytes - Viewed (0) -
docs/en/docs/tutorial/query-params.md
``` In this case, the function parameter `q` will be optional, and will be `None` by default. !!! check Also notice that **FastAPI** is smart enough to notice that the path parameter `item_id` is a path parameter and `q` is not, so, it's a query parameter. ## Query parameter type conversion You can also declare `bool` types, and they will be converted: === "Python 3.10+" ```Python hl_lines="7"
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Oct 20 09:08:42 GMT 2023 - 5.1K bytes - Viewed (0) -
docs/es/docs/tutorial/query-params.md
En este caso el parámetro de la función `q` será opcional y será `None` por defecto. !!! check "Revisa" También puedes notar que **FastAPI** es lo suficientemente inteligente para darse cuenta de que el parámetro de path `item_id` es un parámetro de path y que `q` no lo es, y por lo tanto es un parámetro de query. !!! note "Nota" FastAPI sabrá que `q` es opcional por el `= None`.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 5.1K bytes - Viewed (0) -
docs/pt/docs/tutorial/query-params.md
``` Nesse caso, o parâmetro da função `q` será opcional, e `None` será o padrão. !!! check "Verificar" Você também pode notar que o **FastAPI** é esperto o suficiente para perceber que o parâmetro da rota `item_id` é um parâmetro da rota, e `q` não é, portanto, `q` é o parâmetro de consulta. ## Conversão dos tipos de parâmetros de consulta Você também pode declarar tipos `bool`, e eles serão convertidos: === "Python 3.10+"
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 5.6K bytes - Viewed (0) -
docs/ru/docs/tutorial/query-params.md
``` В этом случае, параметр `q` будет не обязательным и будет иметь значение `None` по умолчанию. !!! check "Важно" Также обратите внимание, что **FastAPI** достаточно умён чтобы заметить, что параметр `item_id` является path-параметром, а `q` нет, поэтому, это параметр запроса. ## Преобразование типа параметра запроса Вы также можете объявлять параметры с типом `bool`, которые будут преобразованы соответственно:
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 8.4K bytes - Viewed (0) -
docs/tr/docs/tutorial/query-params.md
``` Bu durumda, `q` fonksiyon parametresi isteğe bağlı olacak ve varsayılan değer olarak `None` alacaktır. !!! check "Ek bilgi" Ayrıca, dikkatinizi çekerim ki; **FastAPI**, `item_id` parametresinin bir yol parametresi olduğunu ve `q` parametresinin yol değil bir sorgu parametresi olduğunu fark edecek kadar beceriklidir. ## Sorgu Parametresi Tip Dönüşümü
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 5.9K bytes - Viewed (0) -
docs/de/docs/tutorial/query-params.md
``` In diesem Fall wird der Funktionsparameter `q` optional, und standardmäßig `None` sein. !!! check Beachten Sie auch, dass **FastAPI** intelligent genug ist, um zu erkennen, dass `item_id` ein Pfad-Parameter ist und `q` keiner, daher muss letzteres ein Query-Parameter sein. ## Query-Parameter Typkonvertierung Sie können auch `bool`-Typen deklarieren und sie werden konvertiert: === "Python 3.10+"
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Jan 25 14:53:41 GMT 2024 - 5.6K bytes - Viewed (0)