repository to manage all files for 1_2_oder_3 interaction game for Inf2/2 Interaktionen SoSe23 from Engert, Caliskan and Bachiri
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test_flask_server.py 412B

123456789101112131415
  1. from flask import Flask, jsonify
  2. app = Flask(__name__)
  3. @app.route('/GETQUESTION', methods=['GET'])
  4. def hello():
  5. return jsonify({'TEST': 'Dies ist eine Testfrage',
  6. 'firstanswer': 'erste Antwort',
  7. 'secondanswer': 'zweite Antwort',
  8. 'thirdanswer': 'dritte Antwort'})
  9. if __name__ == '__main__':
  10. app.run(host='127.0.0.1', port=5555, debug=True)