CustomerApi
valkyrai-api
All URIs are relative to http://localhost:8080/v1
| Method | HTTP request | Description |
|---|---|---|
| deleteCustomer | DELETE CustomerApi | Delete a Customer. |
deleteCustomer
Void
deleteCustomer(id)
Delete a Customer.
Deletes a specific Customer.
Example
Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.CustomerApi;
CustomerApi apiInstance = new CustomerApi();
UUID id = UUID.randomUUID(); // UUID | Unique identifier for the Customer.
try {
Void result = apiInstance.deleteCustomer(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CustomerApi#deleteCustomer");
e.printStackTrace();
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| id | UUID | Unique identifier for the Customer. |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
getCustomer
Customer
getCustomer(id)
Retrieve a single Customer
Retrieves a single Customer for a specific uid.
Example
Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.CustomerApi;
CustomerApi apiInstance = new CustomerApi();
UUID id = UUID.randomUUID(); // UUID | Unique identifier for the Customer.
try {
Customer result = apiInstance.getCustomer(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CustomerApi#getCustomer");
e.printStackTrace();
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| id | UUID | Unique identifier for the Customer. |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
getCustomerList
Customer
getCustomerList(pagesizesort)
Retrieve a list of Customers
Retrieves a list of Customers.
Example
Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.CustomerApi;
CustomerApi apiInstance = new CustomerApi();
Integer page = 0; // Integer |
Integer size = 20; // Integer |
List<String> sort = Arrays.asList(); // List<String> |
try {
Customer result = apiInstance.getCustomerList(pagesizesort);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CustomerApi#getCustomerList");
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
postCustomer
Customer
postCustomer(customer)
Create a new Customer
Creates a new Customer.
Example
Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.CustomerApi;
CustomerApi apiInstance = new CustomerApi();
Customer customer = new Customer(); // Customer | Customer details.
try {
Customer result = apiInstance.postCustomer(customer);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CustomerApi#postCustomer");
e.printStackTrace();
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| customer | Customer | Customer details. |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
updateCustomer
Customer
updateCustomer(idcustomer)
Update an existing Customer
Updates an existing Customer.
Example
Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.CustomerApi;
CustomerApi apiInstance = new CustomerApi();
UUID id = UUID.randomUUID(); // UUID | Unique identifier for the Customer.
Customer customer = new Customer(); // Customer | Updated Customer details.
try {
Customer result = apiInstance.updateCustomer(idcustomer);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CustomerApi#updateCustomer");
e.printStackTrace();
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| id | UUID | Unique identifier for the Customer. | |
| customer | Customer | Updated Customer 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] |