Model
Swagger
Magento\Webapi\Model\Rest\Swagger
What it does
This class generates Swagger 2.0 specification documentation for Magento's REST API endpoints.
Developers use it to programmatically build API documentation by adding paths, tags, and metadata that describe available REST endpoints, their operations, and request/response structures.
It outputs the complete API specification as JSON that can be consumed by Swagger UI tools.
Public Methods
- addPath()
- addTag()
- toSchema()
- setInfo()
- setBasePath()