获取单词注册类名列表
GET/classnames/:dgn
获取用于用户词典单词注册的类名列表。
请求
响应
- 200
- 401
- 404
- 405
- 500
以 JSON 格式返回类名列表。
API key(service 认证 key 字符串)认证失败时返回。
| 响应体 | 错误情况 |
|---|---|
{"code":"-","message":"can't verify service authorization"} | API key 认证失败时 |
{"code":"-","message":"service authorization has expired: <expirationTime> (<expiresIn>)"} | API key 的有效期已过时 |
未指定听写语法文件名 <dgn> 时返回。
| 响应体 | 错误情况 |
|---|---|
{"code":"?","message":"missing dictation grammar file name"} | 未指定连接引擎名称 <dgn> 时 |
指定 POST 方法时返回。
| 响应体 | 错误情况 |
|---|---|
{"code":"?","message":"POST method is not allowed"} | 指定 POST 方法时 |
发生意外异常时返回。
| 响应体 | 错误情况 |
|---|---|
{"code":"?","message":"unexpected exception occurred (<optionalMessage>)"} | 发生意外异常时 |