# CloudsmithApi::ReposApi All URIs are relative to *https://api.cloudsmith.io/v1* Method | HTTP request | Description ------------- | ------------- | ------------- [**repos_list**](ReposApi.md#repos_list) | **GET** /repos/ | Get a list of all repositories associated with current user. [**repos_list0**](ReposApi.md#repos_list0) | **GET** /repos/{owner}/ | Get a list of all repositories within a namespace. [**repos_read**](ReposApi.md#repos_read) | **GET** /repos/{owner}/{slug}/ | Views for working with repositories. # **repos_list** > Array<Repository> repos_list(opts) Get a list of all repositories associated with current user. Get a list of all repositories associated with current user. ### Example ```ruby # 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' # Configure API key authorization: csrf_token config.api_key['X-CSRFToken'] = '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-CSRFToken'] = 'Bearer' end api_instance = CloudsmithApi::ReposApi.new opts = { page: 56, # Integer | A page number within the paginated result set. page_size: 56 # Integer | Number of results to return per page. } begin #Get a list of all repositories associated with current user. result = api_instance.repos_list(opts) p result rescue CloudsmithApi::ApiError => e puts "Exception when calling ReposApi->repos_list: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **page** | **Integer**| A page number within the paginated result set. | [optional] **page_size** | **Integer**| Number of results to return per page. | [optional] ### Return type [**Array<Repository>**](Repository.md) ### Authorization [apikey](../README.md#apikey), [basic](../README.md#basic), [csrf_token](../README.md#csrf_token) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: Not defined # **repos_list0** > Array<Repository> repos_list0(owner, opts) Get a list of all repositories within a namespace. Get a list of all repositories within a namespace. ### Example ```ruby # 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' # Configure API key authorization: csrf_token config.api_key['X-CSRFToken'] = '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-CSRFToken'] = 'Bearer' end api_instance = CloudsmithApi::ReposApi.new owner = "owner_example" # String | opts = { page: 56, # Integer | A page number within the paginated result set. page_size: 56 # Integer | Number of results to return per page. } begin #Get a list of all repositories within a namespace. result = api_instance.repos_list0(owner, opts) p result rescue CloudsmithApi::ApiError => e puts "Exception when calling ReposApi->repos_list0: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **page** | **Integer**| A page number within the paginated result set. | [optional] **page_size** | **Integer**| Number of results to return per page. | [optional] ### Return type [**Array<Repository>**](Repository.md) ### Authorization [apikey](../README.md#apikey), [basic](../README.md#basic), [csrf_token](../README.md#csrf_token) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: Not defined # **repos_read** > Repository repos_read(owner, slug) Views for working with repositories. Views for working with repositories. ### Example ```ruby # 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' # Configure API key authorization: csrf_token config.api_key['X-CSRFToken'] = '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-CSRFToken'] = 'Bearer' end api_instance = CloudsmithApi::ReposApi.new owner = "owner_example" # String | slug = "slug_example" # String | begin #Views for working with repositories. result = api_instance.repos_read(owner, slug) p result rescue CloudsmithApi::ApiError => e puts "Exception when calling ReposApi->repos_read: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **slug** | **String**| | ### Return type [**Repository**](Repository.md) ### Authorization [apikey](../README.md#apikey), [basic](../README.md#basic), [csrf_token](../README.md#csrf_token) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: Not defined