Advertising sustains the DA. Ads are hidden for members. Join today

Install the module

Last updated on
11 April 2019

You need to install both the Swagger UI Field Formatter module and Swagger UI library in order for the content to render correctly.

Install the Swagger UI Field Formatter module using Composer:
$ composer require 'drupal/swagger_ui_formatter:^2.0'

For more information, see Using Composer to manage Drupal site dependencies.

Download and install the Swagger UI library:

  1. Download the Swagger UI library from the following location:
    https://github.com/swagger-api/swagger-ui/releases
  2. Extract the archive.
  3. Rename the folder to: swagger-ui or swagger_ui
  4. Move the renamed folder to the following location:[DRUPAL ROOT]/libraries/swagger-ui where [DRUPAL ROOT] is a placeholder for the actual Drupal root path.

Help improve this page

Page status: No known problems

You can: