title: How do I use flask.url_for() with flask-restful?
body: <p>I have setup Flask restful like this:</p>
  
  <pre><code>api = Api(app, decorators=[csrf_protect.exempt])
  api.add_resource(FTRecordsAPI,
                   '/api/v1.0/ftrecords/&lt;string:ios_sync_timestamp&gt;',
                   endpoint="api.ftrecord")
  </code></pre>
  
  <p>I would like to redirect internally to the endpoint <code>api.ftrecord</code>.</p>
  
  <p>But the moment I try to do this:</p>
  
  <pre><code>base_url = flask.url_for('api.ftrecord')
  </code></pre>
  
  <p>I get an exception.</p>
  
  <pre><code>  File "/Users/hooman/workspace/F11A/src/lib/werkzeug/routing.py", line 1620, in build
      raise BuildError(endpoint, values, method)
  BuildError: ('api.ftrecord', {}, None)
  </code></pre>
  
  <p>What am I missing please?</p>