GAVC Search

JFrog REST APIs

Content Type
REST API
ft:sourceType
Paligo

Description: Search by Maven coordinates: GroupId, ArtifactId, Version & Classifier.

The search must contain at least one argument. The search can be limited to specific repositories (local and remote-cache).

Note

This endpoint requires a repository type or layout that supports GAVC, including Maven, Gradle, Ivy, and SBT.

Since: 2.2.0

Security: Requires a privileged user (can be anonymous)

Usage: GET /api/search/gavc?[g=groupId][&a=artifactId][&v=version][&c=classifier][&repos=x[,y]][&specific=true(default false)]

Headers (Optionally): X-Result-Detail: info (to add all extra information of the found artifact), X-Result-Detail: properties (to get the properties of the found artifact), X-Result-Detail: info, properties (for both).

Produces: application/json (application/vnd.org.jfrog.artifactory.search.GavcSearchResult+json)

Sample Output:

GET /api/search/gavc?g=org.acme&a=artifact&v=1.0&c=sources&repos=libs-release-local
{
"results": [
    {
        "uri": "http://localhost:8081/artifactory/api/storage/libs-release-local/org/acme/artifact/1.0/artifact-1.0-sources.jar"
    },{
        "uri": "http://localhost:8081/artifactory/api/storage/libs-release-local/org/acme/artifactB/1.0/artifactB-1.0-sources.jar"
    }
]
}