列出模板
const r = await mn.api('/immersive/templates');
mn.log(r.templates.filter(t => t.active).map(t => t.id));{
"templates": [
{
"id": "reading-vocabulary",
"name": "外刊生词",
"builtIn": false,
"active": true
},
{
"id": "card-practice",
"name": "刷题·卡片版",
"builtIn": false,
"active": false
}
]
}界面与模板
列出沉浸模板
列出可以切换的全部模板,每项返回标识、名称、是否内置与是否当前在用。
该接口只返回摘要,不展开完整内容。切换后须再次读取当前模板,才能取得新模板。
GET
/
immersive
/
templates
列出模板
const r = await mn.api('/immersive/templates');
mn.log(r.templates.filter(t => t.active).map(t => t.id));{
"templates": [
{
"id": "reading-vocabulary",
"name": "外刊生词",
"builtIn": false,
"active": true
},
{
"id": "card-practice",
"name": "刷题·卡片版",
"builtIn": false,
"active": false
}
]
}响应
200 - application/json
模板清单。可能还有未列出的字段。
可以切换的模板。
Show child attributes
Show child attributes