def add_used_module(app_id): data = request.get_json() used_module = data.get('used_module') func = data.get('func') version = data.get('version') app = AppService.add_used_module(app_id, used_module, func, version) return jsonify({"response": convert_used_modules(app)})
def add_used_module(app_id): data = request.get_json() used_modules = data.get('used_modules', []) func = data.get('func') version = data.get('version') print(app_id) app = AppService.add_used_module(app_id, used_modules, func, version) return jsonify({"response": json_utility.convert_to_json(app.to_mongo())})