Log in
Model

Rest

Magento\SwaggerWebapi\Model\SchemaType\Rest

What it does

This class represents the REST API schema type for Swagger documentation in Magento 2.

Developers use it to define how REST API documentation is accessed and structured, providing the schema type code and URL path for retrieving Swagger/OpenAPI specifications for REST endpoints.

It's automatically used by the Swagger UI module to generate interactive API documentation for REST services.

Public Methods

  • getCode()
  • getSchemaUrlPath()