Webappella Web Services

<back to all web services

PredictionRequest

The following routes are available for this service:
POST/prediction/
GET OPTIONS/prediction/{CurrentWord}/{PrecedingText}
GET OPTIONS/prediction/{CurrentWord}/{PrecedingText}/{SucceedingText}
GET OPTIONS/prediction/{CurrentWord}
PredictionRequest Parameters:
NameParameterData TypeRequiredDescription
CurrentWordpathstringNo
PrecedingTextpathstringNo
SucceedingTextpathstringNo
LanguagebodystringNo
NumberOfSuggestionsbodystringNo
PrincipalbodyClaimsPrincipalNo
PredictionResult Parameters:
NameParameterData TypeRequiredDescription
lingitwordsbodyLingitWordsNo
LingitWords Parameters:
NameParameterData TypeRequiredDescription
predictionbodySuggestion[]No
Suggestion Parameters:
NameParameterData TypeRequiredDescription
TextbodystringNo
LookUpTypebodyLookupTypeNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + 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: 34.253.49.152 
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.