Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the latest Sonatype Nexus OSS REST API?

I always use this page: http://nexus.xwiki.org/nexus/nexus-core-documentation-plugin/core/docs/index.html, but its sub-page could not open now(404 - Not Found). Who knows where the latest API page is located?

like image 714
user2400825 Avatar asked Jul 22 '13 09:07

user2400825


People also ask

Where are Nexus artifacts stored?

nexus/conf — All the nexus configuration files are stored here, this includes repository configuration, security configuration, and log configuration. Although you can recreate them in theory, you'd hate to lose them — it takes time to recreate them, so, back up this folder.

Does Nexus have an API?

Nexus Repository leverages Open API to document the REST API. To make it easier to consume, we ship Nexus Repository with Swagger UI - a simple, interactive user interface, where parameters can be filled out and REST calls made directly through the UI to see the results in the browser.

How do I find my Nexus API key?

Go to your profile and generate a NuGet API Key by clicking Access Key. ( You will be prompted for authentication due to NEXUS-10692 ). When prompted for password, enter your password. Record the displayed API Key.


2 Answers

The REST API is still part of Nexus of course. Since the API sometimes changes, you should look it up within your own Nexus instance and version! You can find it in the Plugin Console with the Restlet 1x Plugin.

More details are here: http://books.sonatype.com/nexus-book/reference/confignx-sect-plugins.html

If you want to have a local copy and e.g. your admin does not give you access, you can just start up a fresh install of Nexus on your machine locally. You will be admin on that fresh install and be able to see the docs. Also keep in mind you pretty much need the REST API only if you are developing some sort of integration. If you are doing that you should test against a local Nexus instance anyway... so you will have the docs right there.

Also if you know the entry point to the docs you can access them directly. E.g. https://oss.sonatype.org/nexus-restlet1x-plugin/default/docs/index.html

like image 92
Manfred Moser Avatar answered Sep 22 '22 12:09

Manfred Moser


seems to have disappeared...

Newer Nexus releases include this documentation though (at least 2.0.4-1 does). Substitute nexus.xwiki.org with another hostname, e.g. the hostname of your company's nexus server (you might have to drop the /nexus part):

http://[your-own-nexus]/nexus/nexus-core-documentation-plugin/core/docs/index.html

[EDIT]

found the API doc on a publicly available instance of Nexus 2.1 here

like image 32
Cpt. Senkfuss Avatar answered Sep 18 '22 12:09

Cpt. Senkfuss