# \SbomApi
All URIs are relative to *http://localhost*
[**check_license_compliance**](SbomApi.md#check_license_compliance) | **POST** /api/v1/sbom/check-compliance | Check license compliance against policies
[**convert_sbom**](SbomApi.md#convert_sbom) | **POST** /api/v1/sbom/{id}/convert | Convert an SBOM to a different format
[**delete_license_policy**](SbomApi.md#delete_license_policy) | **DELETE** /api/v1/sbom/license-policies/{id} | Delete a license policy
[**delete_sbom**](SbomApi.md#delete_sbom) | **DELETE** /api/v1/sbom/{id} | Delete an SBOM
[**generate_sbom**](SbomApi.md#generate_sbom) | **POST** /api/v1/sbom | Generate an SBOM for an artifact
[**get_cve_history**](SbomApi.md#get_cve_history) | **GET** /api/v1/sbom/cve/history/{artifact_id} | Get CVE history for an artifact
[**get_cve_trends**](SbomApi.md#get_cve_trends) | **GET** /api/v1/sbom/cve/trends | Get CVE trends and statistics
[**get_license_policy**](SbomApi.md#get_license_policy) | **GET** /api/v1/sbom/license-policies/{id} | Get a license policy by ID
[**get_sbom**](SbomApi.md#get_sbom) | **GET** /api/v1/sbom/{id} | Get SBOM by ID with full content
[**get_sbom_by_artifact**](SbomApi.md#get_sbom_by_artifact) | **GET** /api/v1/sbom/by-artifact/{artifact_id} | Get SBOM by artifact ID
[**get_sbom_components**](SbomApi.md#get_sbom_components) | **GET** /api/v1/sbom/{id}/components | Get components of an SBOM
[**list_license_policies**](SbomApi.md#list_license_policies) | **GET** /api/v1/sbom/license-policies | List all license policies
[**list_sboms**](SbomApi.md#list_sboms) | **GET** /api/v1/sbom | List SBOMs with optional filters
[**update_cve_status**](SbomApi.md#update_cve_status) | **POST** /api/v1/sbom/cve/status/{id} | Update CVE status
[**upsert_license_policy**](SbomApi.md#upsert_license_policy) | **POST** /api/v1/sbom/license-policies | Create or update a license policy
## check_license_compliance
> models::LicenseCheckResult check_license_compliance(check_license_compliance_request)
Check license compliance against policies
### Parameters
**check_license_compliance_request** | [**CheckLicenseComplianceRequest**](CheckLicenseComplianceRequest.md) | | [required] |
### Return type
[**models::LicenseCheckResult**](LicenseCheckResult.md)
### Authorization
[bearer_auth](../README.md#bearer_auth)
### 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)
## convert_sbom
> models::SbomResponse convert_sbom(id, convert_sbom_request)
Convert an SBOM to a different format
### Parameters
**id** | **uuid::Uuid** | SBOM ID | [required] |
**convert_sbom_request** | [**ConvertSbomRequest**](ConvertSbomRequest.md) | | [required] |
### Return type
[**models::SbomResponse**](SbomResponse.md)
### Authorization
[bearer_auth](../README.md#bearer_auth)
### 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)
## delete_license_policy
> serde_json::Value delete_license_policy(id)
Delete a license policy
### Parameters
**id** | **uuid::Uuid** | License policy ID | [required] |
### Return type
[**serde_json::Value**](serde_json::Value.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)
## delete_sbom
> serde_json::Value delete_sbom(id)
Delete an SBOM
### Parameters
**id** | **uuid::Uuid** | SBOM ID | [required] |
### Return type
[**serde_json::Value**](serde_json::Value.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)
## generate_sbom
> models::SbomResponse generate_sbom(generate_sbom_request)
Generate an SBOM for an artifact
### Parameters
**generate_sbom_request** | [**GenerateSbomRequest**](GenerateSbomRequest.md) | | [required] |
### Return type
[**models::SbomResponse**](SbomResponse.md)
### Authorization
[bearer_auth](../README.md#bearer_auth)
### 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)
## get_cve_history
> Vec<models::CveHistoryEntry> get_cve_history(artifact_id)
Get CVE history for an artifact
### Parameters
**artifact_id** | **uuid::Uuid** | Artifact ID | [required] |
### Return type
[**Vec<models::CveHistoryEntry>**](CveHistoryEntry.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_cve_trends
> models::CveTrends get_cve_trends(repository_id, days)
Get CVE trends and statistics
### Parameters
**repository_id** | Option<**uuid::Uuid**> | | |
**days** | Option<**i32**> | | |
### Return type
[**models::CveTrends**](CveTrends.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_license_policy
> models::LicensePolicyResponse get_license_policy(id)
Get a license policy by ID
### Parameters
**id** | **uuid::Uuid** | License policy ID | [required] |
### Return type
[**models::LicensePolicyResponse**](LicensePolicyResponse.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_sbom
> models::SbomContentResponse get_sbom(id)
Get SBOM by ID with full content
### Parameters
**id** | **uuid::Uuid** | SBOM ID | [required] |
### Return type
[**models::SbomContentResponse**](SbomContentResponse.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_sbom_by_artifact
> models::SbomContentResponse get_sbom_by_artifact(artifact_id)
Get SBOM by artifact ID
### Parameters
**artifact_id** | **uuid::Uuid** | Artifact ID | [required] |
### Return type
[**models::SbomContentResponse**](SbomContentResponse.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_sbom_components
> Vec<models::ComponentResponse> get_sbom_components(id)
Get components of an SBOM
### Parameters
**id** | **uuid::Uuid** | SBOM ID | [required] |
### Return type
[**Vec<models::ComponentResponse>**](ComponentResponse.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_license_policies
> Vec<models::LicensePolicyResponse> list_license_policies()
List all license policies
### Parameters
This endpoint does not need any parameter.
### Return type
[**Vec<models::LicensePolicyResponse>**](LicensePolicyResponse.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_sboms
> Vec<models::SbomResponse> list_sboms(artifact_id, repository_id, format)
List SBOMs with optional filters
### Parameters
**artifact_id** | Option<**uuid::Uuid**> | | |
**repository_id** | Option<**uuid::Uuid**> | | |
**format** | Option<**String**> | | |
### Return type
[**Vec<models::SbomResponse>**](SbomResponse.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)
## update_cve_status
> models::CveHistoryEntry update_cve_status(id, update_cve_status_request)
Update CVE status
### Parameters
**id** | **uuid::Uuid** | CVE history entry ID | [required] |
**update_cve_status_request** | [**UpdateCveStatusRequest**](UpdateCveStatusRequest.md) | | [required] |
### Return type
[**models::CveHistoryEntry**](CveHistoryEntry.md)
### Authorization
[bearer_auth](../README.md#bearer_auth)
### 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)
## upsert_license_policy
> models::LicensePolicyResponse upsert_license_policy(upsert_license_policy_request)
Create or update a license policy
### Parameters
**upsert_license_policy_request** | [**UpsertLicensePolicyRequest**](UpsertLicensePolicyRequest.md) | | [required] |
### Return type
[**models::LicensePolicyResponse**](LicensePolicyResponse.md)
### Authorization
[bearer_auth](../README.md#bearer_auth)
### 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)