POST | /correction/ | ||
---|---|---|---|
GET OPTIONS | /correction/{CurrentWord} | ||
GET OPTIONS | /correction/{CurrentWord}/{PrecedingText} | ||
GET OPTIONS | /correction/{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 |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
lingitwords | body | LingitWordsCorrection | No | |
HasError | body | bool | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
correction | 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 .jsv suffix or ?format=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: 3.248.250.59
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 }