# casdoor\ProductApi All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- [**add_product**](ProductApi.md#add_product) | **POST** /api/add-product | [**buy_product**](ProductApi.md#buy_product) | **POST** /api/buy-product | [**delete_product**](ProductApi.md#delete_product) | **POST** /api/delete-product | [**get_product**](ProductApi.md#get_product) | **GET** /api/get-product | [**get_products**](ProductApi.md#get_products) | **GET** /api/get-products | [**update_product**](ProductApi.md#update_product) | **POST** /api/update-product | ## add_product > models::ControllersResponse add_product(body) add product ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **body** | [**Product**](Product.md) | The details of the product | [required] | ### Return type [**models::ControllersResponse**](controllers.Response.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: */* [[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) ## buy_product > models::ControllersResponse buy_product(id, provider_name) buy product ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **id** | **String** | The id ( owner/name ) of the product | [required] | **provider_name** | **String** | The name of the provider | [required] | ### Return type [**models::ControllersResponse**](controllers.Response.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: */* [[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_product > models::ControllersResponse delete_product(body) delete product ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **body** | [**Product**](Product.md) | The details of the product | [required] | ### Return type [**models::ControllersResponse**](controllers.Response.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: */* [[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_product > models::Product get_product(id) get product ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **id** | **String** | The id ( owner/name ) of the product | [required] | ### Return type [**models::Product**](object.Product.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: */* [[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_products > Vec get_products(owner) get products ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **owner** | **String** | The owner of products | [required] | ### Return type [**Vec**](object.Product.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: */* [[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_product > models::ControllersResponse update_product(id, body) update product ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **id** | **String** | The id ( owner/name ) of the product | [required] | **body** | [**Product**](Product.md) | The details of the product | [required] | ### Return type [**models::ControllersResponse**](controllers.Response.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: */* [[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)