I’m trying to test an issue in one of our environments. We have a Nexus repo that is a maven2 format, which holds multiple ISOs.
I’m trying to test download connectivity by using curl, however I’m getting a 404 error and not the JSON output as seen here. This is the command I’m using:
Hi Christopher,
You are using wrong request path. Just as the documentation you linked says, try using /service/rest/v1/search as your request path, or to use your example that would be curl -u user_id:password -X GET 'http://urlhere/service/rest/v1/search?repository=name of url here&group=goes here'
Based on your original request I’d think you should actually be using curl -u user_id:password -X GET 'https://nexus.server.url.here:8081/nexus/service/rest/v1/search?repository=repository_name&group=group_id where repository_name is the name of the repository the content is stored within and the group id is the maven2 groupId from the pom.xml. If you have the right permissions for your nxrm instance, you can log into the application, click the cog (admin menu), then go to System > API to find the live documentation. If you aren’t an admin you can still view the APIs but some of them won’t work depending on your permissions. Just go to https://nexus.server.url.here:8081/nexus/swagger-ui/. The trailing slash is important there I believe.