Listing the tags of a Docker image on a Docker hub through the HTTP API
<p>I would like to list the tags of a Docker image official Docker hub through its HTTP interface, but I am a bit confused. As there seems to two versions of them:</p>

<ul>
<li><a href="https://docs.docker.com/v1.6/reference/api/registry_api/" rel="nofollow noreferrer">https://docs.docker.com/v1.6/reference/api/registry_api/</a></li>
<li><a href="https://docs.docker.com/v1.6/registry/spec/api/" rel="nofollow noreferrer">https://docs.docker.com/v1.6/registry/spec/api/</a></li>
</ul>

<p>I managed to get them through sending a GET request to this endpoint: <code>https://index.docker.io/v1/repositories/{my-namespace}/{my-repository}/tags</code> along with basic authentication credentials.</p>

<p>I am not sure if there is a correct one among them, but which should I be using?</p>