This project consists of finding the most popular and the 2nd most popular jar (binary) file in a repository that’s part of JFrog Artifactory.
This is a Spring BOOT REST API
Two apis are available:
- Retrieves the two most downloaded Jar artifacts on a specific repository.
curl -X GET "http://localhost:8080/api/result?repoName=jcenter-cache" -H "accept: */*"
- Retrieves all jar artifacts on a specific repository.
curl -X GET "http://localhost:8080/api/all?repoName=jcenter-cache" -H "accept: */*"
You can access to the Swagger api via this url
docker build -t jfrog_image .
docker run -it -p 8080:8080 -e JFROG_URL=http://url -e JFROG_PASSWORD=password -e JFROG_LOGIN=admin jfrog_image
Make sure that you specify the credential to query the Artifactory server.