POST | /prediction/ | ||
---|---|---|---|
GET OPTIONS | /prediction/{CurrentWord} | ||
GET OPTIONS | /prediction/{CurrentWord}/{PrecedingText} | ||
GET OPTIONS | /prediction/{CurrentWord}/{PrecedingText}/{SucceedingText} |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CurrentWord | path | string | No | |
PrecedingText | path | string | No | |
SucceedingText | path | string | No | |
Language | body | string | No | |
NumberOfSuggestions | body | string | No | |
Principal | body | ClaimsPrincipal | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
lingitwords | body | LingitWords | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
prediction | body | SuggestionWrapper[] | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Text | body | string | No | |
ResultText | body | string | No | |
DisplayText | body | string | No | |
LookUpType | body | LookupType | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /csv/reply/PredictionRequest HTTP/1.1
Host: 3.248.250.59
Content-Type: text/csv
Content-Length: length
{"CurrentWord":"String","PrecedingText":"String","SucceedingText":"String","Language":"String","NumberOfSuggestions":"String","Principal":{"Claims":[],"Identities":[]}}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {Unable to show example output for type 'PredictionResult' using the custom 'csv' filter}No parameterless constructor defined for this object.