input: Write a function to design a web server in Python using the Flask framework that serves a JSON object containing the current temperature for a city based on the city name given in the request. 
  
  def get_temp_server():
      import requests
      import json
      from flask import Flask, request
  
      app = Flask('name')
  
      @app.route('/getTemp', methods=['POST'])
      def get_temp():
          city = request.json['city']
          url = 'http://api.openweathermap.org/data/2.5/weather?q={}&APPID=xxxxxx'
          r = requests.get(url.format(city))
          weather = json.loads(r.text)
          return {'temperature': weather['main']['temp']}
  
      if 'name' == 'main':
          app.run(debug=True)
  
  # Test cases
  assert get_temp_server() is not None
  
  # The server should be running and the function should be able to handle requests, so no direct return values for assert statements.
output: 
  def get_temp_server():
      import requests
      import json
      from flask import Flask, request
  
      app = Flask('name')
  
      @app.route('/getTemp', methods=['POST'])
      def get_temp():
          city = request.json['city']
          url = 'http://api.openweathermap.org/data/2.5/weather?q={}&APPID=xxxxxx'
          r = requests.get(url.format(city))
          weather = json.loads(r.text)
          return {'temperature': weather['main']['temp']}
  
      if 'name' == 'main':
          app.run(debug=True)
  