The REST API provides access to the Gems Add-on through the repository key using the following URL:
http://localhost:8081/artifactory/api/gems/<repository key>/
In addition to the basic binary repository operations, such as download, deploy, delete etc., the following RubyGems.org API Gem commands are supported:
Gem Command | Curl Syntax Example | Remarks |
---|---|---|
Info |
| Optionally indicate JSON / YAML (default: JSON) |
Search |
| Will search for gems with name containing query |
Dependencies |
| Use a csv of gem names for the value of gems |
Yank |
| Deletes the specific gem file from the repository |
Indexing is done automatically by Artifactory in the background, however if you still need to recreate or update the spec index files, the following REST API commands are also available:
REST Command | Curl Syntax Example | Remarks |
---|---|---|
ReIndex |
| Re-creates all spec index files. |
Update index |
| Updates all spec index files if needed. |