old_contents: from flask import Flask
  from flask import request
  app = Flask(__name__)
  
  @app.route('/servers', methods=['GET','POST'])
  def servers():
      if request.method == 'POST':
      	return 'post ok!'
      else:
      	return 'eth0: 00:00:00:00:00:00'
  
  if __name__ == '__main__':
      app.run()
  
new_contents: from flask import Flask
  from flask import request
  app = Flask(__name__)
  
  
  @app.route('/servers', methods=['GET'])
  def list_server():
  	"""Get machine."""
  	return 'eth0: 00:00:00:00:00:00'
  
  @app.route('/servers', methods=['POST'])
  def add_server():
  	return 'post ok!'
  
  if __name__ == '__main__':
      app.run()
  
subject: restructure server-api