- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for virs (0.16 sec)
-
docs/en/docs/how-to/conditional-openapi.md
Nevertheless, you might have a very specific use case where you really need to disable the API docs for some environment (e.g. for production) or depending on configurations from environment variables. ## Conditional OpenAPI from settings and env vars You can easily use the same Pydantic settings to configure your generated OpenAPI and the docs UIs. For example: ```Python hl_lines="6 11" {!../../../docs_src/conditional_openapi/tutorial001.py!} ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Aug 19 19:54:04 GMT 2023 - 2.3K bytes - Viewed (0)