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. The web server should have an endpoint '/getTemp' that accepts POST requests, where the city name is passed as a JSON parameter and the temperature is fetched from an external API.
  
  def design_web_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)
  
  assert design_web_server() is None
output: 
  def design_web_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']}
  