Webappella Web Services

<back to all web services

CorrectionRequest

The following routes are available for this service:
POST/correction/
GET OPTIONS/correction/{CurrentWord}/{PrecedingText}/{SucceedingText}
GET OPTIONS/correction/{CurrentWord}
GET OPTIONS/correction/{CurrentWord}/{PrecedingText}
CorrectionRequest Parameters:
NameParameterData TypeRequiredDescription
CurrentWordpathstringNo
PrecedingTextpathstringNo
SucceedingTextpathstringNo
LanguagebodystringNo
NumberOfSuggestionsbodystringNo
CorrectionResult Parameters:
NameParameterData TypeRequiredDescription
lingitwordsbodyLingitWordsCorrectionNo
HasErrorbodyboolNo
LingitWordsCorrection Parameters:
NameParameterData TypeRequiredDescription
correctionbodySuggestion[]No
Suggestion Parameters:
NameParameterData TypeRequiredDescription
TextbodystringNo
ResultTextbodystringNo
DisplayTextbodystringNo
LookUpTypebodyLookupTypeNo

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

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /jsv/reply/CorrectionRequest HTTP/1.1 
Host: 34.253.49.152 
Content-Type: text/jsv
Content-Length: length

{
	CurrentWord: String,
	PrecedingText: String,
	SucceedingText: String,
	Language: String,
	NumberOfSuggestions: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	lingitwords: 
	{
		correction: 
		[
			{
				
			}
		]
	},
	HasError: False
}