All URIs are relative to https://api.cloudsmith.io
| Method | HTTP request | Description |
|---|---|---|
| distros_list | GET /distros/ | Get a list of all supported distributions. |
| distros_read | GET /distros/{slug}/ | View for viewing/listing distributions. |
Array<DistributionFull> distros_list
Get a list of all supported distributions.
Get a list of all supported distributions.
# load the gem
require 'cloudsmith-api'
# setup authorization
CloudsmithApi.configure do |config|
# Configure API key authorization: apikey
config.api_key['X-Api-Key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
# Configure HTTP basic authorization: basic
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = CloudsmithApi::DistrosApi.new
begin
#Get a list of all supported distributions.
result = api_instance.distros_list
p result
rescue CloudsmithApi::ApiError => e
puts "Exception when calling DistrosApi->distros_list: #{e}"
endThis endpoint does not need any parameter.
- Content-Type: application/json
- Accept: application/json
DistributionFull distros_read(slug)
View for viewing/listing distributions.
View for viewing/listing distributions.
# load the gem
require 'cloudsmith-api'
# setup authorization
CloudsmithApi.configure do |config|
# Configure API key authorization: apikey
config.api_key['X-Api-Key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
# Configure HTTP basic authorization: basic
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = CloudsmithApi::DistrosApi.new
slug = 'slug_example' # String |
begin
#View for viewing/listing distributions.
result = api_instance.distros_read(slug)
p result
rescue CloudsmithApi::ApiError => e
puts "Exception when calling DistrosApi->distros_read: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| slug | String |
- Content-Type: application/json
- Accept: application/json