Curl on a local repository

If I have the following registry

localhost:5000/xxx/12345678

curl localhost:5000/v2/xxx/_catalog - this isn’t working

lost on correct syntax; help