Creating repositories, groups etc. via REST API in Nexus 3


#1

Hi there,

I want to know if I can leverage the REST API as it was in nexus 2 so that I can create repositories, perform configuration in the repository etc. remotely. By googling I wasn’t yet able to find information. Help, anyone?

Fred


#2

Hey Fred,

Check out the documentation for all the API options here: REST and Integration API

Let us know if you need anymore help around these.

Cheers,

Nick


#3

Hi Nick,

thanks for responding. I can’t find API for changing user credentials, or admin password, or creating new repositories and so on programmatically. Is this no longer possible with nexus 3?

Thanks,
Fred


#4

You can use the scripting API for those use cases. See here:

https://help.sonatype.com/display/NXRM3/Script+API

These links will also be of use:

Nexus 3 Groovy Script development environment setup
https://help.sonatype.com/display/NXRM3/Examples
Groovy: Close those transactions, or else…