Skip to content

snunez1/mapr-swagger-ui

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mapr-swagger-ui

A Swagger UI definition file and css for MapR Control System (MCS). See wiki page for details on how to use.

How to setup

Download and unzip the swagger-ui zip file and copy the dist diectory to the MCS webapp directory (as root user on MCS node).

wget https://github.com/swagger-api/swagger-ui/archive/v2.2.10.zip
unzip v2.2.10.zip
cd swagger-ui-2.2.10
cp -r dist /opt/mapr/adminuiapp/webapp/swagger-ui

Download and unzip the mapr-swagger-ui zip file and copy update_json, mapr.json, css/mapr.css and images/logo_mapr.png to the swagger-ui directory.

wget https://github.com/nagix/mapr-swagger-ui/archive/master.zip
unzip master.zip
cd mapr-swagger-ui-master
cp -r update_json mapr.json css images /opt/mapr/adminuiapp/webapp/swagger-ui

Replace the default css and Swagger definition file.

sed -i /opt/mapr/adminuiapp/webapp/swagger-ui/index.html \
-e 's/screen\.css/mapr.css/' \
-e 's/logo_small\.png/logo_mapr.png/' \
-e 's/".*\.json"/"mapr.json"/'

Go to https://<MCS node>:8443/swagger-ui/

How to update the Swagger definition file

Run the following command (requires the python-pyquery rpm/deb package). This command updates the Swagger definition file based on the latest MapR online document on maprdocs.mapr.com.

cd /opt/mapr/adminuiapp/webapp/swagger-ui
./update_json

About

Swagger UI definition file and css for MapR Control System

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 75.6%
  • Python 24.4%