title: Is there a way to discover all endpoints of a REST API?
body: <p>I'm wondering if its possible to programmatically discover all the endpoints of a particular API.</p>
  <p>So for example if I GET this URL with a browser or curl:
  <a href="https://api.twitter.com/1.1/" rel="noreferrer">https://api.twitter.com/1.1/</a></p>
  <p>I might get something like this as a JSON response:</p>
  <pre><code>&quot;TwitterAPI&quot;:{
      &quot;version&quot; : 1.1,
      &quot;GET&quot; : {
          &quot;search/&quot; : [&quot;users&quot;, &quot;trending&quot;],
          &quot;users/&quot; : [&quot;id&quot;, &quot;handle&quot;]
      }
  }
  </code></pre>
  <p>Of course Twitter could choose to publish or not publish this format. So as a side question, are there any libraries for Java or JavaScript that will automatically map and publish the API routes you created in your controllers?</p>