Install the module
Install the Swagger UI Field Formatter module.
Configure the module
Learn how to configure the Swagger UI Field Formatter module.
Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.The Swagger UI Field Formatter module renders a valid OpenAPI spec in JSON or YAML format using the Swagger UI project, as shown in the following figure.
Note: The module uses the Swagger UI project is available at https://github.com/swagger-api/swagger-ui.

Install the Swagger UI Field Formatter module.
Learn how to configure the Swagger UI Field Formatter module.
Drupal is a registered trademark of Dries Buytaert.