You are here

README.txt in Swagger UI Field Formatter 8

Same filename and directory in other branches
  1. 7.2 README.txt
  2. 7 README.txt
Swagger UI Field Formatter
==========================

Introduction
============

This module provides a field formatter for file fields with allowed file types
of JSON (.json) and/or YAML (.yml or .yaml), which renders the uploaded file
using Swagger UI if the file is a valid Swagger file. This module uses the
Swagger UI library available at https://github.com/swagger-api/swagger-ui

Requirements
============
This module does not have any special requirements.

Installation
============
Download the module from https://drupal.org and extract it into your
sites/all/modules/contrib directory. Login as administrator, go the the
admin/modules page and install the Swagger UI Field Formatter module.

Configuration
=============

Go to the admin/structure/types/manage/<type>/fields page, add a new field
of type File and add "json", "yml" or "yaml" to allowed file extensions.
Then go the admin/structure/types/manage/<type>/display page and select
Swagger UI from the Format drop down.

Create a new content of the type <type> to which you added the new file field
and upload a valid Swagger file.

File

README.txt
View source
  1. Swagger UI Field Formatter
  2. ==========================
  3. Introduction
  4. ============
  5. This module provides a field formatter for file fields with allowed file types
  6. of JSON (.json) and/or YAML (.yml or .yaml), which renders the uploaded file
  7. using Swagger UI if the file is a valid Swagger file. This module uses the
  8. Swagger UI library available at https://github.com/swagger-api/swagger-ui
  9. Requirements
  10. ============
  11. This module does not have any special requirements.
  12. Installation
  13. ============
  14. Download the module from https://drupal.org and extract it into your
  15. sites/all/modules/contrib directory. Login as administrator, go the the
  16. admin/modules page and install the Swagger UI Field Formatter module.
  17. Configuration
  18. =============
  19. Go to the admin/structure/types/manage//fields page, add a new field
  20. of type File and add "json", "yml" or "yaml" to allowed file extensions.
  21. Then go the admin/structure/types/manage//display page and select
  22. Swagger UI from the Format drop down.
  23. Create a new content of the type to which you added the new file field
  24. and upload a valid Swagger file.