Model
Config
Magento\Swagger\Model\Config
What it does
This class manages configuration settings for Swagger API documentation in Magento 2.
Developers use it to check whether Swagger documentation should be accessible based on the application mode (developer vs production).
By default, Swagger is only enabled in developer mode unless explicitly configured to run in production.
Public Methods
- isEnabled()