# \ArtifactsApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**get_artifact**](ArtifactsApi.md#get_artifact) | **GET** /api/v1/artifacts/{id} | Get artifact by ID
[**get_artifact_metadata**](ArtifactsApi.md#get_artifact_metadata) | **GET** /api/v1/artifacts/{id}/metadata | Get artifact metadata
[**get_artifact_stats**](ArtifactsApi.md#get_artifact_stats) | **GET** /api/v1/artifacts/{id}/stats | Get artifact download stats



## get_artifact

> models::Artifact get_artifact(id, repository_key)
Get artifact by ID

Returns artifact metadata by its unique identifier. Optionally scope by repository key.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | Artifact UUID | [required] |
**repository_key** | Option<**String**> | Optional repository key to scope the lookup. |  |

### Return type

[**models::Artifact**](Artifact.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)


## get_artifact_metadata

> std::collections::HashMap<String, serde_json::Value> get_artifact_metadata(id)
Get artifact metadata

Returns format-specific metadata for the artifact (e.g. Maven POM info, npm package.json fields, Docker manifest data).

### Parameters


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

### Return type

[**std::collections::HashMap<String, serde_json::Value>**](serde_json::Value.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)


## get_artifact_stats

> models::GetArtifactStats200Response get_artifact_stats(id)
Get artifact download stats

Returns download statistics for the specified artifact.

### Parameters


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

### Return type

[**models::GetArtifactStats200Response**](getArtifactStats_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)

