title: Flask Restplus - The requested URL was not found on the server
body: <p>I have a flask application and I'm trying to use flask-restplus and blueprints. Unfortunately my api endpoint always returns <strong>The requested URL was not found on the server.</strong> even though I can see that it exists in the output of <code>app.url_map</code>.
  The project is laid out as follows:</p>
  
  <pre><code>- app.py
  - api
     - __init__.py
     - resources.py
  </code></pre>
  
  <p><strong>app.py</strong></p>
  
  <pre><code>from api import api, api_blueprint
  from api.resources import EventListResource, EventResource
  
  app = Flask(__name__)
  app.register_blueprint(api_blueprint)
  db.init_app(flask_app)
  app.run()
  </code></pre>
  
  <p><strong>api/__init__.py</strong></p>
  
  <pre><code>from flask_restplus import Api
  from flask import Blueprint
  
  api_blueprint = Blueprint("api_blueprint", __name__, url_prefix='/api')
  api = Api(api_blueprint)
  </code></pre>
  
  <p><strong>api/resources.py</strong></p>
  
  <pre><code>from flask_restplus import Resource
  from flask import Blueprint
  
  from . import api, api_blueprint
  
  @api_blueprint.route('/events')
  class EventListResource(Resource):
      def get(self):
          "stuff"
          return items
  
      def post(self):
          "stuff"
          db.session.commit()
          return event, 201
  </code></pre>
  
  <p>The application starts without issue and I can see that <code>'/api/events'</code> appears in <code>app.url_map</code> so I'm not really sure why the url can't be found. Any help appreciated, thanks!</p>