PSC REST API (1.0)

Download OpenAPI specification:Download

This API provides a way to automatically calculate the product simulation coefficient (c) using simplified inputs.

Product Simulation Coefficient REST API

Token

Get ID Token

Returns ID Token after successful authentication with Cognito

Request Body schema: application/json
required
username
string
password
string

Responses

Request samples

Content type
application/json
{
  • "username": "string",
  • "password": "string"
}

Response samples

Content type
application/json
{
  • "IdToken": "string"
}

Product Simulation Coefficient

/v1/coefficient

Authorizations:
cognitoUserPool
query Parameters
mass
required
number > 0

A positive float representing the mass of the product in kilograms (kg)

purpose
required
string
Enum: "cooling" "freezing"

Specifies the purposed environment where the coefficient will be used. Valid values are 'cooling' for chillers and 'freezing' for deep freezers.

Responses

Response samples

Content type
application/json
{
  • "coefficient": 12
}

CORS support

Enable CORS by returning correct headers

Responses