title: Is there a way to render only specific api endpoint in swagger-ui 3.*?
body: <p>I have a spring 4 project with springfox-swagger2 2.8.o generating the swagger 2 spec. To consume this spec I am using swagger-ui 3.22.1 in Front-end app. Currently swagger-ui is showing all the endpoints in the spec, how can i only show a specific endpoint in swagger-ui? is there a way to filter the spec for specific path?   or can we dynamically get spec only for specific path/endpoint in springfox-swagger2/swagger-ui?</p>
  
  <p>I have tried to get the spec and filter the json on front-end for that specific endpoint. For example extract only '/my-endpoint' from paths object, and extract only the tag related to '/my-endpoint' then create new json based on the extracted path and tag, It does solve the problem partially but the models object has models of all paths, also whenever i have to show documentation for specific endpoint, I have to fetch the whole spec from the server.</p>
  
  <pre class="lang-js prettyprint-override"><code>const { paths, tags } = swagger2JsonData;
  
  const { ['/my-endpoint']: path } = paths;
  const specifiedEndpointData= { '/my-endpoint': { ...path } };
  
  const specifiedEndpointTag= tags.filter(x =&gt; x.name === 'my-endpoint-controller-tag');
  
  const newData = { ...swagger2JsonData, paths: specifiedEndpointData, tags: specifiedEndpointTag};
  
  SwaggerUI({
    spec: newData,
    dom_id: '#swagger-ui-container',
    presets: [SwaggerUI.presets.apis]
  });
  </code></pre>