old_contents: #!/usr/bin/env python
  # =============================================================================
  # file = api.py
  # description = System Information API
  # author = GR <https://github.com/shortdudey123>
  # create_date = 2014-07-25
  # mod_date = 2014-07-25
  # version = 0.1
  # usage = 
  # notes =
  # python_ver = 2.7.6
  # =============================================================================
  
  from flask import Flask, render_template, abort, redirect, url_for, request
  from flask.ext import restful
  
  import sys
  
  app = Flask(__name__)
  api = restful.Api(app)
  
  class sysInfo(restful.Resource):
      def get(self):
          return {'hello': 'world'}
  
  @app.route('/')
  def index():
      sysData = createInfoDict()
      return render_template('index.html', sysData=sysData)
  
  def createInfoDict():
      ret = {}
      ret['Platform'] = sys.platform
      ret['Path'] = sys.path
      return ret
  
  api.add_resource(sysInfo, '/api/1/sysInfo')
  
  if __name__ == '__main__':
      app.run(debug=True, host='0.0.0.0', port=5000)
new_contents: #!/usr/bin/env python
  # =============================================================================
  # file = api.py
  # description = System Information API
  # author = GR <https://github.com/shortdudey123>
  # create_date = 2014-07-25
  # mod_date = 2014-07-25
  # version = 0.1
  # usage = 
  # notes =
  # python_ver = 2.7.6
  # =============================================================================
  
  from flask import Flask, render_template, abort, redirect, url_for, request
  from flask.ext import restful
  
  import sys
  
  app = Flask(__name__)
  api = restful.Api(app)
  
  class sysInfo(restful.Resource):
      def get(self):
          return {'hello': 'world'}
  
  class sysInfoReq(restful.Resource):
      def get(self):
          sysData = createSysDict()
          return sysData[sysReq]
  
  @app.route('/')
  def index():
      sysData = createSysDict()
      return render_template('index.html', sysData=sysData)
  
  def createSysDict():
      ret = {}
      ret['Path'] = sys.path
      ret['Platform'] = sys.platform
      return ret
  
  api.add_resource(sysInfo, '/api/1/sysInfo')
  api.add_resource(sysInfoReq, '/api/1/sysInfo/<string:sysReq>')
  
  if __name__ == '__main__':
      app.run(debug=True, host='0.0.0.0', port=5000)
subject: add more to api