A Swagger UI definition file and css for MapR Control System (MCS). See wiki page for details on how to use.
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/
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