如何编写Get方法nexusrestapi?

如何编写Get方法nexusrestapi?,api,rest,get,nexus,Api,Rest,Get,Nexus,我有groupId,artifactId和版本。如何使用Nexus Rest API编写GET请求以获得进一步的工件描述?不确定您要查找的信息 REST API文档可在以下位置获得: 例子 获取存储库id 您从以下内容开始:groupId,artifactId,version: $ curl --silent 'http://repository.sonatype.org/service/local/lucene/search?g=log4j&a=log4j&v=1.2.

我有
groupId
artifactId
版本
。如何使用Nexus Rest API编写GET请求以获得进一步的工件描述?

不确定您要查找的信息

REST API文档可在以下位置获得:

例子 获取存储库id 您从以下内容开始:groupIdartifactIdversion

$ curl --silent 'http://repository.sonatype.org/service/local/lucene/search?g=log4j&a=log4j&v=1.2.16' | grep repositoryId
<repositoryId>central-proxy</repositoryId>
<repositoryId>apache-staging</repositoryId>
<repositoryId>central-proxy</repositoryId>
<repositoryId>apache-staging</repositoryId>
取回罐子
+1因为文档没有明确说明根web服务端点是/service/local/I,所以我看到“Core API”链接已断开,我找不到备用链接。尽管可以使用以下链接中的说明查找适当的文档:
$ curl --silent 'http://repository.sonatype.org/service/local/artifact/maven/resolve?r=central-proxy&g=log4j&a=log4j&v=1.2.16' 
<artifact-resolution>
  <data>
    <presentLocally>true</presentLocally>
    <groupId>log4j</groupId>
    <artifactId>log4j</artifactId>
    <version>1.2.16</version>
    <extension>jar</extension>
    <snapshot>false</snapshot>
    <snapshotBuildNumber>0</snapshotBuildNumber>
    <snapshotTimeStamp>0</snapshotTimeStamp>
    <sha1>7999a63bfccbc7c247a9aea10d83d4272bd492c6</sha1>
    <repositoryPath>/log4j/log4j/1.2.16/log4j-1.2.16.jar</repositoryPath>
  </data>
$ curl --silent 'http://repository.sonatype.org/service/local/artifact/maven?r=central-proxy&g=log4j&a=log4j&v=1.2.16'
$ curl --silent 'http://repository.sonatype.org/service/local/artifact/maven/redirect?r=central-proxy&g=log4j&a=log4j&v=1.2.16'