def post(self): environ = Environment() content = request.get_json() environ.id = int(content.get("id")) environ.state = int(content.get("state")) answer = environ.manage_change_status() return jsonify(), 200
def post(self): environ = Environment() content = request.get_json() environ.id = content.get('id') answer = environ.manega_users_remove() print(answer) return jsonify(), 200
def post(self): environ = Environment() content = request.get_json() environ.id = content.get('id') answer = environ.show() if (answer): return jsonify(answer), 200 else: return jsonify(), 400
def post(self): environ = Environment() content = request.get_json() environ.name = '%' + content.get('search') + '%' environ.id = content.get('id_environment') answer = environ.manage_search() if (answer): return jsonify(answer), 200 else: return jsonify(), 500
def post(self): environ = Environment() content = request.get_json() environ.id = content.get('id') environ.name = "%" + content.get('search') + "%" answer = environ.search_environment() if (answer): return jsonify(answer), 200 else: return jsonify(), 400
def post(self): main = Environment() content = request.get_json() main.id = content.get('id_user') main.id_environments = content.get('environment') answer = main.main_bring_data() if (answer): return jsonify(answer), 200 else: return jsonify(), 400
def post(self): environ = Environment() content = request.get_json() environ.key_code = content.get('key_code') environ.id = content.get('id_user') answer = environ.manage_user_join_by_Code() if (answer == "stError"): return jsonify({'status': 'stError'}), 200 else: if (answer == "stError101"): return jsonify({'status': 'stError101'}), 200 else: return jsonify({'status': 'good'}), 200
def get(self, id): environ = Environment() environ.id = int(id) answer = environ.manega_users_show() return jsonify(answer), 200
def post(self): environ = Environment() content = request.get_json() environ.id = int(content) answer = environ.remove() return jsonify(), 200