Sha256: 9573c2d8d7725a0a5378ed3a4339ed9ff7fe435dc7415c3532e634891203fafd

Contents?: true

Size: 1.75 KB

Versions: 314

Compression:

Stored size: 1.75 KB

Contents

# CybridApiBank::AssetsBankApi

All URIs are relative to *https://bank.demo.cybrid.app*

| Method | HTTP request | Description |
| ------ | ------------ | ----------- |
| [**list_assets**](AssetsBankApi.md#list_assets) | **GET** /api/assets | Get assets list |


## list_assets

> <AssetListBankModel> list_assets(opts)

Get assets list

Retrieves a listing of assets.

### Examples

```ruby
require 'time'
require 'cybrid_api_bank_ruby'

api_instance = CybridApiBank::AssetsBankApi.new
opts = {
  page: 56, # Integer | The page index to retrieve.
  per_page: 56 # Integer | The number of entities per page to return.
}

begin
  # Get assets list
  result = api_instance.list_assets(opts)
  p result
rescue CybridApiBank::ApiError => e
  puts "Error when calling AssetsBankApi->list_assets: #{e}"
end
```

#### Using the list_assets_with_http_info variant

This returns an Array which contains the response data, status code and headers.

> <Array(<AssetListBankModel>, Integer, Hash)> list_assets_with_http_info(opts)

```ruby
begin
  # Get assets list
  data, status_code, headers = api_instance.list_assets_with_http_info(opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <AssetListBankModel>
rescue CybridApiBank::ApiError => e
  puts "Error when calling AssetsBankApi->list_assets_with_http_info: #{e}"
end
```

### Parameters

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **page** | **Integer** | The page index to retrieve. | [optional] |
| **per_page** | **Integer** | The number of entities per page to return. | [optional] |

### Return type

[**AssetListBankModel**](AssetListBankModel.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

Version data entries

314 entries across 314 versions & 1 rubygems

Version Path
cybrid_api_bank_ruby-0.62.4 docs/AssetsBankApi.md
cybrid_api_bank_ruby-0.62.3 docs/AssetsBankApi.md
cybrid_api_bank_ruby-0.62.1 docs/AssetsBankApi.md
cybrid_api_bank_ruby-0.62.0 docs/AssetsBankApi.md
cybrid_api_bank_ruby-0.61.0 docs/AssetsBankApi.md
cybrid_api_bank_ruby-0.60.11 docs/AssetsBankApi.md
cybrid_api_bank_ruby-0.60.10 docs/AssetsBankApi.md
cybrid_api_bank_ruby-0.60.9 docs/AssetsBankApi.md
cybrid_api_bank_ruby-0.60.8 docs/AssetsBankApi.md
cybrid_api_bank_ruby-0.60.7 docs/AssetsBankApi.md
cybrid_api_bank_ruby-0.60.6 docs/AssetsBankApi.md
cybrid_api_bank_ruby-0.60.4 docs/AssetsBankApi.md
cybrid_api_bank_ruby-0.60.3 docs/AssetsBankApi.md
cybrid_api_bank_ruby-0.60.1 docs/AssetsBankApi.md
cybrid_api_bank_ruby-0.60.0 docs/AssetsBankApi.md
cybrid_api_bank_ruby-0.59.2 docs/AssetsBankApi.md
cybrid_api_bank_ruby-0.58.38 docs/AssetsBankApi.md
cybrid_api_bank_ruby-0.58.37 docs/AssetsBankApi.md
cybrid_api_bank_ruby-0.58.36 docs/AssetsBankApi.md
cybrid_api_bank_ruby-0.58.35 docs/AssetsBankApi.md