ReportingCloud

GET /v1/proofing/availabledictionaries

Endpoint

GET https://api.reporting.cloud/v1/proofing/availabledictionaries

Description

Returns the names of the dictionaries of the spell checker, such as en_US.dic. Every name can be passed as the language of GET /v1/proofing/check and GET /v1/proofing/suggestions. en_US_OpenMedSpel.dic (medical terms) and en_US_Legal.txd (legal terms) are supplementary word lists, not complete dictionaries: a check with one of them reports common words such as "the" as misspelled. This method doesn't count against the spell checking quota.

Examples

Request:

curl -u username:password \
  -X GET "https://api.reporting.cloud/v1/proofing/availabledictionaries"

Results:

[
  "af_ZA.dic", "an_ES.dic", "ar.dic", "be_BY.dic", "bg_BG.dic", "br_FR.dic", "ca.dic",
  "cs_CZ.dic", "da_DK.dic", "de_AT_frami.dic", "de_CH_frami.dic", "de_DE_frami.dic", "el_GR.dic", "en_AU.dic",
  "en_CA.dic", "en_GB.dic", "en_US.dic", "en_US_OpenMedSpel.dic", "en_ZA.dic", "es_ES.dic", "et_EE.dic",
  "fa.dic", "fr.dic", "gd_GB.dic", "gl_ES.dic", "he_IL.dic", "hr_HR.dic", "hy_AM.dic",
  "it_IT.dic", "ku_TR.dic", "lt_LT.dic", "nb_NO.dic", "nl_NL.dic", "nn_NO.dic", "oc_FR.dic",
  "pl_PL.dic", "pt_BR.dic", "pt_PT.dic", "ro_RO.dic", "ru_RU.dic", "sh.dic", "sk_SK.dic",
  "sl_SI.dic", "sr.dic", "sv_SE.dic", "uk_UA.dic", "ur.dic", "vi_VN.dic", "en_US_Legal.txd"
]

Authorization

This endpoint requires a "ReportingCloud-APIKey" or a "Basic" user authorization to access the user account, data and templates. Only one of these two methods is required.

API Keys describes how to create an API key, and Authentication explains both header forms.

ReportingCloud-APIKey

Header fieldDescription
AuthorizationRequired. A valid ReportingCloud account is required. The Authorization field is constructed as follows: An API key needs to be generated in the portal or with PUT /v1/account/apikey. The authorization method and a space, "ReportingCloud-APIKey ", is then put before the actual API key string. For example: Authorization: ReportingCloud-APIKey oMDM4MrAqL9QEOpyzupnQW5NjvCNtvE5cVDaaLqxI

Basic

Header fieldDescription
AuthorizationRequired. A valid ReportingCloud account is required. The Authorization field is constructed as follows: The user name and password are combined into a string separated by a colon, for example username:password. The resulting string is encoded using the RFC2045-MIME variant of Base64, except not limited to 76 char/line. The authorization method and a space, "Basic ", is then put before the encoded string. For example: Authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l

Success Response

StatusDescription
200On success, the HTTP status code in the response header is 200 (OK). The response body contains an array of strings with dictionary names.

Error Response

StatusDescription
403A 403 (Forbidden) is returned, if the user is not authorized.
405A 405 (Method Not Allowed) is returned, if the request uses another HTTP method than GET. The Allow header of the response names GET.
500A 500 (Internal Server Error) is returned, if the request has no Authorization header, an empty one or one that is not the authorization method, a space and the credentials.