# \PackagesApi

All URIs are relative to *http://localhost*

Method | HTTP request | Description
------------- | ------------- | -------------
[**get_package**](PackagesApi.md#get_package) | **GET** /api/v1/packages/{id} | Get a package by ID
[**get_package_versions**](PackagesApi.md#get_package_versions) | **GET** /api/v1/packages/{id}/versions | Get package versions
[**list_packages**](PackagesApi.md#list_packages) | **GET** /api/v1/packages | List packages



## get_package

> models::PackageResponse get_package(id)
Get a package by ID

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | Package ID | [required] |

### Return type

[**models::PackageResponse**](PackageResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### 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)


## get_package_versions

> models::PackageVersionsResponse get_package_versions(id)
Get package versions

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | Package ID | [required] |

### Return type

[**models::PackageVersionsResponse**](PackageVersionsResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### 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_packages

> models::PackageListResponse list_packages(page, per_page, repository_key, format, search)
List packages

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**page** | Option<**i32**> |  |  |
**per_page** | Option<**i32**> |  |  |
**repository_key** | Option<**String**> |  |  |
**format** | Option<**String**> |  |  |
**search** | Option<**String**> |  |  |

### Return type

[**models::PackageListResponse**](PackageListResponse.md)

### Authorization

[bearer_auth](../README.md#bearer_auth)

### 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)

