- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for to (0.15 sec)
-
docs/fr/docs/advanced/additional-responses.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 9.6K bytes - Viewed (0) -
docs/zh/docs/advanced/additional-responses.md
{!../../../docs_src/additional_responses/tutorial003.py!} ``` 所有这些都将被合并并包含在您的OpenAPI中,并在API文档中显示: ## 联合预定义响应和自定义响应 您可能希望有一些应用于许多路径操作的预定义响应,但是你想将不同的路径和自定义的相应组合在一块。 对于这些情况,你可以使用Python的技术,将 `dict` 与 `**dict_to_unpack` 解包: ```Python old_dict = { "old key": "old value", "second old key": "second old value", } new_dict = {**old_dict, "new key": "new value"} ``` 这里, new_dict 将包含来自 old_dict 的所有键值对加上新的键值对:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Jan 09 15:53:39 GMT 2024 - 8.2K bytes - Viewed (0) -
docs/en/docs/advanced/additional-responses.md
## Combine predefined responses and custom ones You might want to have some predefined responses that apply to many *path operations*, but you want to combine them with custom responses needed by each *path operation*. For those cases, you can use the Python technique of "unpacking" a `dict` with `**dict_to_unpack`: ```Python old_dict = { "old key": "old value",
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Jan 11 16:31:18 GMT 2024 - 8.8K bytes - Viewed (0) -
docs/de/docs/advanced/additional-responses.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 20:19:26 GMT 2024 - 9.6K bytes - Viewed (0)