input: Write a python function to create a Flask route that processes GET and POST requests to a specified endpoint.
  assert type(app) == Flask
  assert 'api/test_endpoint' in app.url_map.iter_rules()
  assert process_request.__name__ == 'process_request'
output: from flask import Flask, request
  
  app = Flask(__name__)
  
  @app.route('/api/test_endpoint', methods=['GET', 'POST'])
  def process_request():
      if request.method == 'POST':
          data = request.get_json()
          return data, 200
      else:
          return "This is a GET request", 200