def getGnosqlInfo(): a = request.get_data() jsonData = json.loads(a.decode("utf-8")) gnosqlId = jsonData['gnosqlId'] gnosqlUserObj = GnosqlUserService() result = gnosqlUserObj.getGnosqlInfo(gnosqlId) return ResponseUtil.getCORSResponse(result)
def createGnosql(): a = request.get_data() jsonData = json.loads(a.decode("utf-8")) gnosqlName = jsonData["gnosqlName"] gnosqlUserObj = GnosqlUserService() result = gnosqlUserObj.createGnosql(gnosqlName) return ResponseUtil.getCORSResponse(result)
def generateToken(): a = request.get_data() jsonData = json.loads(a.decode("utf-8")) username = jsonData['username'] gnosqlId = jsonData["gnosqlId"] gnosqlUserObj = GnosqlUserService() result = gnosqlUserObj.generateToken(username, gnosqlId) return ResponseUtil.getCORSResponse(result)
def userSignUp(): a = request.get_data() jsonData = json.loads(a.decode("utf-8")) username = jsonData['username'] password = jsonData["password"] gnosqlUserObj = GnosqlUserService() result = gnosqlUserObj.userSignUp(username, password) return ResponseUtil.getCORSResponse(result)
def getGnosqlAllDataAnalysis(): a = request.get_data() jsonData = json.loads(a.decode("utf-8")) startDate = jsonData['startDate'] endDate = jsonData['endDate'] gnosqlUserObj = GnosqlUserService() result = gnosqlUserObj.getGnosqlAllDataAnalysis(startDate, endDate) return ResponseUtil.getCORSResponse(result)
def deleteGnosqlAppName(): a = request.get_data() jsonData = json.loads(a.decode("utf-8")) gnosqlId = jsonData['gnosqlId'] appName = jsonData["appName"] gnosqlUserObj = GnosqlUserService() result = gnosqlUserObj.deleteGnosqlAppName(gnosqlId, appName) return ResponseUtil.getCORSResponse(result)
def addGnosqlAppIp(): a = request.get_data() jsonData = json.loads(a.decode("utf-8")) gnosqlId = jsonData['gnosqlId'] appIp = jsonData["appIp"] gnosqlUserObj = GnosqlUserService() result = gnosqlUserObj.addGnosqlAppIp(gnosqlId, appIp) return ResponseUtil.getCORSResponse(result)
def getGnosqlDataType(): a = request.get_data() jsonData = json.loads(a.decode("utf-8")) gnosqlId = jsonData['gnosqlId'] startDate = jsonData['startDate'] endDate = jsonData['endDate'] gnosqlUserObj = GnosqlUserService() result = gnosqlUserObj.getGnosqlDataType(gnosqlId, startDate, endDate) return ResponseUtil.getCORSResponse(result)
def getGnosqlList(): a = request.get_data() gnosqlUserObj = GnosqlUserService() result = gnosqlUserObj.getGnosqlList() return ResponseUtil.getCORSResponse(result)