===SkyForm Rest API

Assume Skyform Monitor and Skyform Web Portal have already deployed.

On Skyform Web Portal host:

1. Install
yum -y install mod_wsgi python-pip
pip install elasticsearch

2. Add file /etc/httpd/conf.d/wsgi.conf with following content:
WSGIScriptAlias /cluster /var/www/html/py/cluster.py
WSGIScriptAlias /queues /var/www/html/py/queues.py
WSGIScriptAlias /users /var/www/html/py/users.py
WSGIScriptAlias /jobs /var/www/html/py/jobs.py
WSGIScriptAlias /jobdetails /var/www/html/py/jobdetails.py
WSGIScriptAlias /exitjobs /var/www/html/py/exitjobs.py

3. Restart httpd
systemctl restart httpd

4. Test rest API
curl http://localhost/cluster
curl http://localhost/queues
curl http://localhost/users
curl http://localhost/jobs
curl http://localhost/jobdetails
curl http://localhost/exitjobs
