docs/ReposApi.md in cloudsmith-api-0.21.4 vs docs/ReposApi.md in cloudsmith-api-0.30.7

- old
+ new

@@ -1,18 +1,85 @@ # CloudsmithApi::ReposApi -All URIs are relative to *https://api-prd.cloudsmith.io/v1* +All URIs are relative to *https://api.cloudsmith.io/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**repos_list**](ReposApi.md#repos_list) | **GET** /repos/{owner}/ | Get a list of all repositories within a namespace. +[**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(owner, opts) +> 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 @@ -45,13 +112,13 @@ 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_list(owner, opts) + result = api_instance.repos_list0(owner, opts) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_list: #{e}" + puts "Exception when calling ReposApi->repos_list0: #{e}" end ``` ### Parameters