TEXT service — service, that returns string to the client. Displayed with provided hint
Setup
In /metadata endpoint put this json field (omit the braces) into your response body:
{ "service_type": "TEXT" }
Look tutorial for reference
Response
In /process endpoint there is a predefined schema for a response, which has to look like this:
{
"hint": String,
"label": String
}
hint— string, that briefly describes the labellabel— string, that is a result of your calculations
Example
Response from the example above would look like this:
{
"hint": "Average income per month",
"label": "~ $1300 ± 150"
}
Other services
- Money - display localized money amount