Innovenergy_trunk/csharp/App/VrmGrabber/server.py

15 lines
422 B
Python
Raw Normal View History

import requests as requests
from flask import Flask
from json2html import json2html
app = Flask(__name__)
serverUrl = "https://127.0.0.1:7087/api" #todo change me
@app.route('/')
def hello():
json = requests.get(serverUrl + '/GetInstallationList', verify=False) #TODO VERIFY
if json.content == b'0':
return "Still loading Installations"
return json2html.convert(json = json.json(), escape=False)