API reference
Automatically generate random calculation inputs and see what the calculation returns
This endpoint allows you to simulate a calculation and therefore helps you understand what inputs a calculation expects and what results it returns. When calling this endpoint, 2 things will happen:
GET/v1/calculations/simulate/{calculationId}
This endpoint expects a calculationId
to be passed as a path parameter.
Parameter | Type | Required |
---|---|---|
calculationId | string | yes |
When successful, the API will return a HTTP status code of 200. In the response you'll find the simulated calculation inputs and the corresponding results. Below you can find an example response for the BMI calculation.
01
When a calculation for the given calculationId
cannot be found, the API will return a 400 HTTP status code and the following response:
01
When unsuccessful, the API will return a 500 HTTP status.