nexus-public icon indicating copy to clipboard operation
nexus-public copied to clipboard

Add REST endpoint for get repository

Open astoltz opened this issue 5 years ago • 5 comments

There is currently only a REST endpoint to fetch all repositories, not one to get just a single known endpoint. This is useful for Desired State Configuration such as Terraform, Ansible, Chef, etc.

astoltz avatar Feb 04 '20 11:02 astoltz

As with your other PR, we need you first to sign our CLA before we can proceed.

dawidsawa avatar Feb 04 '20 19:02 dawidsawa

The build failure doesn't look related to anything I touched.

astoltz avatar Feb 08 '20 17:02 astoltz

You're right. It seems like we had a couple more failed builds cause by some issue with PhatomJS over last weekend. I've kicked a re-run for your branch. Thanks for adding a unit test, but I'd kindly like to ask if you could add a functional test that verifies permissions checks as this is an external facing API - there's already a test for the 'fetch all repositories' endpoint in org.sonatype.nexus.testsuite.rest.RepositoriesApiResourceGetMember

dawidsawa avatar Feb 10 '20 17:02 dawidsawa

We fixed CircleCI build system yesterday, but the fix is only in our internal repository for now. It should get synchronised to this nexus-public repository over this coming weekend. We hope this didn't discourage you from contributing.

dawidsawa avatar Feb 21 '20 14:02 dawidsawa

Sounds like this could fulfill https://issues.sonatype.org/browse/NEXUS-23757. I will make a note in that ticket.

joedragons avatar Jul 21 '20 20:07 joedragons