ProductApi
valkyrai-api
All URIs are relative to http://localhost:8080/v1
| Method | HTTP request | Description |
|---|---|---|
| deleteProduct | DELETE ProductApi | Delete a Product. |
deleteProduct
Void
deleteProduct(id)
Delete a Product.
Deletes a specific Product.
Example
Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.ProductApi;
ProductApi apiInstance = new ProductApi();
UUID id = UUID.randomUUID(); // UUID | Unique identifier for the Product.
try {
Void result = apiInstance.deleteProduct(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProductApi#deleteProduct");
e.printStackTrace();
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| id | UUID | Unique identifier for the Product. |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
getProduct
Product
getProduct(id)
Retrieve a single Product
Retrieves a single Product for a specific uid.
Example
Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.ProductApi;
ProductApi apiInstance = new ProductApi();
UUID id = UUID.randomUUID(); // UUID | Unique identifier for the Product.
try {
Product result = apiInstance.getProduct(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProductApi#getProduct");
e.printStackTrace();
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| id | UUID | Unique identifier for the Product. |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
getProductList
Product
getProductList(pagesizesort)
Retrieve a list of Products
Retrieves a list of Products.
Example
Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.ProductApi;
ProductApi apiInstance = new ProductApi();
Integer page = 0; // Integer |
Integer size = 20; // Integer |
List<String> sort = Arrays.asList(); // List<String> |
try {
Product result = apiInstance.getProductList(pagesizesort);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProductApi#getProductList");
e.printStackTrace();
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| page | Integer | [optional] [default to 0] | |
| size | Integer | [optional] [default to 20] | |
| sort | List<String> | [optional] |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
postProduct
Product
postProduct(product)
Create a new Product
Creates a new Product.
Example
Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.ProductApi;
ProductApi apiInstance = new ProductApi();
Product product = new Product(); // Product | Product details.
try {
Product result = apiInstance.postProduct(product);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProductApi#postProduct");
e.printStackTrace();
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| product | Product | Product details. |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
updateProduct
Product
updateProduct(idproduct)
Update an existing Product
Updates an existing Product.
Example
Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.ProductApi;
ProductApi apiInstance = new ProductApi();
UUID id = UUID.randomUUID(); // UUID | Unique identifier for the Product.
Product product = new Product(); // Product | Updated Product details.
try {
Product result = apiInstance.updateProduct(idproduct);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProductApi#updateProduct");
e.printStackTrace();
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| id | UUID | Unique identifier for the Product. | |
| product | Product | Updated Product details. |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
Generated Version Details
| ~ | value |
|---|---|
| GENERATOR VERSION | com.valkyrlabs:ValkyrAI API 1.0.1-SNAPSHOT |
| API ARTIFACT | com.valkyrlabs.valkyrai-api.jar |
| GENERATOR VERSION | org.openapitools.openapi-generator:7.5.0 |
| GENERATOR CLASS | org.openapitools.codegen.languages.SpringCodegen |
| GENERATED DATE | 2025-09-03T16:35:42.569765-07:00[America/Los_Angeles] |