GAVC Search

JFrog REST APIs

Products
JFrog Xray
Content Type
REST API
ft:sourceType
Paligo

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

Search must contain at least one argument. Can limit search to specific repositories (local and remote-cache).

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"
    }
]
}