Skip to main content

FormulaApi

valkyrai-api

All URIs are relative to http://localhost:8080/v1

MethodHTTP requestDescription
deleteFormulaDELETE FormulaApiDelete a Formula.

deleteFormula

Void
deleteFormula(id)

Delete a Formula.

Deletes a specific Formula.

Example

Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.FormulaApi;


FormulaApi apiInstance = new FormulaApi();
UUID id = UUID.randomUUID(); // UUID | Unique identifier for the Formula.

try {
Void result = apiInstance.deleteFormula(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FormulaApi#deleteFormula");
e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
idUUIDUnique identifier for the Formula.

Return type

Void

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

getFormula

Formula
getFormula(id)

Retrieve a single Formula

Retrieves a single Formula for a specific uid.

Example

Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.FormulaApi;


FormulaApi apiInstance = new FormulaApi();
UUID id = UUID.randomUUID(); // UUID | Unique identifier for the Formula.

try {
Formula result = apiInstance.getFormula(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FormulaApi#getFormula");
e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
idUUIDUnique identifier for the Formula.

Return type

Formula

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getFormulaList

Formula
getFormulaList()

Retrieve a list of Formulas

Retrieves a list of Formulas.

Example

Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.FormulaApi;


FormulaApi apiInstance = new FormulaApi();

try {
Formula result = apiInstance.getFormulaList();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FormulaApi#getFormulaList");
e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

Formula

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

postFormula

Formula
postFormula(formula)

Create a new Formula

Creates a new Formula.

Example

Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.FormulaApi;


FormulaApi apiInstance = new FormulaApi();
Formula formula = new Formula(); // Formula | Formula details.

try {
Formula result = apiInstance.postFormula(formula);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FormulaApi#postFormula");
e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
formulaFormulaFormula details.

Return type

Formula

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

updateFormula

Formula
updateFormula(idformula)

Update an existing Formula

Updates an existing Formula.

Example

Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.FormulaApi;


FormulaApi apiInstance = new FormulaApi();
UUID id = UUID.randomUUID(); // UUID | Unique identifier for the Formula.
Formula formula = new Formula(); // Formula | Updated Formula details.

try {
Formula result = apiInstance.updateFormula(idformula);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FormulaApi#updateFormula");
e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
idUUIDUnique identifier for the Formula.
formulaFormulaUpdated Formula details.

Return type

Formula

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

Generated Version Details

~value
GENERATOR VERSIONcom.valkyrlabs:ValkyrAI API 1.0-SNAPSHOT
API ARTIFACTcom.valkyrlabs.valkyrai-api.jar
GENERATOR VERSIONorg.openapitools.openapi-generator:7.5.0
GENERATOR CLASSorg.openapitools.codegen.languages.SpringCodegen
GENERATED DATE2025-04-09T20:27:13.881184-07:00[America/Los_Angeles]