Page History
Excerpt | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1. OverviewThere are the main commands that are available for Web API requests:
Depending on your tasks and needs, you can form and send your API requests using GET or POST methods. Below you will find templates for both request methods. 1.1. Template of Request URL using GET
1.2. Template of Request URL using POST
2. Check Spelling Command
Here is a list of all possible parameters and values that can be used with the check_spelling command.
Example 2.1: Check Spelling Request using GET (Output in XML)
Parameters:
Request Response:
Example 2.2: Check Spelling Request (Output in JSON)
Parameters:
Request Response:
Example 2.3: Check Spelling Request using POST (Output in JSON)Here we use the same request and parameters as described in example above but form it as a POST request.
Request Response:
3. Grammar Check Command
Here is a list of all possible parameters and values that can be used with the grammar_check command.
Example 3.1: Grammar Check Request using GET (Output in XML)
Parameters:
Request Response:
Example 3.2: Grammar Check Request using GET (Output in JSON)
Parameters:
Request Response:
Example 3.3: Grammar Check Request using POST (Output in JSON)Here we use the same request and parameters as described in example above but form it as a POST request.
Request Response:
4. User Dictionary Command
Here is a list of all possible parameters and values that can be used with the user_dictionary command.
Here is a list of all possible parameters and values that can be used with the user_dictionary action parameter.
Example 4.1: Create User Dictionary (XML)
Parameters:
Request Response:
Example 4.2: Get User Dictionary Content (JSON)
Parameters:
Request Response:
Example 4.3: Get User Dictionary Content using POST (Output in JSON)Using the same request and parameters as described in example 4.2 but form it as a POST request.
Request Response:
5. Get Languages List Command
Example 5.1: Get Languages List (JSON)
Parameters:
Request Response:
6. Check Version Command
Example 6.1: Check Application Version
7. Check Engines Status Command
Example 7.1: Check Engines Status
8. HTTP Status CodesRefer to Overview of HTTP Status Codes section for more information on HTTP responses you may get when integrating WebSpellChecker and testing REST API. |