3
Nexus 지원 REST 요청을 알고 있습니다. Nexus에 기반한 저장소에서 특정 이슈의 크기를 요청하는 방법을 알려주시겠습니까?Nexus 저장소에서 이슈의 크기를 요청하는 방법은 무엇입니까?
감사합니다.
Nexus 지원 REST 요청을 알고 있습니다. Nexus에 기반한 저장소에서 특정 이슈의 크기를 요청하는 방법을 알려주시겠습니까?Nexus 저장소에서 이슈의 크기를 요청하는 방법은 무엇입니까?
감사합니다.
다음과 같은 옵션이 있습니다 : 이슈 컨텐츠 URI의 전체 경로를 사용하여 예를 들어 매개 변수 describe=info
을 추가
가있는 ArtifactInfoResourceResponse를 돌려줍니다 이물 크기 (KB)를 포함하는 XML :
<org.sonatype.nexus.rest.model.ArtifactInfoResourceResponse>
<data>
<presentLocally>true</presentLocally>
<repositoryId>maven-sites</repositoryId>
<repositoryName>maven-sites</repositoryName>
<repositoryPath>/nexus-oss/css/maven-theme.css</repositoryPath>
<mimeType>text/css</mimeType>
<uploader>grid</uploader>
<uploaded>1324414832000</uploaded>
<lastChanged>1324414832000</lastChanged>
<size>2801</size>
<sha1Hash>f773e0309d4c0f7aab4aac0ec3ae50088ad02394</sha1Hash>
<md5Hash>61d12a98b59a0fefcc3b0ed8313239de</md5Hash>
<repositories>
<org.sonatype.nexus.rest.model.RepositoryUrlResource>
<repositoryId>maven-sites</repositoryId>
<repositoryName>maven-sites</repositoryName>
<path>/nexus-oss/css/maven-theme.css</path>
<artifactUrl>https://repository.sonatype.org/content/repositories/maven-sites/nexus-oss/css/maven-theme.css</artifactUrl>
<canView>true</canView>
</org.sonatype.nexus.rest.model.RepositoryUrlResource>
</repositories>
<canDelete>false</canDelete>
</data>
</org.sonatype.nexus.rest.model.ArtifactInfoResourceResponse>
참조 : http://stackoverflow.com/questions/7911620/using-the-nexus-rest-api-to-get-latest-artifact-version-for-given-groupid-artfic/7922863#7922863 및 http : //stackoverflow.com/questions/8513670/how-to-write-get-method-nexus-rest-api/8526453#8526453 –