Group Abstract Group Abstract

Message Boards Message Boards

1
|
2K Views
|
1 Reply
|
1 Total Like
View groups...
Share
Share this post:

How to deploy an API function that accepts Quantity queries?

POSTED BY: Peter Burbery
Posted 1 month ago

Hints:

  1. Your intuition with the HTTP Request structure is correct, but you must ensure the values in the query are correctly serialized as strings.

  2. To correctly execute your deployed APIFunction, you must convert all the input Quantity values into strings that the Wolfram Language can interpret as units. The Cloud API will automatically parse these strings back into Quantity objects because you used the Restricted["ComputedQuantity", ...] parameter type.

  3. Use ToString to convert your Quantity values into strings before building the query.

POSTED BY: Rob Pacey
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard