def METHOD_NAME():
    """
    Returns endpoint metadata in batch format
    """
    if request.method == 'GET':
        """this will return sensible defaults in the future"""
        return app.make_response(json.dumps(metric_metadata))
    try:
        requests = json.loads(request.data.decode('utf-8'))
    except ValueError as e:
        request.abort(400)
    responses = []
    for index, req in enumerate(requests):
        method = req['method']
        path = req['path']
        body = req.get('body', None)
        try:
            logger.info('batch endpoint: ' + path)
            with app.server.app.context():
                with app.test_request_context(path,
                                                method=method,
                                                data=body):
                    try:
                        rv = app.preprocess_request()
                        if rv is None:
                            rv = app.dispatch_request()
                    except Exception as e:
                        rv = app.handle_user_exception(e)
                    response = app.make_response(rv)
                    response = app.process_response(response)
            responses.append({
                "path": path,
                "status": response.status_code,
                "response": str(response.get_data(), 'utf8'),
            })
        except Exception as e:
            responses.append({
                "path": path,
                "status": 500,
                "response": str(e)
            })
    return Response(response=json.dumps(responses),
                    status=207,
                    mimetype="application/json")