code: def start(self):
          '''Stop server'''
          # Set flask
          self.app = Flask('RestServer')
          self.add_endpoint()
          # Create a thread to deal with flask
          self.run_thread = Thread(target=self.run)
          self.run_thread.start(f start(self):
          '''Stop server'''
          # Set flask
          self.app = Flask('RestServer')
          self.add_endpoint()
          # Create a thread to deal with flask
          self.run_thread = Thread(target=self.run)
          self.run_thread.start()
docs: Stop server