Exemplo n.º 1
0
 def delete(self):
     """Stop the simulator from executing it's current simulation."""
     SimulatorService.stop_simulation()
     res = jsonify({})
     res.status_code = 202
     return res
Exemplo n.º 2
0
 def get(self):
     """Return information about the status of the simulator."""
     info = SimulatorService.get_info()
     return jsonify(info=info)