# \PackagesApi

All URIs are relative to *https://registry.example.com*

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



## get_package

> models::Package get_package(id)
Get package

Returns detailed information about a single package.

### Parameters


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

### Return type

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

### Authorization

[apiKeyAuth](../README.md#apiKeyAuth), [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_package_versions

> Vec<models::PackageVersion> list_package_versions(id)
List package versions

Returns all published versions of the specified package.

### Parameters


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

### Return type

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

### Authorization

[apiKeyAuth](../README.md#apiKeyAuth), [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_packages

> models::ListPackages200Response list_packages(repository, format, page, per_page)
List packages

Returns a paginated list of packages with optional filtering by repository and format.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**repository** | Option<**String**> | Filter by repository key. |  |
**format** | Option<**String**> | Filter by package format. |  |
**page** | Option<**i32**> | Page number for pagination |  |[default to 1]
**per_page** | Option<**i32**> | Number of items per page |  |[default to 20]

### Return type

[**models::ListPackages200Response**](listPackages_200_response.md)

### Authorization

[apiKeyAuth](../README.md#apiKeyAuth), [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)

