Trying to use REST API to create repositories in sonatype Nexus
问题 how do i create a repository through the REST API and was hoping someone could help me with the xml and curl script used. 回答1: Firstly, if you are curious on how to do these things, you can use this article by us at Sonatype on how to learn the Nexus Repository 2 REST API: http://www.sonatype.org/nexus/2015/01/26/learn-the-nexus-rest-api-automating-sonatype-nexus/ Secondly, here's an example one of our internal team members came up with: This is a POST request to http://localhost:8081/nexus