getVocabulary
获取一份词表
返回一个词表的全部已发布取值。未知 name 为 404 NOT_FOUND。
get
/v2/vocabularies/{name}无需凭据(匿名可调 —— 不需要 API 密钥)
参数
| 参数 | 类型 | 位置 | 说明 |
|---|---|---|---|
name 必填 | string | path | 词表名。即 /v2/vocabularies/{name} 的路径段。 |
响应
closedboolean必填增删一个取值构成破坏性变更时为 true。
namestring必填词表名。即 /v2/vocabularies/{name} 的路径段。
objectstring必填类型判别字段。恒为 vocabulary。
枚举vocabularyvaluesobject[]必填当前已发布的全部取值。空数组,从不为 null。
descriptionstring必填英文说明。不得用作判别条件。
display_namestring必填此 token 的英文标签。不得用作判别条件。
valuestring必填线上原样 token。不得用作判别条件。
请求示例
cURL
curl "https://api.nextmoe.dev/v2/vocabularies/value"