title: what does endpoint mean in flask-restful
body: <p>I defined some resource called <code>WorkerAPI</code> using flask-restful and the plan is to process POST request from <code>/api/workers/new</code> and GET request from <code>/api/workers/</code>. When using the following code</p>
  
  <pre><code>api.add_resource(WorkerAPI, '/api/workers/new')
  api.add_resource(WorkerAPI, '/api/workers/')
  </code></pre>
  
  <p>I get errors:</p>
  
  <blockquote>
    <p>AssertionError: View function mapping is overwriting an existing endpoint function: workerapi</p>
  </blockquote>
  
  <p>Then I tried to use the following, which seems to work, although I don't know why it works. </p>
  
  <pre><code>api.add_resource(WorkerAPI, '/api/workers/new', endpoint='/workers/new')
  api.add_resource(WorkerAPI, '/api/workers/', endpoint='/workers/')
  </code></pre>
  
  <p>It looks like redundant information to me though. It seems the site works as long as the two <code>endpoint</code>s are defined as different strings. What does <code>endpoint</code> mean here? </p>