简体   繁体   中英

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?

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 eg 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. Eg https://oss.sonatype.org/nexus-restlet1x-plugin/default/docs/index.html

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, eg 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM