# \AssetApi

All URIs are relative to */api*

Method | HTTP request | Description
------------- | ------------- | -------------
[**list_assets**](AssetApi.md#list_assets) | **GET** /w/{workspace}/assets/list | List all assets in the workspace with cursor pagination
[**list_assets_by_usage**](AssetApi.md#list_assets_by_usage) | **POST** /w/{workspace}/assets/list_by_usages | List all assets used by given usages paths
[**list_favorite_assets**](AssetApi.md#list_favorite_assets) | **GET** /w/{workspace}/assets/list_favorites | List all favorite assets for the authenticated user



## list_assets

> models::ListAssets200Response list_assets(workspace, per_page, cursor_created_at, cursor_id, asset_path, usage_path, asset_kinds, path, columns, broad_filter)
List all assets in the workspace with cursor pagination

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |
**per_page** | Option<**i32**> | Number of items per page (max 1000, default 50) |  |[default to 50]
**cursor_created_at** | Option<**String**> | Cursor timestamp for pagination (created_at of last item from previous page) |  |
**cursor_id** | Option<**i64**> | Cursor ID for pagination (id of last item from previous page) |  |
**asset_path** | Option<**String**> | Filter by asset path (case-insensitive partial match) |  |
**usage_path** | Option<**String**> | Filter by usage path (case-insensitive partial match) |  |
**asset_kinds** | Option<**String**> | Filter by asset kinds (multiple values allowed) |  |
**path** | Option<**String**> | exact path match filter |  |
**columns** | Option<**String**> | JSONB subset match filter for columns using base64 encoded JSON |  |
**broad_filter** | Option<**String**> | broad search across multiple fields (case-insensitive substring match) |  |

### Return type

[**models::ListAssets200Response**](listAssets_200_response.md)

### Authorization

[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)

### HTTP request headers

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

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## list_assets_by_usage

> Vec<Vec<models::ListAssetsByUsage200ResponseInnerInner>> list_assets_by_usage(workspace, list_assets_by_usage_request)
List all assets used by given usages paths

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |
**list_assets_by_usage_request** | [**ListAssetsByUsageRequest**](ListAssetsByUsageRequest.md) | list assets by usages | [required] |

### Return type

[**Vec<Vec<models::ListAssetsByUsage200ResponseInnerInner>>**](Vec.md)

### Authorization

[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)

### HTTP request headers

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

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## list_favorite_assets

> Vec<models::ListFavoriteAssets200ResponseInner> list_favorite_assets(workspace)
List all favorite assets for the authenticated user

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |

### Return type

[**Vec<models::ListFavoriteAssets200ResponseInner>**](listFavoriteAssets_200_response_inner.md)

### Authorization

[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)

### HTTP request headers

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

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

